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

:root {
  /* цвет */
  --paper:      #f5f1ea;
  --paper-2:    #ece4d8;
  --ink:        #2a2622;
  --ink-soft:   #5f564d;
  --muted:      #8a7f72;
  --line:       #ddd2c2;
  --clay:       #b4612f;   /* охра/терракота — основной акцент */
  --clay-deep:  #8f4a22;
  --sage:       #74785c;   /* приглушённый оливковый — второй акцент */
  --night:      #211d18;   /* тёмные секции / футер */
  --night-2:    #2c271f;

  /* типографика */
  --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: 96px; --s-8: 128px;

  --maxw: 1180px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow:    0 1px 2px rgba(33,29,24,.05), 0 8px 28px rgba(33,29,24,.07);
  --shadow-lg: 0 18px 50px rgba(33,29,24,.16);
  --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.7;
  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.12; letter-spacing: .005em; 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(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); z-index: 999;
}

/* ---------- общие секции ---------- */
.section { padding-block: var(--s-7); }
.section--alt    { background: var(--paper-2); }
.section--accent { background: var(--night); color: #e9e1d4; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 var(--s-2);
}
.eyebrow--light { color: #e2a878; }

.section-head { max-width: 640px; margin: 0 auto var(--s-6); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: var(--s-2); }
.section-head__lead { color: var(--ink-soft); font-size: 18px; margin: 0; }
.section--accent .section-head__lead { color: #c8bca9; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clay); color: #fff;
  padding: 14px 26px; border: 1px solid var(--clay);
  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);
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-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(--clay); }
.btn--ghost:hover { background: rgba(180,97,47,.08); color: var(--clay-deep); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.7); }
.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(245,241,234,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(33,29,24,.05);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.brand__mark { color: var(--clay); flex: none; }
.brand__name { letter-spacing: .04em; }

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

.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(--clay);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--clay); }
.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: 92vh; display: flex; align-items: center; overflow: hidden; margin-top: -76px; padding-top: 76px; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; background-size: cover; background-position: center 35%;
  z-index: -2; will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(33,29,24,.55) 0%, rgba(33,29,24,.30) 40%, rgba(33,29,24,.62) 100%);
}
.hero__content { color: #fdfaf4; max-width: 760px; padding-block: var(--s-7); }
.hero__title { font-size: clamp(40px, 7vw, 78px); line-height: 1.02; margin-bottom: var(--s-3); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 30em; color: #f1ebe0; margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.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.6s 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; } }

/* ---------- studio / manifesto ---------- */
.studio__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-6); align-items: center; }
.studio__text h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: var(--s-3); }
.studio__text p { color: var(--ink-soft); }
.stats { list-style: none; display: flex; gap: var(--s-5); padding: 0; margin: var(--s-4) 0 0; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-size: 38px; color: var(--clay); line-height: 1; }
.stats span { font-size: 14px; color: var(--muted); margin-top: 6px; }
.studio__media { margin: 0; position: relative; }
.studio__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/2; object-fit: cover; }
.studio__media figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; font-style: italic; }

/* ---------- process ---------- */
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-4); position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdbfa9; }
.step__num { font-family: var(--serif); font-size: 15px; color: var(--clay); letter-spacing: .1em; }
.step__icon { width: 46px; height: 46px; display: block; margin: var(--s-2) 0 var(--s-3); }
.step__icon path, .step__icon circle, .step__icon rect { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- collection ---------- */
.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: 500;
  transition: all .22s var(--ease);
}
.filter:hover { border-color: var(--clay); color: var(--clay); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.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);
}
.card.is-hidden { display: none; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { overflow: hidden; aspect-ratio: 4/3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 20px; }
.card__body p { color: var(--ink-soft); font-size: 15px; margin: 0; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tag { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.price { font-family: var(--serif); font-size: 17px; color: var(--clay); }
.collection__note { text-align: center; color: var(--ink-soft); max-width: 620px; margin: var(--s-5) auto 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: rgba(33,29,24,.66); }
.quote-band blockquote { position: relative; margin: 0; max-width: 880px; text-align: center; color: #fdfaf4; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 40px); line-height: 1.28; font-style: italic; }
.quote-band cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: 15px; letter-spacing: .08em; color: #e2a878; }

/* ---------- workshops ---------- */
.workshops__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-6); align-items: center; }
.workshops__media { margin: 0; }
.workshops__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; }
.workshops__text h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: var(--s-3); }
.workshops__text > p { color: var(--ink-soft); }
.workshop-list { list-style: none; padding: 0; margin: var(--s-4) 0; }
.workshop-list li { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.workshop-list li:last-child { border-bottom: 1px solid var(--line); }
.workshop-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.workshop-list h3 { font-size: 21px; }
.workshop-list p { color: var(--ink-soft); font-size: 15px; margin: 6px 0 0; }

/* ---------- testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.review { margin: 0; background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--s-4); border-left: 3px solid var(--clay); }
.review blockquote { margin: 0 0 var(--s-3); font-size: 17px; line-height: 1.6; color: var(--ink); }
.review figcaption { font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* ---------- newsletter ---------- */
.letters__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.letters__text h2 { font-size: clamp(28px, 3.6vw, 40px); color: #fdfaf4; margin-bottom: var(--s-2); }
.letters__text p { color: #c8bca9; }
.subscribe__row { display: flex; gap: 10px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid #4a4138; background: #2c271f; color: #f3ece0; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.subscribe input::placeholder { color: #8a7f70; }
.subscribe input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180,97,47,.25); }
.subscribe input.invalid { border-color: #d4674a; box-shadow: 0 0 0 3px rgba(212,103,74,.25); }
.subscribe .btn { flex: none; }
.subscribe__hint { font-size: 13px; color: #9c9082; margin: 12px 0 0; }
.subscribe__ok { font-size: 15px; color: #8fce9c; margin: 12px 0 0; }

/* ---------- 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 36px 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: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--clay); font-family: var(--sans); transition: transform .25s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list summary:hover { color: var(--clay); }
.faq__list details p { color: var(--ink-soft); padding: 0 36px 10px 0; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #c8bca9; 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: #f3ece0; }
.brand--light { color: #f3ece0; }
.footer__brand p { margin-top: var(--s-2); font-size: 15px; max-width: 30ch; color: #a99d8c; }
.footer__col h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: #8a7f70; margin: 0 0 var(--s-2); }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: #c8bca9; margin: 0 0 8px; transition: color .2s var(--ease); }
.footer__col a:hover { color: #e2a878; }
.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 #3a342b; padding-block: var(--s-3) var(--s-4); font-size: 14px; color: #8a7f70;
}
.footer__bottom a:hover { color: #e2a878; }

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

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .studio__grid, .workshops__grid, .letters__inner, .faq__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .workshops__media { order: 2; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .quote-band { background-attachment: scroll; }
}

@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: 76px 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(245,241,234,.96); backdrop-filter: blur(10px); }
  .site-header:not(.scrolled).menu-open .nav a { color: var(--ink); }
  .site-header:not(.scrolled).menu-open .brand { color: var(--ink); }
  .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); }
  .stats { gap: var(--s-3); }
  .stats b { font-size: 30px; }
  .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; }
}
