
/* ── FONTS ─────────────────────────────────── */
@font-face {
  font-family: 'Romul';
  src: url('../fonts/romul.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura New';
  src: url('../fonts/FuturaNewBook-Reg.woff2') format('woff2'),
       url('../fonts/FuturaNewBook-Reg.woff')  format('woff'),
       url('../fonts/FuturaNewBook-Reg.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura New';
  src: url('../fonts/FuturaNewDemi-Reg.woff2') format('woff2'),
       url('../fonts/FuturaNewDemi-Reg.woff')  format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #F6F3EE;
  --black: #000000;
  --white: #fff;
  --green: #536E5C;
  --gray:  #8D8D8D;
  --ff-d:  'Romul', Georgia, 'Times New Roman', serif;
  --ff-b:  'Futura New', 'Century Gothic', Futura, Trebuchet MS, Arial, sans-serif;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

.landing {
  margin-left: -16px;
  margin-right: -16px;
}

.landing h1, .landing h2 {
  font-family: Romul, Georgia, serif !important;
  letter-spacing: -0.01em;
  font-weight: 100;
}

/** Hack: Override tailwind.css */
.container {
  max-width: 100% !important;
}

.headers-container {
  z-index: 0 !important;
}

/* ── BUTTON ─────────────────────────────────── */
.landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-b);
  font-size: 17px;
  height: 48px;
  min-width: 257px;
  padding: 0 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.landing .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}
.landing .btn:hover { transform: translateY(-1px); }
.landing .btn:active { transform: translateY(0) scale(0.98); }
.landing .btn-green {
  background: var(--green);
  color: var(--white);
}
.landing .btn-green:hover { box-shadow: 0 4px 20px rgba(83,110,92,.35); }
.landing .btn-green:hover::after { background: rgba(255,255,255,.07); }
.landing .btn-white {
  background: var(--white);
  color: var(--black);
}
.landing .btn-white:hover { box-shadow: 0 4px 20px rgba(0,0,0,.18); color: var(--black) !important; }

.cta-group { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-note  { font-size: 14px; line-height: 1.5; color: var(--gray); }
.cta-note--white { color: rgba(255,255,255,.7); }

/* ── SHARED CONTAINER ───────────────────────── */
.landing .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
}

/* ── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--bg);
}

/* Hero photo via <picture> — replaces background-image */
.hero__photo-m {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: heroImgIn 1.4s var(--ease) both;
}
.hero__photo-m img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

/* Gradient overlay — matches SVG paint0/paint1 layers */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--bg) 20%,
    rgba(246,243,238,0.88) 34%,
    rgba(246,243,238,0.5)  50%,
    rgba(246,243,238,0)    65%
  );
  z-index: 1;
}

@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__content {
  position: absolute;
  top: 50%;
  left: max(100px, calc((100vw - 1440px) / 2 + 100px));
  transform: translateY(-50%);
  z-index: 2;
  max-width: 800px;
  animation: heroTextIn 1s 0.2s var(--ease) both;
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(calc(-50% + 20px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

.hero__title {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  margin-bottom: 32px;
  max-width: 440px;
}


/* ══════════════════════════════════════════
   SECTION: ПОЧЕМУ ПО МЕРКАМ
══════════════════════════════════════════ */
.why { overflow: hidden; margin-top: 100px; }

.why .inner {
  display: grid;
  grid-template-columns: 685px 1fr;
  min-height: 652px;
  align-items: center;
  padding: 0;
}
.why__img {
  width: 685px;
  height: 652px;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.why__img:hover { transform: scale(1.02); }

.why__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why__text { padding: 60px 60px 60px 100px; color: #000; }
.why__title { font-size: 40px; line-height: 1.2; margin-bottom: 24px; }
.why__body  { font-size: 17px; line-height: 1.7; max-width: 420px; color: #000; }


/* ══════════════════════════════════════════
   SECTION: КАК ПРОХОДИТ ЗАКАЗ
══════════════════════════════════════════ */
.process { padding: 80px 0 90px; margin-top: 100px; }
.process__title { font-size: 40px; line-height: 1.2; margin-bottom: 50px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step__photo {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 20px;
  overflow: hidden;
}
.step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.step__photo > div,
.step__photo-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.step__photo:hover .step__photo-inner { transform: scale(1.04); }

.step__photo--1 .step__photo-inner { background-image: url('../img/step-1.jpg'); }
.step__photo--2 .step__photo-inner { background-image: url('../img/step-2.jpg'); }
.step__photo--3 .step__photo-inner { background-image: url('../img/step-3.jpg'); }
.step__photo--4 .step__photo-inner { background-image: url('../img/step-4.jpg'); }

.step__num   { font-size: 13px; letter-spacing: 0.04em; display: block; margin-bottom: 20px; color: var(--gray); }
.step__title { font-family: Romul, Georgia, serif !important; font-size: 25px; line-height: 1.3; margin-bottom: 14px; }
.step__desc  { font-size: 16px; line-height: 1.65; color: #3a3a38; }


/* ══════════════════════════════════════════
   SECTION: ЧТО МОЖНО ЗАКАЗАТЬ — TABS
══════════════════════════════════════════ */
.order { overflow: hidden; margin-top: 100px; }

.order .inner {
  display: grid;
  grid-template-columns: 1fr 685px;
  min-height: 652px;
  align-items: center;
  padding: 0;
}
.order__left { padding: 60px 60px 60px 100px; }
.order__title { font-size: 40px; line-height: 1.2; margin-bottom: 28px; }
.tabs { width: 452px; }

.tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 68px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.10);
  transition: background 0.22s ease, min-height 0.3s var(--ease), padding-top 0.3s var(--ease);
  gap: 16px;
  color: #000;
}
.tab-row:first-child { border-top: 1px solid rgba(0,0,0,.10); }
.tab-row:hover:not(.is-active) { background: rgba(0,0,0,.03); }
.tab-row.is-active {
  background: var(--black);
  color: var(--white);
  min-height: 100px;
  align-items: flex-end;
  padding-top: 26px;
  padding-bottom: 26px;
}
.tab-row__left { display: flex; flex-direction: column; gap: 8px; }
.tab-name  { font-family: Romul, Georgia, serif !important; font-size: 25px; line-height: 1; }
.tab-link  { font-size: 16px; display: none; opacity: 0; transition: opacity 0.2s ease; color: #fff; }
.tab-link a { color: #fff; }
.tab-link a:hover { color: #fff; }
.tab-row.is-active .tab-link { display: block; opacity: 1; }
.tab-price { font-size: 16px; white-space: nowrap; }

.order__photo-wrap {
  width: 685px;
  height: 652px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.order__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}
.order__photo.is-entering { animation: photoEnter 0.45s var(--ease) both; }

@keyframes photoEnter {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}


/* ══════════════════════════════════════════
   SECTION: ЧТО МОЖНО ВЫБРАТЬ
══════════════════════════════════════════ */
.choose {
  position: relative;
  min-height: 652px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 100px;
}
.choose__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1);
  transition: transform 8s linear;
}
.choose__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}
.choose:hover .choose__bg { transform: scale(1.03); }
.choose__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,.52);
}
.choose .inner { position: relative; z-index: 1; width: 100%; }
.choose__text {
  margin-left: auto;
  width: 48%;
  padding: 70px 0 70px 0;
  color: var(--white);
}
.choose__text h2 { font-size: 40px; line-height: 1.2; margin-bottom: 48px; color: var(--white); }

.choose-item {
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
}
.choose-item:last-child { margin-bottom: 0; }
.choose-item h2, .choose-item h3 {
  font-family: Romul, Georgia, serif !important;
  font-size: 25px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.choose-item p {
  margin-bottom: 36px;
}
.choose-item *:last-child {
  margin-bottom: 0;
}

.choose-item__title {
  font-family: Romul, Georgia, serif !important;
  font-size: 25px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.choose-item__desc { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.75); }


/* ══════════════════════════════════════════
   SECTION: ЛИЧНЫЙ ПОДХОД
══════════════════════════════════════════ */
.personal { overflow: hidden; margin-top: 100px; }

.personal .inner {
  display: grid;
  grid-template-columns: 685px 1fr;
  min-height: 652px;
  align-items: center;
  padding: 0;
}
.personal__img {
  width: 685px;
  height: 652px;
  background-image: url('../img/approach-desktop.jpg');
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.personal__img:hover { transform: scale(1.02); }

.personal__text { padding: 60px 60px 60px 100px; }
.personal__title { font-size: 40px; line-height: 1.2; margin-bottom: 24px; }
.personal__body  { font-size: 17px; line-height: 1.7; max-width: 420px; }


/* ══════════════════════════════════════════
   SECTION: ИЗ ЧЕГО СКЛАДЫВАЕТСЯ ЦЕНА
══════════════════════════════════════════ */
.pricing { padding: 80px 0 90px; margin-top: 100px; }
.pricing__title { font-size: 40px; line-height: 1.2; margin-bottom: 60px; }

.price-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.price-col {
  border: 1px solid rgba(0,0,0,.12);
  padding: 28px 24px;
  color: #000;
}
.price-col:first-child { border: 1px solid rgba(0,0,0,.12); padding: 28px 24px; }
.price-col__title { font-family: Romul, Georgia, serif !important; font-size: 25px; line-height: 1.2; margin-bottom: 20px; }
.price-col__desc  { font-size: 16px; line-height: 1.65; color: #3a3a38; }


/* ══════════════════════════════════════════
   SECTION: CTA FOOTER
══════════════════════════════════════════ */
.cta-sect {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 0 100px;
}
.cta-sect__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cta-sect__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}
.cta-sect .inner { position: relative; z-index: 1; width: 100%; }
.cta-sect__text  { max-width: 580px; color: var(--white); }
.cta-sect__title { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--white); }
.cta-sect__desc  { font-size: 17px; line-height: 1.65; margin-bottom: 36px; max-width: 380px; color: rgba(255,255,255,.8); }


/* ══════════════════════════════════════════
   MOBILE  ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* HERO */
  .hero {
    height: auto;
    background: var(--black);
    overflow: visible;
    animation: none;
  }
  .hero::after { display: none; }
  .hero__content--desktop { display: none; }
  .hero__content {
    position: static;
    padding: 0 20px;
    max-width: 100%;
    animation: none;
  }
  .hero__photo-m {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    animation: heroImgIn 1s var(--ease) both;
  }
  .hero__photo-m img {
    object-position: center top;
  }
  .hero__photo-m::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, var(--black) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
  }
  .hero__body-m {
    display: block !important;
    padding: 20px 20px 0px;
  }
  .hero__title { font-size: 28px; line-height: 1.15; color: var(--white); margin-bottom: 18px; }
  .hero__sub   { font-size: 16px; color: rgba(255,255,255,.8); max-width: 100%; }
  .cta-note    { color: rgba(255,255,255,.55); }

  /* WHY */
  .why .inner  { display: block; max-width: 100%; padding: 0; }
  .why__img    { width: 100%; height: 393px; }
  .why__text   { padding: 44px 20px 44px; color: #000; }
  .why__title  { font-size: 28px; }
  .why__body   { max-width: 100%; color: #000; }

  /* PROCESS */
  .process { padding: 44px 0 54px; }
  .process__title { font-size: 28px; margin-bottom: 32px; padding: 0 20px; }
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 16px;
  }
  .steps::-webkit-scrollbar { display: none; }

  /* Step: text overlaid on photo */
  .step {
    flex: 0 0 270px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 270px auto;
    border: none;
  }
  .step__photo {
    grid-row: 1; grid-column: 1;
    margin-bottom: 0;
    aspect-ratio: unset;
    height: 270px;
    width: 100%;
    position: relative;
    z-index: 0;
  }
  .step__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 65%);
    pointer-events: none;
  }
  .step__num {
    grid-row: 1; grid-column: 1;
    align-self: end;
    padding: 0 16px 96px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    letter-spacing: 0.06em;
    z-index: 2;
    margin-bottom: 0;
    pointer-events: none;
  }
  .step__title {
    grid-row: 1; grid-column: 1;
    align-self: end;
    padding: 0 16px 16px;
    color: var(--white);
    font-size: 20px;
    line-height: 1.2;
    z-index: 2;
    margin-bottom: 0;
  }
  .step__desc {
    grid-row: 2; grid-column: 1;
    padding: 14px 0 0;
    font-size: 14px;
  }

  /* SECTION MARGINS (mobile) */
  .why, .process, .order, .choose, .personal, .pricing { margin-top: 0; }

  /* ORDER */
  .order .inner { display: flex; flex-direction: column; max-width: 100%; padding: 0; }
  .order__photo-wrap { width: 100%; height: 393px; order: -1; position: relative; }
  .order__left  { padding: 44px 20px; }
  .order__title { font-size: 28px; }
  .tabs         { width: 100%; }

  /* CHOOSE */
  .choose { display: block; min-height: unset; background: var(--black); }
  .choose__bg {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
  }
  .choose__bg::after {
    background: linear-gradient(to top, var(--black) 0%, rgba(0,0,0,0) 60%);
  }
  .choose .inner { width: 100%; }
  .choose__text { width: 100%; padding: 24px 20px 36px; margin-left: 0; }
  .choose__text h2 { font-size: 28px; margin-bottom: 28px; }
  .choose-item__desc { color: rgba(255,255,255,.65); }

  /* PERSONAL */
  .personal .inner { display: block; max-width: 100%; padding: 0; }
  .personal__img   { width: 100%; height: 393px; }
  .personal__text  { padding: 44px 20px 44px; }
  .personal__title { font-size: 28px; }
  .personal__body  { max-width: 100%; }

  /* PRICING */
  .pricing { padding: 44px 0 54px; }
  .pricing__title { font-size: 28px; margin-bottom: 36px; padding: 0 20px; }
  .price-cols { display: flex; flex-direction: column; gap: 10px; }
  .price-col  { border: 1px solid rgba(0,0,0,.12); padding: 20px; }
  .price-col:first-child { border: 1px solid rgba(0,0,0,.12); padding: 20px; }

  /* CTA */
  .cta-sect { display: block; min-height: unset; margin: 0 0 44px; background: var(--black); align-items: unset; }
  .cta-sect__bg {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
  }
  .cta-sect__bg img {
    object-position: center top;
  }
  .cta-sect__bg::after { display: none; }
  .cta-sect .inner { position: relative; z-index: 1; min-height: 400px; display: flex; align-items: center; }
  .cta-sect__text { padding: 40px 20px; color: var(--white); }
  .cta-sect__title { font-size: 28px; color: var(--white); }
  .cta-sect__desc  { max-width: 100%; font-size: 16px; color: rgba(255,255,255,.8); }
  .cta-sect .btn-white { background: var(--green); border-color: var(--green); color: var(--white); }
  .cta-sect .cta-note--white { color: rgba(255,255,255,.55); }

  /* Inner padding on mobile */
  .landing .inner { padding: 0 20px; }
  .process .inner,
  .pricing .inner { padding: 0 20px; }

  /* Disable all animations on mobile for performance */
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hide mobile-only body on desktop (photo visible everywhere via <picture>) */
.hero__body-m { display: none; }

/* Форма бронирования: кнопка из primerka.php скрыта, открываем с лендинга */
#openBooking { display: none !important; }
