/* =========================================================
   Чайный Дом — дизайн-система
   Шрифты: Cormorant Garamond (дисплейные заголовки) + Manrope (текст/UI)
   ========================================================= */

:root {
  --bg:        #f5f3ee;   /* тёплый офф-вайт */
  --bg-2:      #eceae2;   /* секция чуть темнее */
  --cream:     #e6e1d4;   /* кремовая плашка */
  --ink:       #22251e;   /* основной текст */
  --muted:     #6c6e62;   /* приглушённый текст */
  --accent:    #4d6443;   /* чайный зелёный */
  --accent-2:  #3a4f33;   /* тёмно-зелёный */
  --dark:      #1e221b;   /* почти чёрно-зелёный блок */
  --card:      #ffffff;
  --line:      #e3dfd4;   /* тонкие линии/границы */
  --radius:    22px;
  --radius-lg: 32px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted-word { color: var(--muted); }
.accent-word { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn,
.btn-light,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  transition: all .35s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 13px 16px 13px 24px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.btn .btn-arrow      { background: rgba(255,255,255,.18); }
.btn-light .btn-arrow { background: var(--accent); color: #fff; }
.btn-outline .btn-arrow { background: var(--accent); color: #fff; }
.btn:hover .btn-arrow,
.btn-light:hover .btn-arrow,
.btn-outline:hover .btn-arrow { transform: rotate(45deg); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .4s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  transition: color .4s var(--ease);
}
.logo span { font-size: 22px; opacity: .85; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px;
  border-radius: 100px;
  transition: all .4s var(--ease);
}
.nav a {
  color: rgba(255,255,255,.9);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  transition: all .3s var(--ease);
}
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a.active { background: #fff; color: var(--ink); }

.header-cta { color: #fff; }
.header-cta .btn-light { padding: 11px 13px 11px 22px; }
.header-cta .btn-arrow { width: 30px; height: 30px; }

/* состояние после прокрутки — светлая шапка */
.site-header.scrolled {
  background: rgba(245,243,238,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled .logo { color: var(--ink); }
.site-header.scrolled .nav {
  background: rgba(34,37,30,.05);
  border-color: var(--line);
}
.site-header.scrolled .nav a { color: var(--muted); }
.site-header.scrolled .nav a:hover { background: rgba(34,37,30,.06); color: var(--ink); }
.site-header.scrolled .nav a.active { background: var(--accent); color: #fff; }

.burger { display: none; }

/* ---------- Hero (главная) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 56px;
  background-color: #2a3326;
  background-image:
    linear-gradient(180deg, rgba(20,24,17,.55) 0%, rgba(20,24,17,.25) 35%, rgba(20,24,17,.75) 100%),
    url("https://images.unsplash.com/photo-1556679343-c7306c1976bc?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.chip::before { content: "茶"; font-size: 14px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero p {
  font-size: 18px;
  max-width: 520px;
  color: rgba(255,255,255,.82);
  margin-bottom: 34px;
}

.hero-card {
  position: absolute;
  right: 24px;
  bottom: 56px;
  z-index: 2;
  width: 320px;
  background: rgba(30,34,27,.55);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 26px;
}
.hero-card h4 {
  display: flex; align-items: center; gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 12px;
}
.hero-card h4::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(77,100,67,.3);
}
.hero-card p { font-size: 14.5px; color: rgba(255,255,255,.8); margin: 0; }

/* ---------- Секции ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); }

.section-head { margin-bottom: 56px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.section h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 500;
  max-width: 760px;
}
.section-head p {
  color: var(--muted);
  max-width: 520px;
  margin-top: 18px;
  font-size: 16.5px;
}
.section-head.center { text-align: center; }
.section-head.center h2,
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Карточки церемоний ---------- */
.ceremony {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
}
.ceremony:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
.ceremony:nth-child(even) .ceremony-media { order: 2; }
.ceremony-media {
  min-height: 320px;
  background-color: var(--cream);
  background-size: cover;
  background-position: center;
}
.ceremony-body { padding: 44px; position: relative; }
.ceremony-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.ceremony-body h3 { font-size: 34px; margin-bottom: 14px; }
.ceremony-body > p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.ceremony-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 30px;
}
.ceremony-cols h5 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); margin-bottom: 12px;
}
.ceremony-cols li {
  font-size: 14.5px; color: var(--ink);
  padding: 5px 0 5px 18px; position: relative;
}
.ceremony-cols li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.ceremony-price {
  display: flex; align-items: baseline; gap: 8px;
  font-family: "Cormorant Garamond", serif;
}
.ceremony-price b { font-size: 30px; color: var(--ink); font-weight: 600; }
.ceremony-price span { color: var(--muted); font-size: 15px; font-family: "Manrope"; }
.ceremony-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

/* ---------- Блок «о нас» + статистика ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  min-height: 460px;
  background-color: var(--cream);
  background-size: cover; background-position: center;
}
.split h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 22px; }
.split p { color: var(--muted); margin-bottom: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 38px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat b {
  font-family: "Cormorant Garamond", serif;
  font-size: 46px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat span { font-size: 14px; color: var(--muted); display: block; margin-top: 8px; }

/* ---------- Плашки-преимущества ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.adv {
  border-radius: var(--radius);
  padding: 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
}
.adv-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: auto;
}
.adv h3 { font-size: 24px; margin: 26px 0 10px; }
.adv p { font-size: 14.5px; }
.adv--dark  { background: var(--dark); color: #fff; }
.adv--dark .adv-icon { background: rgba(255,255,255,.1); }
.adv--dark p { color: rgba(255,255,255,.7); }
.adv--green { background: var(--accent); color: #fff; }
.adv--green .adv-icon { background: rgba(255,255,255,.16); }
.adv--green p { color: rgba(255,255,255,.85); }
.adv--cream { background: var(--cream); color: var(--ink); }
.adv--cream .adv-icon { background: #fff; }
.adv--cream p { color: var(--muted); }
.adv--light { background: var(--card); border-color: var(--line); color: var(--ink); }
.adv--light .adv-icon { background: var(--bg-2); }
.adv--light p { color: var(--muted); }

/* ---------- CTA-баннер ---------- */
.cta-banner {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 70px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "茶";
  position: absolute;
  right: -30px; bottom: -60px;
  font-size: 280px;
  font-family: "Cormorant Garamond", serif;
  color: rgba(255,255,255,.04);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(30px, 4vw, 46px); position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.72); margin-top: 16px; position: relative; z-index: 1; }
.cta-banner .cta-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: flex-end; position: relative; z-index: 1;
}

/* ---------- Внутренний hero (О нас / Контакты) ---------- */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 170px 0 90px;
  text-align: center;
}
.page-hero .eyebrow { color: #93a685; }
.page-hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 500; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 560px; margin: 20px auto 0; }

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
}
.contact-card .label {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.contact-card .value {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px; font-weight: 600; color: var(--ink);
}
.contact-card .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.messengers { display: flex; gap: 12px; margin-top: 8px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.form h3 { font-size: 30px; margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 60px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.25); }

/* ---------- Подвал ---------- */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 80px 0 36px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-top h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 500; }
.footer-top .small { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 14px; }
.footer-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.footer-col .label {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.45); margin-bottom: 14px;
}
.footer-col a, .footer-col p { color: rgba(255,255,255,.82); display: block; padding: 5px 0; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-big-value { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; color: rgba(255,255,255,.45); font-size: 13.5px;
}

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .burger {
    display: flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%; cursor: pointer;
  }
  .burger span { width: 18px; height: 2px; background: #fff; transition: .3s; }
  .site-header.scrolled .burger { background: rgba(34,37,30,.06); border-color: var(--line); }
  .site-header.scrolled .burger span { background: var(--ink); }

  .mobile-nav {
    position: fixed; inset: 0; z-index: 200;
    background: var(--dark); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; transform: translateY(-100%); transition: transform .45s var(--ease);
  }
  .mobile-nav.open { transform: none; }
  .mobile-nav a { font-family: "Cormorant Garamond", serif; font-size: 34px; padding: 10px; }
  .mobile-nav .close { position: absolute; top: 28px; right: 28px; font-size: 34px; }

  .ceremony, .ceremony:nth-child(even) { grid-template-columns: 1fr; }
  .ceremony:nth-child(even) .ceremony-media { order: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-banner .cta-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-card { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .ceremony-body { padding: 30px; }
  .ceremony-cols { grid-template-columns: 1fr; gap: 18px; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .adv-grid { grid-template-columns: 1fr; }
  .form, .contact-card { padding: 26px; }
}
