* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #f7f6f3;
  color: #181818;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* ШАПКА */

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  background: #f7f6f3;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.logo-link {
  display: block;
  width: 250px;
  line-height: 0;
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.site-header nav a,
.link-button {
  color: #181818;
  font-size: 16px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}


/* ГЛАВНЫЙ ЭКРАН */

.hero {
  display: grid;
  grid-template-columns: 37% 63%;
  min-height: calc(100vh - 88px);
  background: #f7f6f3;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 3vw 7vw 3%;
}

.eyebrow {
  margin: 0 0 32px;
  font-size: 12px;
  letter-spacing: .42em;
  color: #777;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(62px, 6.2vw, 112px);
  line-height: .94;
  letter-spacing: -.045em;
}

.hero-sub {
  margin: 42px 0 22px;
  font-size: 21px;
  line-height: 1.45;
}

.hero-line {
  margin: 0 0 32px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.4;
}

.hero-line span {
  display: block;
}

.hero-small {
  margin: 18px 0 0;
  color: #8b8b8b;
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}

.primary {
  width: fit-content;
  min-width: 260px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 0;
  background: #1d1d1d;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.primary span {
  font-size: 24px;
}


/* ГЛАВНАЯ ФОТОГРАФИЯ */

.hero-image-wrap {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}


/* ТРИ ДЕВУШКИ */

.looks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 90px 3% 40px;
  background: #fff;
}

.looks article {
  margin: 0;
}

.look-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #efefef;
}

.look-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.looks h2 {
  margin: 18px 0 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}


/* МОБИЛЬНАЯ КНОПКА ПОСЛЕ ДЕВУШЕК */

.mobile-order-after-looks {
  display: none;
  background: #fff;
  padding: 0 20px 70px;
  text-align: center;
}

.mobile-order-after-looks p {
  margin: 18px auto 0;
  max-width: 320px;
  color: #8b8b8b;
  font-size: 16px;
  line-height: 1.5;
}

.mobile-primary {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
}


/* РАЗМЕРЫ */

.sizes {
  padding: 90px 3% 110px;
  background: #f7f6f3;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title .eyebrow {
  margin-bottom: 17px;
}

.section-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 46px;
}

.size-image-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.size-image-wrap picture,
.size-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}


/* ФИНАЛЬНЫЙ ЗАКАЗ */

.cta {
  padding: 120px 5%;
  background: #fff;
  text-align: center;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta .eyebrow {
  margin-bottom: 22px;
}

.cta h2 {
  margin: 0 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  font-weight: 400;
}

.cta p {
  font-size: 18px;
  line-height: 1.6;
}

.cta .primary {
  margin: 38px auto 0;
}

.lead-time {
  margin-top: 22px;
  color: #777;
  font-size: 14px !important;
}


/* ПОДВАЛ */

.site-footer {
  padding: 34px 24px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  background: #f7f6f3;
  text-align: center;
}

.footer-logo {
  width: 225px;
  display: block;
  line-height: 0;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-slogan {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.35;
  color: #181818;
}


/* ФОРМА */

dialog {
  width: min(720px, calc(100% - 30px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border: none;
  background: #f7f6f3;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .25);
}

dialog::backdrop {
  background: rgba(0, 0, 0, .45);
}

#order-form {
  padding: 38px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-head h2 {
  margin: 0 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
}

.dialog-head .eyebrow {
  margin-bottom: 12px;
}

.close {
  border: 0;
  background: none;
  font-size: 35px;
  cursor: pointer;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 26px 0;
}

legend {
  margin-bottom: 12px;
  font-size: 15px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choices input {
  position: absolute;
  opacity: 0;
}

.choices span {
  display: block;
  padding: 11px 15px;
  border: 1px solid #d8d8d8;
  background: white;
  cursor: pointer;
}

.choices input:checked + span {
  background: #1d1d1d;
  border-color: #1d1d1d;
  color: white;
}

details {
  margin: 30px 0;
}

summary {
  cursor: pointer;
}

.details-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.details-grid label,
.contact-grid label,
.full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

select,
input,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #d4d4d4;
  background: white;
}

.full {
  margin-top: 25px;
}

.contact-grid {
  margin-top: 24px;
}

.submit {
  width: 100%;
  margin-top: 28px;
}

.tiny {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}


/* ПЛАНШЕТ */

@media (max-width: 900px) {

  .site-header {
    height: 72px;
  }

  .logo-link {
    width: 190px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 70px 6%;
  }

  .hero-image-wrap {
    height: 650px;
    min-height: 650px;
  }

}


/* ТЕЛЕФОН */

@media (max-width: 650px) {

  .site-header {
    height: 82px;
    padding: 0 16px;
  }

  /*
    Логотип увеличен ТОЛЬКО в мобильной версии.
    Плюс слегка увеличиваем сам рисунок внутри,
    потому что у logo.png есть свободные поля.
  */

  .logo-link {
    width: 225px;
    flex-shrink: 0;
    overflow: visible;
  }

  .logo-link img {
    transform: scale(1.08);
    transform-origin: left center;
  }

  .site-header nav {
    gap: 10px;
    margin-left: 8px;
  }

  .site-header nav a {
    display: none;
  }

  .site-header nav .link-button {
    font-size: 17px;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 50px 22px 56px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(43px, 11.5vw, 52px);
    line-height: .98;
    letter-spacing: -.035em;
    max-width: 100%;
  }

  .hero-sub {
    margin: 34px 0 20px;
    font-size: 18px;
  }

  .hero-line {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.5;
  }

  .hero-line span {
    display: block;
  }

  .hero-small {
    display: none;
  }

  .hero .primary {
    display: none;
  }

  .hero-image-wrap {
    height: auto;
    min-height: auto;
    position: relative;
  }

  .hero-image-wrap img {
    position: static;
    width: 100%;
    height: auto;
  }

  .looks {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 55px 20px 26px;
  }

  .look-image {
    aspect-ratio: 4 / 5;
  }

  .look-image img {
    object-position: center 14%;
  }

  .mobile-order-after-looks {
    display: block;
  }

  .sizes {
    padding: 65px 14px 75px;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .cta {
    display: none;
  }

  .site-footer {
    padding: 28px 18px 32px;
    gap: 12px;
  }

  .footer-logo {
    width: 195px;
  }

  .footer-slogan {
    font-size: 18px;
    line-height: 1.35;
  }

  .details-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  #order-form {
    padding: 25px;
  }

  .dialog-head h2 {
    font-size: 34px;
  }

}


/* ОЧЕНЬ УЗКИЙ ТЕЛЕФОН */

@media (max-width: 390px) {

  .site-header {
    padding-left: 13px;
    padding-right: 13px;
  }

  /*
    Здесь больше НЕ уменьшаем логотип до 178px.
    Он остаётся заметным и читаемым.
  */

  .logo-link {
    width: 205px;
  }

  .logo-link img {
    transform: scale(1.08);
  }

  .site-header nav {
    margin-left: 6px;
  }

  .site-header nav .link-button {
    font-size: 16px;
  }

  .hero-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 42px;
  }

}