/* =========================
   БАЗОВЫЕ НАСТРОЙКИ
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Manrope",
    sans-serif;
  background: #ffffff;
  color: #222222;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 15px;
  font-weight: 600;
}

h2 {
  font-size: 32px;
  text-align: center;
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
}

.container {
  max-width: 1140px;
  padding: 0 5%;
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: #faf7f4;
}

.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 8px auto 35px;
  color: #666666;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.block-title {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c6452;
}

.small {
  font-size: 12px;
  color: #777777;
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* =========================
   КНОПКИ
   ========================= */

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.2s ease;
  text-align: center;
}

.btn {
  background: #d2a28e;
  color: #ffffff;
  font-weight: 600;
}

.btn:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid #222222;
  background: transparent;
  color: #222;
}

.btn-outline:hover {
  background: #222222;
  color: #ffffff;
}

/* =========================
   FASHION-LOOK ХЕДЕР
   ========================= */

.header {
  background: #ffffff;
  border-bottom: 1px solid #f1ebe5;
  position: sticky;
  top: 0;
  z-index: 40;
}

/* верхняя типографическая строка как раньше */
.header-top {
  text-align: center;
  margin: 10px auto 6px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7e6a59;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top strong {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #1e1a17;
  display: inline-block;
  padding: 3px 6px 4px;
  margin: 0 12px;
  border-bottom: 2px solid #1e1a17;
}

/* НИЖНЯЯ ПОЛОСА: меню по центру, кнопка левее края */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;   /* центрируем меню */
  padding: 10px 0;
  gap: 20px;
  position: relative;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.nav a {
  opacity: 0.7;
  transition: 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}

/* Кнопка: левее правого края, поверх контейнера */
.header-cta {
  position: absolute;
  right: 11%;               /* подвинуть левее/правее — меняй это число */
  top: 5%;
  transform: translateY(-50%);
  font-size: 12px;
}

/* Бургер (для мобилки) */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.burger span {
  width: 20px;
  height: 2px;
  background: #222222;
  transition: 0.2s ease;
}

.burger-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger-open span:nth-child(2) {
  opacity: 0;
}
.burger-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================
   HERO
   ========================= */

.hero {
  padding: 60px 0 50px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #b19380;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.hero-main {
  color: #555555;
  margin-bottom: 10px;
  font-size: 15px;
}

.hero-main strong {
  font-weight: 600;
}

.hero-offer {
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.hero-contacts {
  margin-bottom: 18px;
}

.hero-phone {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.hero-btn {
  margin-top: 8px;
  margin-bottom: 4px;
}

.hero-photo {
  flex: 1 1 320px;
}

.hero-photo img {
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  object-fit: cover;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.12);
}

/* =========================
   КАРТОЧКИ / УСЛУГИ / КУРСЫ
   ========================= */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #efe4da;
  padding: 22px 20px;
  max-width: 330px;
  flex: 1 1 260px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card p {
  font-size: 14px;
  color: #555555;
}

.list {
  padding-left: 20px;
  margin: 0;
}

.list li {
  font-size: 14px;
  margin-bottom: 5px;
}

/* =========================
   ПОРТФОЛИО
   ========================= */

.portfolio-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-photos img {
  border-radius: 14px;
  object-fit: cover;
}

/* плейсхолдеры, если где-то остались */
.photo-placeholder {
  border-radius: 18px;
  border: 1px dashed #d7c4b6;
  background: #fdf8f4;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b19380;
  font-size: 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.video-placeholder {
  border-radius: 16px;
  border: 1px dashed #d7c4b6;
  background: #fdf8f4;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #b19380;
}

.video-item {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* подсказка при первом отображении */
.sound-tip {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 12px;
  opacity: 0.9;
  transition: 0.3s ease;
  pointer-events: none;
}

.video-item.unmuted .sound-tip {
  opacity: 0;
}

/* =========================
   О МАСТЕРЕ
   ========================= */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  font-size: 15px;
  color: #555555;
}

.about-photo .photo-placeholder,
.about-photo img {
  border-radius: 22px;
}

/* =========================
   ОНЛАЙН-ЗАПИСЬ / ФОРМА
   ========================= */

.booking-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.booking-text p {
  font-size: 15px;
  color: #555555;
}

.booking-address {
  margin-top: 16px;
}

.form {
  background: #faf7f4;
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid #efe4da;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form input,
.form select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #d9c9bd;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: #d2a28e;
}

.consents {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 6px;
  align-items: flex-start;
}

.consent-checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}

.consent-checkbox span {
  line-height: 1.4;
  word-break: break-word;
}

.consent-more-toggle {
  padding: 0;
  margin-top: 4px;
  background: none;
  border: none;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  opacity: 0.7;
}

.consent-more-toggle:hover {
  opacity: 1;
}

.consent-more {
  display: none;
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.4;
}

.consent-more.open {
  display: block;
}

.req {
  color: #c65a5a;
}

/* =========================
   КОНТАКТЫ
   ========================= */

.contacts-layout {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  font-size: 15px;
}

.contacts-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  border-top: 1px solid #f1ebe5;
  padding: 20px 0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777777;
}

/* якоря не прячутся под шапкой */
section {
  scroll-margin-top: 110px;
}

/* =========================
   АДАПТИВ
   ========================= */

/* Планшеты и небольшие ноуты */
@media (max-width: 992px) {
  h2 {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .contacts-layout {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* Планшеты / крупные телефоны */
@media (max-width: 768px) {
  .container {
    padding: 0 4%;
  }

  .header-top {
    margin-top: 8px;
    letter-spacing: 0.18em;
  }

  .header-top strong {
    font-size: 20px;
    letter-spacing: 0.12em;
  }

  .header-nav {
    padding: 8px 0 6px;
    justify-content: center;
  }

  .header-cta {
    display: none;         /* на мобилке кнопку убираем */
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5%;
    gap: 12px;
    border-bottom: 1px solid #f1ebe5;
    display: none;
    z-index: 30;
  }

  .nav.nav-open {
    display: flex;
  }
}


/* Мобильные */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .header-top {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .header-top strong {
    font-size: 18px;
    border-bottom-width: 1.5px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-main,
  .hero-offer,
  .booking-text p,
  .about-text p,
  .card p {
    font-size: 14px;
  }

  .cards {
    gap: 16px;
  }

  .card {
    padding: 18px 16px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .photo-placeholder,
  .video-placeholder {
    min-height: 150px;
  }

  .form-row {
    flex-direction: column;
  }

  .btn,
  .btn-outline {
    width: 100%;
  }
  
  .consents {
    font-size: 10px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
  h2 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 11px;
  }

  .header-top {
    letter-spacing: 0.18em;
  }

  section {
    scroll-margin-top: 120px;
  }
}
