/* ============================================================
   Палитра Ivory Gold Royal — Darya Retiznik
   ============================================================ */
:root{
  --ivory:#F2EEE3;
  --ivory-2:#E8E1D0;
  --ivory-3:#FAF7F0;
  --ink:#27231C;
  --muted:#7C7465;
  --gold:#8F8456;
  --gold-2:#BFA96B;
  --line:#DDD2BE;
  --glass:rgba(250,248,243,.82);
  --shadow:0 18px 40px rgba(39,35,28,.18), 0 4px 14px rgba(0,0,0,.10);
}

/* ============================================================
   Typographic System — Darya Retiznik (Nature Soft)
   ============================================================ */

/* ===== Подключение шрифтов ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Cormorant+Garamond:wght@500;600&display=swap');

/* ===== Базовые текстовые стили ===== */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
}

@media (max-width:640px){
  body{
    font-size: 15px;
    line-height: 1.58;
  }
}

/* ===== Заголовки ===== */
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

/* H1 — главный заголовок Hero */
.display {
  font-family: "Cormorant Garamond";
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
}

/* H2 — секции */
.section__head h2 {
  font-family: "Cormorant Garamond";
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
}

/* H3 — карточки, подзаголовки */
h3 {
  font-size: 20px;
  font-weight: 600;
}

/* ===== Текстовые элементы ===== */
p {
  margin-bottom: 12px;
  font-family: "Inter";
  font-weight: 400;
}

.muted {
  font-family: "Inter";
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

/* Списки */
ul {
  font-family: "Inter";
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ===== Кнопки ===== */
.btn,
.price-btn,
.btn--ghost,
.btn--mini,
.btn--lg,
.btn--xl {
  font-family: "Inter";
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Отступы секций */
.section {
  padding: 80px 0;
}

/* ============================================================
   Базовая структура
   ============================================================ */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.65;
  background:var(--ivory);
  color:var(--ink);
  overflow-x:hidden;

  opacity:0;
  transform:translate3d(0,24px,0);
  transition:opacity .7s ease, transform .7s ease;
}

body.is-loaded{
  opacity:1;
  transform:translate3d(0,0,0);
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:12px 20px;
}

/* типографика */
h1,h2,h3{
  font-family:"Cormorant Garamond", serif;
  font-weight:600;
  margin:0 0 12px;
}

.display{
  font-size:clamp(32px,4.4vw,56px);
  font-weight:600;
  line-height:1.1;
}

.lead{
  color:var(--muted);
  margin:10px 0 18px;
}

p{
  margin:0 0 12px;
}

.muted{
  color:var(--muted);
  font-size:14px;
}

.center{
  text-align:center;
}

.mt-24{
  margin-top:24px;
}

/* ============================================================
   Фоновый свет + слой аромата
   ============================================================ */
.scroll-light{
  position:fixed;
  inset:-40px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(223,209,183,.4), transparent 70%);
  pointer-events:none;
  z-index:-2;
  filter:blur(40px);
}

.scent-layer{
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,245,230,.4), transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(207,184,140,.25), transparent 65%);
  mix-blend-mode:soft-light;
  opacity:.55;
  pointer-events:none;
  z-index:-1;
}

/* ============================================================
   Навигация
   ============================================================ */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(242,238,227,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.nav__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand{
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
}

.brand img{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
}

.brand b{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:13px;
}

.menu{
  display:flex;
  gap:20px;
}

.menu a{
  text-decoration:none;
  font-size:13px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink);
  padding-bottom:4px;
  border-bottom:2px solid transparent;
  transition:border-color .25s ease, color .25s ease;
}

.menu a:hover{
  border-bottom:2px solid var(--gold-2);
  color:#000;
}

/* Бургер */
.burger{
  display:none;
  background:none;
  border:0;
  padding:6px;
  cursor:pointer;
}

.burger span{
  display:block;
  width:22px;
  height:2px;
  background:var(--ink);
  margin:4px 0;
}

/* ============================================================
   Верхняя сервисная плашка
   ============================================================ */
.sticky-offer{
  position:sticky;
  top:54px;
  z-index:45;
  background:rgba(242,238,227,.95);
  border-bottom:1px solid var(--line);
}

.sticky-offer .wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  font-size:13px;
  padding:6px 0 !important;
}

.dot{
  width:8px;
  height:8px;
  background:var(--gold-2);
  border-radius:50%;
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  padding-top:40px;
}

.hero__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.list-usp{
  padding-left:18px;
  margin:0 0 18px;
}

/* Логотип Hero */
.hero__logo-wrap{
  width:min(420px,42vw);
  aspect-ratio:1/1;
  margin:auto;
  border-radius:50%;
  background:
    radial-gradient(circle at 25% 10%, #FFFDF8, #ECE3D2 45%, #DAC9AF 85%);
  position:relative;
  overflow:hidden;
  box-shadow:
    0 26px 70px rgba(15,10,0,.32),
    inset 0 0 40px rgba(255,255,255,.55),
    inset 0 0 80px rgba(255,243,220,.4);
  animation:heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat{
  0%,100%{transform:translateY(12px);}
  50%{transform:translateY(0);}
}

.hero__logo-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle, rgba(192,171,110,.35), transparent 65%);
  mix-blend-mode:soft-light;
  pointer-events:none;
  opacity:.5;
  animation:goldShimmer 8s ease-in-out infinite;
}

@keyframes goldShimmer{
  0%,100%{opacity:.35;}
  50%{opacity:.75;}
}

.logo-embed{
  width:100%;
  height:100%;
  object-fit:contain;
  mix-blend-mode:multiply;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn{
  border:0;
  padding:12px 18px;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  font-size:14px;
  box-shadow:var(--shadow);
  background:var(--ink);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  gap:8px;
  transition:background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:
    0 18px 40px rgba(39,35,28,.22),
    0 6px 18px rgba(0,0,0,.12);
}

.btn--ghost{
  background:transparent;
  border:1px solid var(--ink);
  color:var(--ink);
  box-shadow:none;
}

.btn--ghost:hover{
  background:rgba(39,35,28,.04);
}

.btn--chip{
  background:var(--ink);
  color:#fff;
  border:1px solid var(--ink);
  font-weight:600;
}
.price-btn{
  display:inline-block;
  padding:12px 22px;
  background:var(--ivory-2);
  color:var(--ink);
  border-radius:40px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  border:1px solid var(--line);
  transition:all .25s ease;
}

.price-btn:hover{
  background:#F6F2E9;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.btn--lg{padding:14px 22px;}
.btn--xl{padding:16px 26px;}
.btn--mini{padding:8px 12px; font-size:13px;}

/* ============================================================
   Секции
   ============================================================ */
.section{
  padding:80px 0;
}

.section--alt{
  background:var(--ivory-3);
}

.section__head{
  margin-bottom:24px;
}

.section__head h2{
  position:relative;
  padding-bottom:8px;
}

.section__head h2::after{
  content:"";
  position:absolute;
  bottom:-4px;
  left:0;
  width:40px;
  height:2px;
  background:linear-gradient(90deg,var(--gold-2),transparent);
}

/* Тон секций по data-tone */
.section[data-tone="cool"]{
  background:#F5F3EC;
}

.section[data-tone="royal-warm"]{
  background:radial-gradient(circle at 0 0,#FDF7EC,#F2EEE3 55%);
}

.section[data-tone="neutral"]{
  background:var(--ivory);
}

/* ============================================================
   Услуги
   ============================================================ */
.service-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.service{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  min-height:300px;
  background:var(--ivory-2);
  box-shadow:var(--shadow);
}

.service::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--bg);
  background-size:cover;
  background-position:center;
  transform:scale(1);
  transition:transform .5s ease;
}

.service:hover::before{
  transform:scale(1.05);
}

.service__overlay{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  background:var(--glass);
  backdrop-filter:blur(12px);
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.7);
}

.service__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}

.tag{
  background:linear-gradient(135deg,var(--gold-2),#E6D39A);
  color:#fff;
  padding:2px 8px;
  font-size:11px;
  border-radius:12px;
  margin-left:8px;
}

/* ============================================================
   Портфолио
   ============================================================ */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.portfolio-card{
  background:#fffaf4;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:transform .4s ease, box-shadow .4s ease;
}

.portfolio-card img{
  width:100%;
  height:auto;
  display:block;
  filter:contrast(1.04) saturate(1.05);
  transition:filter .4s ease;
}

.portfolio-card figcaption{
  padding:10px 14px 12px;
  font-size:14px;
}

.portfolio-card:hover{
  transform:translateY(-4px);
}

.portfolio-card:hover img{
  filter:contrast(1.12) saturate(1.1);
}

/* ============================================================
   О Дарье
   ============================================================ */
.about-soft{
  position:relative;
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
}

.about-img{
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  position:relative;
}

.about-photo{
  width:100%;
  border-radius:20px;
  object-fit:cover;
  display:block;
  filter:saturate(1.1) contrast(1.03);
  transition:filter .4s ease;
}

.about-img::after{
  content:"";
  position:absolute;
  inset:auto 10% -40px 10%;
  height:60px;
  background:radial-gradient(ellipse at center, rgba(0,0,0,.25), transparent 70%);
  opacity:.45;
  pointer-events:none;
}

.about-img:hover .about-photo{
  filter:saturate(1.18) contrast(1.08);
}

.fabric-glow{
  position:absolute;
  right:-10%;
  bottom:-10%;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(191,169,107,.28), transparent 70%);
  filter:blur(18px);
  opacity:.7;
  pointer-events:none;
}

/* ============================================================
   Пакеты (цены)
   ============================================================ */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.price{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
}

.price__num{
  font-size:20px;
  font-weight:600;
  margin:10px 0 14px;
}

.price .tagline{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

.price .bullets{
  list-style:none;
  padding:0;
  margin:0 0 10px;
  font-size:14px;
}

.price .bullets li{
  margin-bottom:6px;
}

.price .badge{
  position:absolute;
  top:16px;
  right:16px;
  background:linear-gradient(135deg,var(--gold-2),#EAD38F);
  padding:6px 10px;
  border-radius:999px;
  color:#fff;
  font-size:12px;
}

/* ============================================================
   Отзывы
   ============================================================ */
.reviews{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:16px;
}

.review{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  box-shadow:var(--shadow);
}

.review blockquote{
  margin:0 0 8px;
  font-size:14px;
}

/* ============================================================
   Контакты
   ============================================================ */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:flex-start;
}

.form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
}

.form__row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

input,
select,
textarea{
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  font:inherit;
  background:#FFFEFC;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--gold-2);
  box-shadow:0 0 0 3px rgba(191,169,107,.22);
  outline:none;
  background:#fff;
}

.row-inline{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.form__hint{
  font-size:12px;
  color:var(--muted);
}

.contacts{
  display:grid;
  gap:12px;
}

.contact-chip{
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:14px 16px;
  text-decoration:none;
  color:var(--ink);
  text-align:center;
  box-shadow:var(--shadow);
  font-size:14px;
  transition:transform .2s ease, box-shadow .2s ease;
}

.contact-chip:hover{
  transform:translateY(-2px);
  box-shadow:
    0 16px 34px rgba(0,0,0,.16),
    0 5px 12px rgba(0,0,0,.1);
}

.contact-note{
  font-size:13px;
  color:var(--muted);
}

/* ============================================================
   Нижняя CTA
   ============================================================ */
.sticky-cta{
  position:sticky;
  bottom:0;
  z-index:40;
  background:rgba(255,255,253,.9);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(0,0,0,.06);
}

.sticky-cta .cta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:14px;
}

/* ============================================================
   FAQ блок
   ============================================================ */
#faq{
  background:#FAF9F7;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.faq-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.faq-list details{
  background:#fff;
  border-radius:12px;
  border:1px solid var(--line);
  padding:10px 14px;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.faq-list summary{
  cursor:pointer;
  font-size:14px;
  font-weight:500;
}

.faq-list p{
  font-size:13px;
  margin-top:6px;
}

/* ============================================================
   Футер
   ============================================================ */
.footer{
  padding:28px 0;
  background:rgba(237,230,215,.96);
  border-top:1px solid var(--line);
}

.footer__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-size:14px;
}

/* ============================================================
   Модалки
   ============================================================ */
.modal{
  border:0;
  padding:0;
}

.modal::backdrop{
  background:rgba(0,0,0,.4);
}

.modal__card{
  position:relative;
  background:#fff;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  width:min(500px,90vw);
  margin:auto;
  box-shadow:0 24px 60px rgba(0,0,0,.3);
}

.modal__close{
  position:absolute;
  right:16px;
  top:14px;
  background:none;
  border:0;
  font-size:24px;
  cursor:pointer;
}

/* ============================================================
   Анимации появления (reveal)
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* ============================================================
   Плавающая кнопка Telegram (mobile only)
   ============================================================ */
#tg-float-btn{
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  z-index:9999;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:14px 22px;
  background:#ffffff;
  color:#000;
  border-radius:40px;

  font-size:16px;
  font-weight:600;

  box-shadow:0 6px 20px rgba(0,0,0,0.15);
  text-decoration:none;
  border:1px solid rgba(0,0,0,0.08);

  transition:all 0.28s ease;
}

/* Состояние «stop» перед футером (ставится JS, если нужно) */
#tg-float-btn.stop{
  position:absolute;
  bottom:0;
  transform:translateX(0);
}

/* На планшетах/десктопе не показываем */
@media (min-width:768px){
  #tg-float-btn{
    display:none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .hero__grid{
    grid-template-columns:1fr;
  }
  .contact-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .service-grid{
    display:flex;
    overflow-x:auto;
    gap:14px;
    scroll-snap-type:x mandatory;
    padding-bottom:4px;
  }
  .service{
    flex:0 0 84%;
    scroll-snap-align:start;
  }

  .portfolio-grid{
    grid-template-columns:1fr 1fr;
  }

  .about-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .menu{
    position:absolute;
    top:56px;
    right:16px;
    background:rgba(242,238,227,.96);
    padding:14px 18px;
    border-radius:14px;
    display:none;
    flex-direction:column;
    gap:12px;
    border:1px solid var(--line);
    box-shadow:0 10px 30px rgba(0,0,0,.18);
  }

  .burger{
    display:block;
  }

  .hero__logo-wrap{
    width:min(300px,70vw);
  }

  .portfolio-grid{
    column-count:2;
    gap:12px;
  }

  .portfolio-card{
    break-inside:avoid;
    margin-bottom:12px;
  }

  .sticky-offer{
    top:40px !important;
  }

  .sticky-offer .wrap{
    padding:2px 0 !important;
    gap:6px !important;
  }

  .hero{
    padding-top:0 !important;
  }

  .hero__grid{
    gap:12px !important;
  }
}

/* Фикс нижней CTA в мобильной версии */
@media (max-width:480px){
  .sticky-cta .cta-row{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .sticky-cta span{
    font-size:14px;
    line-height:1.3;
  }

  .sticky-cta .btn{
    width:100%;
    text-align:center;
  }
}

/* Дополнительная адаптация для очень узких экранов */
@media (max-width:380px){
  .brand b{
    font-size:11px;
  }

  .sticky-offer .wrap{
    font-size:12px;
  }

  .footer__row{
    flex-direction:column;
    align-items:flex-start;
  }
}
