/* Базовый reset стилей */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul, ol {
  list-style: none;
}


/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 116px;
  background: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #F2F2F2;
  padding: 0 8.5em;
}

.nav-logo {
  width: 11em;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  justify-content: center;
}

.nav-menu-link {
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #FF69DA;
  transition: width 0.25s ease;
}

.nav-menu-link:hover::after {
  width: 100%;
}

.nav-menu-link:hover {
  color: #FF69DA;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-find-toggle {
  display: none;
}

.nav-find-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}

.nav-help-button {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  width: auto;
  height: auto;
  border-radius: 12px;
  padding: 20px 24px;
  border: 2px solid #FF69DA;
  color: #FF69DA;
  background: #FF69DA14;
  cursor: pointer;
}

.nav-help-button:hover {
  background-color: #FF69DA;
  color: #ffffff;
}


/* ===== ПОИСК-ОВЕРЛЕЙ ===== */

.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;
}

.nav-find-toggle:checked ~ .search-overlay {
  display: flex;
}

.search-overlay-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  height: 3em;
  width: 35em;
  padding: 2em;
}

.search-overlay-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.4;
}

.search-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 20px;
  font: inherit;
  color: #222;
}

.search-overlay-close {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.search-overlay-close:hover {
  background: #F2F2F2;
}


/* ===== БУРГЕР ===== */

.burger-toggle {
  display: none;
}

.burger-button {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 1001;
}

.burger-button span {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 0.16em;
  background-color: #222;
  border-radius: 1px;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.burger-button span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 3px));
}

.burger-button span:nth-child(2) {
  transform: translate(-50%, calc(-50% + 3px));
}

.burger-toggle:checked + .navbar .burger-button span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
  height: 2px; /* явно задай меньше чем в обычном состоянии */
}

.burger-toggle:checked + .navbar .burger-button span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
  height: 2px;
}

.burger-toggle:checked ~ .mobile-menu {
  display: flex;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 120px 32px 48px 32px;
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
}

.mobile-menu-footer .nav-help-button {
  width: 100%;
  font-size: 18px;
}

.mobile-menu-link {
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 16px 0;
  border-bottom: 1px solid #DEDDDE;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu-link:hover {
  color: #FF69DA;
}


/* ===== HERO ===== */

.hero-section {
  margin: 236px 132px 120px 132px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "title title title"
    "contact map media";
  gap: 24px;
}

.hero-title {
  grid-area: title;
  height: 206px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F7F7F7;
  overflow: hidden;
}

.hero-title h1 {
  padding-left: 60px;
  font-weight: 600;
  font-size: 5.6em;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-block {
  background-color: #F2F2F2;
  height: 354px;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-block-title {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.63em;
}

.hero-background-img {
  padding-right: 35px;
}

.hero-contact { grid-area: contact; }

.hero-contact-menu-time {
  font-weight: 400;
  font-size: 26px;
}

.hero-contact-menu-contact {
  font-weight: 600;
  font-size: 36px;
}

.hero-contact-menu-contact a {
  color: inherit;
  text-decoration: none;
}

.hero-map { grid-area: map; }

.hero-map-adress {
  font-weight: 400;
  font-size: 26px;
}

.hero-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  gap: 10px;
  border-radius: 12px;
  padding: 20px 24px;
  background-color: #FF69DA;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 22px;
  margin-top: 24px;
  transition: background-color 0.25s ease;
}

.hero-map-button:hover {
  background-color: #f03bbd;
}

.hero-media { grid-area: media; }

.hero-media-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: auto;
  height: auto;
}

.hero-media-icons img,
.footer-media-icons img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-media-icons img:hover,
.footer-media-icons img:hover {
  transform: scale(1.1);
}

.hero-media-text {
  padding-top: 20px;
  font-weight: 400;
  font-size: 22px;
}


/* ===== SUBSCRIPTION ===== */

.subscription-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: auto;
  height: auto;
  border-radius: 50px;
  padding: 80px 60px;
  margin: 120px;
  background-color: #F2F2F2;
}

.subscription-block-title {
  font-family: Inter;
  font-weight: 600;
  font-style: Semi Bold;
  font-size: 24px;
  line-height: 115.99999999999999%;
  letter-spacing: -2%;
}

.subscription-block-title--mobile {
  display: none;
}

.subscription-block-description {
  font-weight: 400;
  font-size: 26px;
  width: 40em;
}

.subscription-block-subscribe {
  display: flex;
  gap: 12px;
  padding-top: 60px;
}

.subscription-block-email {
  border: none;
  border-radius: 12px;
  white-space: nowrap;
  width: 826px;
  height: 72px;
  cursor: pointer;
  background-color: #fff;
  color: #8e8e93;
  font-size: 22px;
  padding-left: 24px;
}

.subscription-block-email:focus {
  outline: 2px solid #FF69DA;
  outline-offset: 0;
}

.subscription-block-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 238px;
  height: 72px;
  gap: 10px;
  border-radius: 12px;
  background-color: #FF69DA;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 22px;
}

.subscription-block-button:hover {
  background-color: #f03bbd;
}

.subscription-block-conditions {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  font-weight: 400;
  font-size: 22px;
  color: #727272;
  text-align: center;
}

.subscription-block-privacy {
  font-weight: 400;
  font-size: inherit;
  color: #FF69DA;
  display: inline;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.subscription-block-privacy::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background-color: #FF69DA;
  transition: width 0.25s ease;
}

.subscription-block-privacy:hover::after {
  width: 100%;
}

.subscription-block-privacy:hover {
  color: #f03bbd;
}


/* ===== FOOTER ===== */

footer {
  background-color: #F7F7F7;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  padding: 100px 132px;
}

.footer-block-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-template-areas:
    "footer-logo footer-block1 footer-block2 footer-block3"
    "footer-logo footer-block4 footer-block5 footer-block6";
  gap: 80px;
  padding-bottom: 100px;
  justify-content: center;
}

.footer-logo {
  grid-area: footer-logo;
}

.footer-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 396px;
}

.footer-toggle {
  display: none;
}

.footer-block-title {
  font-weight: 600;
  font-size: 26px;
}

.footer-arrow {
  display: none;
}

.footer-block-list {
  display: flex;
  flex-direction: column;
}

.footer-block-text {
  font-weight: 400;
  font-size: 22px;
  color: #777D88;
  margin-top: 15px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-block-text:hover {
  color: #FF69DA;
}

.footer-block1 { grid-area: footer-block1; }
.footer-block2 { grid-area: footer-block2; }
.footer-block3 { grid-area: footer-block3; }
.footer-block4 { grid-area: footer-block4; }
.footer-block5 { grid-area: footer-block5; }
.footer-block6 { grid-area: footer-block6; }

.footer-media-icons {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.footer-media-icons--mobile {
  display: none;
}

.footer-media-icons svg {
  width: 40px;
  height: 40px;
}

.footer-line {
  height: 1px;
  background-color: #DADDE3;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-weight: 400;
  font-size: 22px;
  color: #777D88;
}

.footer-info-right {
  display: flex;
  gap: 40px;
}

.footer-info-right p:hover {
  color: #FF69DA;
}


/* ===== МОБИЛКА 768px ===== */

@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    padding: 0 20px;
    height: 102px;
  }

  .nav-logo img {
    width: 7em;
    height: 7em;
  }

  .nav-menu {
    display: none;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-find-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F7F7F7;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-find-button img {
    height: 20px;
    width: 20px;
  }

  .burger-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F7F7F7;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-help-button {
    display: none;
  }

  /* ПОИСК-ОВЕРЛЕЙ мобилка */
  .search-overlay {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
    align-items: flex-start;
  }

  .search-overlay-inner {
    width: 100%;
  }

  .search-overlay-input {
    font-size: 16px;
  }

  /* HERO */
  .hero-section {
    margin: 106px 16px 40px 16px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "contact"
      "map"
      "media";
    gap: 16px;
  }

  .hero-title {
    height: 122px;
    padding: 0;
    border-radius: 24px;
    justify-content: space-between;
    overflow: hidden;
  }

  .hero-title h1 {
    font-size: 2em;
    padding-left: 24px;
    text-align: left;
    white-space: nowrap;
  }

  .hero-background-img-wrap {
    width: auto;
    height: 8em;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-background-img {
    width: auto;
    height: 9em;
    transform: rotate(3deg);
    object-fit: contain;
    flex-shrink: 0;
  }

  .hero-block {
    height: auto;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .hero-block-title {
    font-size: 1.1em;
  }

  .hero-block-title img {
    height: 24px;
    width: 24px;
  }

  .hero-block-content {
    margin-top: 41px;
  }

  .hero-contact-menu-time {
    font-size: 18px;
  }

  .hero-contact-menu-contact {
    font-size: 22px;
  }

  .hero-map-adress {
    font-size: 18px;
  }

  .hero-map-button {
    font-size: 18px;
    height: 56px;
    padding: 0 20px;
    margin-top: 16px;
  }

  .hero-media-icons {
    gap: 14px;
  }

  .hero-media-icons img {
    width: 48px;
    height: 48px;
  }

  .hero-media-text {
    font-size: 15px;
    padding-top: 12px;
  }

  /* SUBSCRIPTION */
  .subscription-block {
    margin: 24px 16px;
    padding: 40px 20px;
    border-radius: 32px;
    width: auto;
    height: auto;
    align-items: flex-start;
  }

  .subscription-block-title--desktop {
    display: none;
  }

  .subscription-block-title--mobile {
    display: block;
  }

  .subscription-block-title {
    font-size: 26px;
    margin-bottom: 16px;
    text-align: start;
  }

  .subscription-block-description {
    font-size: 15px;
    width: auto;
    text-align: start;
  }

  .subscription-block-subscribe {
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
    gap: 12px;
  }

  .subscription-block-email {
    width: 100%;
    font-size: 16px;
    height: 56px;
  }

  .subscription-block-button {
    width: 100%;
    font-size: 16px;
    height: 56px;
    min-height: 44px;
  }

  .subscription-block-conditions {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    text-align: start;
    padding-top: 20px;
  }

  .subscription-block-conditions-nowrap {
    white-space: nowrap;
  }

  /* FOOTER */
  footer {
    padding: 48px 20px 32px 20px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 8px;
  }

  .footer-logo img {
    width: 118px;
    height: 62px;
  }

  .footer-block-section {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    gap: 0;
  }

  .footer-block {
    padding-top: 0;
    border-bottom: 1.5px solid #F2F2F2;
    width: 100%;
  }

  .footer-block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
  }

  .footer-arrow {
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
  }

  .footer-arrow path {
    stroke: #DEDDDE;
  }

  .footer-block-list {
    display: none;
    padding-bottom: 8px;
  }

  .footer-toggle:checked ~ .footer-block-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-toggle:checked ~ .footer-block-title .footer-arrow {
    transform: rotate(180deg);
  }

  .footer-block-text {
    font-size: 15px;
    margin-top: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #777D88;
  }

  .footer-media-icons--desktop {
    display: none;
  }

  .footer-media-icons--mobile {
    display: flex;
    padding: 32px 0;
    gap: 14px;
  }

  .footer-media-icons--mobile img {
    width: 40px;
    height: 40px;
  }

  .footer-line {
    display: none;
  }

  .footer-info {
    padding-top: 0;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
  }

  .footer-info-right {
    order: -1;
    flex-direction: column;
    gap: 32px;
  }
}