:root{
  --bg: #f5efea;
  --paper: rgba(255, 250, 248, .62);
  --paper-2: rgba(255, 250, 248, .52);
  --ink: #2a2322;
  --muted: rgba(42,35,34,.70);

  --nude-1:#f2d7cd;
  --nude-2:#e7c7ba;
  --nude-3:#d8b2a6;
  --nude-4:#c79d93;

  --mocha:#3a2e2c;
  --rose:#c77d8f;
  --gold:#c8a36a;

  --shadow: 0 20px 55px rgba(34, 20, 18, .14);
  --shadow-2: 0 10px 30px rgba(34, 20, 18, .10);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --ring: 0 0 0 4px rgba(199,125,143,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1000px 600px at 20% 5%, rgba(199,125,143,.25), transparent 60%),
    radial-gradient(900px 500px at 85% 18%, rgba(200,163,106,.18), transparent 55%),
    radial-gradient(850px 600px at 55% 75%, rgba(216,178,166,.28), transparent 60%),
    linear-gradient(180deg, #fbf6f2, var(--bg));
  overflow-x:hidden;
}

.bg-noise{
  pointer-events:none;
  position:fixed;
  inset:0;
  opacity:.08;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size:240px 240px;
}

.container{
  width:min(1160px, calc(100% - 48px));
  margin:0 auto;
  padding: 18px 0 56px;
}

/* Top matte bar */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  padding: 18px 0 10px;
  backdrop-filter: blur(10px);
}
.topbar__matte{
  width:min(1160px, calc(100% - 48px));
  margin:0 auto;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: var(--shadow-2);
  position:relative;
  overflow:hidden;
}
.topbar__matte::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 22px;
  background:
    radial-gradient(120px 55px at 20px 20px, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(170px 65px at calc(100% - 20px) 18px, rgba(255,255,255,.75), transparent 72%),
    radial-gradient(160px 60px at 30% 100%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(180px 70px at 80% 100%, rgba(255,255,255,.50), transparent 72%);
  filter: blur(1px);
  opacity:.85;
  pointer-events:none;
}
.topbar__matte > *{ position:relative; }

.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  text-decoration:none;
  color:var(--ink);
}
.brand__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--rose));
  box-shadow: 0 0 0 6px rgba(199,125,143,.10);
}
.brand__name{
  letter-spacing:.18em;
  font-weight:700;
  font-size:14px;
}
.brand__tag{
  font-size:12px;
  color:var(--muted);
}

.topbar__matte{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.nav{
  display:flex;
  gap:14px;
}
.nav__link{
  font-size:13px;
  color:rgba(42,35,34,.78);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  transition: transform .15s ease, background .15s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.55);
  transform: translateY(-1px);
}

/* Hero layout */
.hero{
  display:grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 26px;
  align-items:start;
  margin-top: 14px;
}

.hero__headline h1{
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height:1.06;
  letter-spacing:-.02em;
}
.lead{
  margin:0;
  color:var(--muted);
  max-width: 52ch;
}

/* Gallery */
.gallery{
  margin-top: 18px;
  position:relative;
  min-height: 460px;
}
.shot{
  position:absolute;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  border: 1px solid rgba(255,255,255,.50);
}
.shot img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}
.shot__badge{
  position:absolute;
  top:12px;
  left:12px;
  font-size: 12px;
  padding: 7px 10px;
  border-radius:999px;
  color: rgba(42,35,34,.85);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
}
.shot--a{ width: 52%; height: 330px; left: 0; top: 26px; rotate: -2deg; animation: float1 7s ease-in-out infinite; }
.shot--b{ width: 40%; height: 260px; left: 40%; top: 0; rotate: 3deg; animation: float2 8s ease-in-out infinite; }
.shot--c{ width: 44%; height: 290px; left: 18%; top: 210px; rotate: 2deg; animation: float3 9s ease-in-out infinite; }

@keyframes float1{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }
@keyframes float2{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(12px) } }
@keyframes float3{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }

/* Before/After */
.beforeafter{
  position:absolute;
  right:0;
  bottom:-8px;
  width:min(520px, 95%);
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.44));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(255,255,255,.55);
}
.beforeafter__title{
  font-size: 12px;
  color: rgba(42,35,34,.75);
  margin: 4px 6px 10px;
  letter-spacing:.06em;
  text-transform: uppercase;
}
.beforeafter__frame{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  height: 210px;
}
.beforeafter__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.beforeafter__img.after{
  filter: saturate(1.10) contrast(1.06) brightness(1.03);
}
.beforeafter__divider{
  position:absolute;
  top:0; bottom:0;
  width:2px;
  left:62%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 6px rgba(199,125,143,.12);
}
.beforeafter__range{
  position:absolute;
  left:10px; right:10px; bottom:12px;
  width: calc(100% - 20px);
  accent-color: var(--rose);
}

/* Benefits */
.benefits{
  margin-top: 22px;
  padding: 18px 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.34));
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: var(--shadow-2);
}
.benefits h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing:-.01em;
}
.benefits__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(42,35,34,.80);
}
.benefits__list li{ margin: 8px 0; }

.pillrow{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 14px; }
.pill{
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(242,215,205,.55);
  border: 1px solid rgba(199,125,143,.20);
}

/* Auth card */
.authcard{
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.42));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:sticky;
  top: 94px;
}
.authcard__top{
  padding: 18px 18px 10px;
}
.authcard__title{
  font-size: 18px;
  font-weight: 700;
}
.authcard__subtitle{
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.tabs{
  display:flex;
  gap: 10px;
  padding: 0 18px 14px;
}
.tab{
  flex:1;
  border: 1px solid rgba(42,35,34,.10);
  background: rgba(255,255,255,.40);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  color: rgba(42,35,34,.82);
}
.tab:hover{ transform: translateY(-1px); }
.tab.is-active{
  background: rgba(242,215,205,.55);
  box-shadow: var(--ring);
}

.form{ padding: 0 18px 18px; }
.field{ display:block; margin-bottom: 12px; }
.field__label{
  display:block;
  font-size: 12px;
  color: rgba(42,35,34,.72);
  margin: 0 0 6px;
}
.field__input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(42,35,34,.12);
  background: rgba(255,255,255,.55);
  outline:none;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.field__input:focus{
  box-shadow: var(--ring);
  border-color: rgba(199,125,143,.35);
}
.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 12px 0;
  font-size: 13px;
  color: rgba(42,35,34,.80);
}
.check input{ margin-top: 3px; }
.check a{ color: rgba(58,46,44,.92); }

.btn{
  width:100%;
  border:none;
  border-radius: 16px;
  padding: 12px 14px;
  cursor:pointer;
  font-weight: 650;
  letter-spacing:.02em;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  color: #2a2322;
  background: linear-gradient(90deg, rgba(242,215,205,.95), rgba(199,125,143,.45), rgba(200,163,106,.35));
  box-shadow: 0 10px 30px rgba(199,125,143,.18);
}
.btn--primary:hover{ filter: brightness(1.02) saturate(1.02); }
.btn--dark{
  background: rgba(58,46,44,.92);
  color: rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(58,46,44,.22);
}
.form__hint{
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(42,35,34,.64);
}
.authcard__fineprint{
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(42,35,34,.08);
  font-size: 12px;
  color: rgba(42,35,34,.60);
}
.is-hidden{ display:none; }

/* Subscribe bottom */
.subscribe{ margin-top: 30px; }
.subscribe__box{
  border-radius: var(--radius-xl);
  padding: 18px 18px;
  background:
    radial-gradient(900px 180px at 10% 20%, rgba(199,125,143,.18), transparent 55%),
    radial-gradient(800px 160px at 90% 60%, rgba(200,163,106,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.40));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.subscribe__text h2{ margin:0 0 6px; font-size: 18px; }
.subscribe__text p{ margin:0; color: var(--muted); }
.subscribe__form{ display:flex; gap: 10px; align-items:center; }
.subscribe__input{
  width: min(340px, 56vw);
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(42,35,34,.12);
  background: rgba(255,255,255,.60);
  outline:none;
}
.subscribe__input:focus{ box-shadow: var(--ring); border-color: rgba(199,125,143,.35); }
.subscribe__meta{
  width:100%;
  font-size: 12px;
  color: rgba(42,35,34,.60);
  margin-top: 10px;
}

/* Footer */
.footer{
  padding: 0 0 26px;
}
.footer__matte{
  width:min(1160px, calc(100% - 48px));
  margin:0 auto;
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.40));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.footer__brand{ font-weight:700; letter-spacing:.08em; font-size: 12px; }
.footer__small{ font-size: 12px; color: rgba(42,35,34,.62); margin-top: 6px; }
.footer__links{ display:flex; gap: 12px; flex-wrap:wrap; justify-content:flex-end; }
.footer__links a{
  font-size: 13px;
  color: rgba(42,35,34,.78);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .15s ease, transform .15s ease;
}
.footer__links a:hover{ background: rgba(255,255,255,.55); transform: translateY(-1px); }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(58,46,44,.92);
  color: rgba(255,255,255,.92);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(58,46,44,.22);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: min(560px, calc(100% - 30px));
  text-align:center;
}
.toast.is-open{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .authcard{ position:relative; top:auto; }
  .gallery{ min-height: 520px; }
  .shot--a{ width: 62%; }
  .shot--b{ width: 48%; left: 46%; }
  .shot--c{ width: 54%; left: 10%; }
  .subscribe__box{ flex-direction:column; align-items:flex-start; }
  .subscribe__form{ width:100%; }
  .subscribe__input{ width:100%; }
  .btn--dark{ width: 100%; }
}

/* Бонус за регистрацию */
.bonus-alert {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(199, 125, 143, 0.5); /* Пунктирная розовая рамка */
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #5c4b49;
  line-height: 1.4;
}

.bonus-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.bonus-text strong {
  color: #c77d8f; /* Акцентный розовый цвет для заголовка */
  font-weight: 700;
}
/* --- АДАПТИВ ДЛЯ МОБИЛЬНЫХ (МЕНЬШЕ 768px) --- */
@media (max-width: 768px) {
  
  /* 1. Контейнер и отступы */
  .container {
    width: calc(100% - 24px); /* Отступы по 12px с краев */
    padding-top: 10px;
  }
  
  /* 2. Шапка (Topbar) */
  .topbar { padding: 10px 0; }
  .topbar__matte {
    width: calc(100% - 24px);
    padding: 10px 14px;
    flex-wrap: wrap; /* Разрешаем перенос */
    gap: 8px;
  }
  .brand { flex-grow: 1; } /* Логотип занимает место слева */
  .nav {
    width: 100%;
    justify-content: space-between; /* Ссылки растягиваются */
    margin-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 8px;
  }
  .nav__link {
    font-size: 14px;
    padding: 4px 0;
  }

  /* 3. Заголовки */
  .hero__headline h1 {
    font-size: 28px; /* Уменьшаем гигантский заголовок */
    line-height: 1.1;
    text-align: center;
  }
  .lead {
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
  }

  /* 4. Галерея (Сжатая версия) */
  .gallery {
    min-height: 380px; /* Уменьшаем высоту */
    margin-bottom: 30px;
    transform: scale(0.95); /* Чуть уменьшаем масштаб */
  }
  .shot--a { width: 55%; left: -5%; top: 30px; }
  .shot--b { width: 50%; left: 55%; top: 0; }
  .shot--c { width: 60%; left: 20%; top: 180px; }

  /* 5. Форма (Auth Card) */
  .authcard {
    position: relative;
    top: 0;
    margin-top: 20px;
    box-shadow: none; /* Убираем тень, чтобы не было "тяжело" */
    background: rgba(255, 255, 255, 0.7); /* Более прозрачный фон */
    border: 1px solid rgba(255,255,255,0.6);
  }
  .field__input {
    font-size: 16px; /* Чтобы iOS не зумил при вводе */
    padding: 14px; /* Удобнее попадать пальцем */
  }
  .btn {
    padding: 16px; /* Кнопка выше */
    font-size: 16px;
  }

  /* 6. Преимущества */
  .benefits ul { padding-left: 0; list-style: none; }
  .benefits li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
  }
  .benefits li::before {
    content: "•";
    color: var(--rose);
    position: absolute;
    left: 8px;
    font-weight: bold;
  }

  /* 7. Footer */
  .footer { padding-bottom: 40px; }
  .footer__matte {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer__links a { margin: 0 8px; }

  /* 8. Toast (Уведомление) */
  .toast {
    width: calc(100% - 40px);
    bottom: 20px;
    font-size: 14px;
  }
}

/* Дополнительно для очень маленьких экранов (iPhone SE) */
@media (max-width: 370px) {
  .hero__headline h1 { font-size: 24px; }
  .gallery { min-height: 320px; }
  .shot--c { top: 160px; }
}
