/* ===========================================================================
   Лунный пар — чайная мануфактура. Дизайн-система одного лендинга.
   Палитра нефрит/селадон, тёплая бумага, охра. Только локальные ресурсы.
   =========================================================================== */

:root {
  /* цвет */
  --paper:      #f4f1e8;   /* тёплая бумага */
  --paper-2:    #ece7d8;
  --celadon:    #d9e2d0;   /* бледный селадон для светлых секций */
  --ink:        #1f2620;   /* почти-чёрный с зелёным отливом */
  --ink-soft:   #4a554c;
  --muted:      #7d8a7c;
  --line:       #d4cdbb;
  --jade:       #1f5a4c;   /* нефрит — основной акцент */
  --jade-deep:  #143f35;
  --jade-bright:#2c7a64;
  --ochre:      #c08a2e;   /* охра — второй акцент, цены/цифры */
  --ochre-soft: #d8a64a;
  --deep:       #15211c;   /* тёмные секции / футер */
  --deep-2:     #1b2a24;

  /* типографика */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* шкала отступов */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 100px; --s-8: 140px;

  --maxw: 1200px;
  --radius: 3px;
  --radius-lg: 14px;
  --shadow:    0 1px 2px rgba(21,33,28,.05), 0 10px 30px rgba(21,33,28,.08);
  --shadow-lg: 0 22px 56px rgba(21,33,28,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: .004em; margin: 0; }
p { margin: 0 0 var(--s-2); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--jade); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 999;
}

/* ---------- общие секции ---------- */
.section { padding-block: var(--s-7); }
.section--leaf { background: var(--celadon); }
.section--deep { background: var(--deep); color: #e7ecdf; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 12px;
  font-weight: 700;
  color: var(--jade);
  margin: 0 0 var(--s-2);
}
.eyebrow--light { color: var(--ochre-soft); }

.section-head { max-width: 660px; margin: 0 auto var(--s-6); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; max-width: 760px; }
.section-head h2 { font-size: clamp(29px, 4vw, 44px); margin-bottom: var(--s-2); }
.section-head__lead { color: var(--ink-soft); font-size: 18px; margin: 0; }
.section--deep .section-head__lead { color: #c2cbb9; }

/* акцентная «волосяная» черта под H2 в left-секциях */
.section-head--left h2::after {
  content: ""; display: block; width: 56px; height: 2px; background: var(--ochre); margin-top: var(--s-3);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--jade); color: #fff;
  padding: 14px 28px; border: 1px solid var(--jade);
  border-radius: var(--radius); font-weight: 600; font-size: 15px;
  letter-spacing: .01em;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--jade-deep); border-color: var(--jade-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--jade); }
.btn--ghost:hover { background: rgba(31,90,76,.08); color: var(--jade-deep); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(244,241,232,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(21,33,28,.06);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); }
.brand__mark { color: var(--jade); flex: none; }
.brand__name { letter-spacing: .03em; }

/* хедер на прозрачном фоне поверх hero — светлый текст, пока не проскроллено */
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav a { color: #f4f6ee; }
.site-header:not(.scrolled) .brand__mark { color: #bfe0cf; }

.nav { display: flex; gap: var(--s-4); margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ochre);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ochre); }
.nav a:hover::after { width: 100%; }
.nav-cta { flex: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.site-header:not(.scrolled) .burger span { background: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; margin-top: -78px; padding-top: 78px; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; background-size: cover; background-position: center 40%;
  z-index: -2; will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(21,33,28,.30) 0%, rgba(21,33,28,.58) 78%),
    linear-gradient(180deg, rgba(21,33,28,.40) 0%, rgba(21,33,28,.30) 45%, rgba(21,33,28,.66) 100%);
}
.hero__content { color: #f6f7ef; max-width: 820px; padding-block: var(--s-7); }
.hero__title { font-size: clamp(42px, 7.4vw, 84px); line-height: 1.02; margin-bottom: var(--s-3); text-shadow: 0 2px 34px rgba(0,0,0,.30); }
.hero__lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 34em; margin: 0 auto var(--s-4); color: #eef1e6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.hero__meta { margin: var(--s-4) 0 0; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; color: #c6d4c4; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff;
  border-radius: 2px; transform: translateX(-50%); animation: scrollcue 1.7s var(--ease) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } 100% { opacity: 0; } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-6); align-items: start; }
.about__text h2 { font-size: clamp(28px, 3.6vw, 41px); margin-bottom: var(--s-3); max-width: 14ch; }
.about__text p { color: var(--ink-soft); }
.about__link { display: inline-block; margin-top: var(--s-2); color: var(--jade); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease); }
.about__link:hover { color: var(--jade-deep); border-bottom-color: var(--ochre); }

.about__panel { position: relative; }
.about__media { margin: 0; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; }
/* метрики — отдельная карточка, наезжающая на фото снизу */
.metrics {
  list-style: none; display: flex; gap: var(--s-4); padding: var(--s-3) var(--s-4); margin: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); position: relative; margin-top: -56px; margin-left: var(--s-4); margin-right: var(--s-5);
}
.metrics li { display: flex; flex-direction: column; }
.metrics b { font-family: var(--serif); font-size: 34px; color: var(--ochre); line-height: 1; }
.metrics span { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 12ch; }

/* ---------- catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--s-5); }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.filter:hover { border-color: var(--jade); color: var(--jade); }
.filter.is-active { background: var(--jade); border-color: var(--jade); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card.is-hidden { display: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c2cbb0; }
.card__media { overflow: hidden; aspect-ratio: 4/5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__type { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--jade); font-weight: 700; }
.card__body h3 { font-size: 21px; }
.card__body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-top: 8px; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.card__grade { font-size: 12px; color: var(--muted); }
.price { font-family: var(--serif); font-size: 17px; color: var(--ochre); white-space: nowrap; }
.catalog__note { text-align: center; color: var(--ink-soft); max-width: 640px; margin: var(--s-5) auto 0; }

/* ---------- brew ---------- */
.brew__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--s-6); align-items: start; }
.brew__intro h2 { font-size: clamp(28px, 3.6vw, 41px); margin-bottom: var(--s-3); }
.brew__intro > p { color: var(--ink-soft); }
.brew__hint { background: var(--paper-2); border-left: 3px solid var(--jade); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: 15.5px; color: var(--ink); }
.brew__hint b { color: var(--jade); }
.brew__media { margin: var(--s-4) 0 0; }
.brew__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/2; object-fit: cover; }

.brew__steps { list-style: none; padding: 0; margin: 0; }
.brew-step { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.brew-step:last-child { border-bottom: 0; }
.brew-step__num {
  font-family: var(--serif); font-size: 18px; color: var(--jade); flex: none;
  width: 44px; height: 44px; border: 1.5px solid var(--jade); border-radius: 50%;
  display: grid; place-items: center; font-weight: 600;
}
.brew-step h3 { font-size: 20px; margin-bottom: 5px; }
.brew-step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- quote band ---------- */
.quote-band { position: relative; background-size: cover; background-position: center; background-attachment: fixed; padding-block: var(--s-8); }
.quote-band__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,63,53,.78), rgba(21,33,28,.80)); }
.quote-band blockquote { position: relative; margin: 0 auto; max-width: 900px; text-align: center; color: #f6f7ef; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 40px); line-height: 1.3; font-style: italic; }
.quote-band cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre-soft); }

/* ---------- tastings / agenda ---------- */
.agenda { list-style: none; padding: 0; margin: 0; }
.event {
  display: grid; grid-template-columns: 150px 1fr auto; gap: var(--s-4); align-items: center;
  padding: var(--s-3) var(--s-2); border-top: 1px solid var(--line);
  transition: background .25s var(--ease), padding-inline .25s var(--ease);
}
.event:last-child { border-bottom: 1px solid var(--line); }
.event:hover { background: var(--paper-2); padding-inline: var(--s-3); }
.event__date { display: flex; flex-direction: column; }
.event__day { font-family: var(--serif); font-size: 22px; color: var(--jade); line-height: 1.1; }
.event__time { font-size: 13px; color: var(--muted); margin-top: 3px; letter-spacing: .04em; }
.event__body h3 { font-size: 20px; margin-bottom: 4px; }
.event__body p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.event__price {
  font-family: var(--serif); font-size: 17px; color: var(--ochre);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; white-space: nowrap; justify-self: end;
}

/* ---------- supply / subscription ---------- */
.supply__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-6); align-items: center; }
.supply__text h2 { font-size: clamp(28px, 3.6vw, 41px); color: #f4f6ee; margin-bottom: var(--s-2); }
.supply__text > p { color: #c2cbb9; }
.supply__list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.supply__list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #d4dccb; font-size: 15.5px; }
.supply__list li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border: 1.5px solid var(--ochre-soft); border-radius: 50%;
}

.subscribe {
  background: var(--deep-2); border: 1px solid #2c3a32; border-radius: var(--radius-lg);
  padding: var(--s-5); box-shadow: var(--shadow-lg);
}
.subscribe__title { font-size: 23px; color: #f4f6ee; margin-bottom: var(--s-3); }
.subscribe__row { display: flex; gap: 10px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid #3c4a40; background: #11201a; color: #eef2e6; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.subscribe input::placeholder { color: #6f7d70; }
.subscribe input:focus { outline: none; border-color: var(--jade-bright); box-shadow: 0 0 0 3px rgba(44,122,100,.28); }
.subscribe input.invalid { border-color: #cf6b4a; box-shadow: 0 0 0 3px rgba(207,107,74,.25); }
.subscribe .btn { flex: none; }
.subscribe__hint { font-size: 13px; color: #8b988a; margin: 14px 0 0; }
.subscribe__ok { font-size: 15px; color: #8fd6a4; margin: 14px 0 0; }

/* ---------- testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); position: relative; }
.review::before { content: "\201C"; font-family: var(--serif); font-size: 64px; color: var(--celadon); position: absolute; top: 6px; right: 18px; line-height: 1; }
.review blockquote { margin: 0 0 var(--s-3); font-size: 16.5px; line-height: 1.62; color: var(--ink); position: relative; }
.review figcaption { font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* ---------- faq ---------- */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-6); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
.faq__list summary {
  list-style: none; cursor: pointer; font-family: var(--serif); font-size: 20px;
  padding: 10px 40px 10px 0; position: relative; transition: color .2s var(--ease);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--jade),var(--jade)) center/14px 2px no-repeat,
    linear-gradient(var(--jade),var(--jade)) center/2px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--jade); }
.faq__list details p { color: var(--ink-soft); padding: 0 40px 10px 0; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #c2cbb9; padding-top: var(--s-7); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.brand--light .brand__name { color: #eef2e6; }
.brand--light { color: #eef2e6; }
.brand--light .brand__mark { color: #bfe0cf; }
.footer__brand p { margin-top: var(--s-2); font-size: 15px; max-width: 32ch; color: #98a597; }
.footer__col h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: #7d8a7c; margin: 0 0 var(--s-2); }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: #c2cbb9; margin: 0 0 8px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--ochre-soft); }
.footer__social a { display: inline; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  border-top: 1px solid #2c3a32; padding-block: var(--s-3) var(--s-4); font-size: 14px; color: #7d8a7c;
}
.footer__bottom a:hover { color: var(--ochre-soft); }

/* ---------- reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .about__grid, .brew__grid, .supply__inner, .faq__inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .brew__media { order: -1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .quote-band { background-attachment: scroll; }
  .about__media img { aspect-ratio: 16/10; }
  .metrics { margin-top: var(--s-3); margin-inline: 0; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s-6); }
  .wrap { padding-inline: var(--s-3); }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--s-3) var(--s-3); transform: translateY(-130%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); margin: 0;
  }
  .site-header.menu-open .nav { transform: translateY(0); }
  .site-header:not(.scrolled).menu-open { background: rgba(244,241,232,.97); backdrop-filter: blur(10px); }
  .site-header:not(.scrolled).menu-open .nav a,
  .site-header:not(.scrolled).menu-open .brand { color: var(--ink); }
  .site-header:not(.scrolled).menu-open .brand__mark { color: var(--jade); }
  .site-header:not(.scrolled).menu-open .burger span { background: var(--ink); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .metrics { flex-wrap: wrap; gap: var(--s-3); }
  .event { grid-template-columns: 1fr; gap: var(--s-1); }
  .event__price { justify-self: start; }
  .subscribe { padding: var(--s-4); }
  .subscribe__row { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span::after { animation: none; }
  * { transition-duration: .01ms !important; }
}
