@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Prata&display=swap');

/* ============================================================
   Глифлаб — warm, hand-made local-business studio
   Naming: semantic BEM (block__element--modifier)
   Layout: CSS Grid + Flex, fluid clamp()
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

img,
svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; cursor: pointer; }

ul,
ol { list-style: none; padding: 0; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.1; font-weight: 400; }

:root {
  --font-display: 'Prata', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* warm, light palette */
  --cream:      #f6eddc;
  --cream-deep: #efe2c9;
  --latte:      #e9dcc3;
  --paper:      #fbf7ee;
  --paper-2:    #fffdf8;
  --terra:      #c27a58;
  --terra-deep: #9d5836;
  --terra-soft: #ddab8f;
  --sage:       #8c9b84;
  --sage-deep:  #5c6d54;
  --sage-tint:  #dfe3d4;
  --ink:        #39312a;
  --ink-soft:   #6d6257;
  --line:       #e4d7bf;
  --line-soft:  #efe7d6;

  --shadow-sm: 0 2px 10px rgba(57,49,42,.06);
  --shadow-md: 0 16px 40px -20px rgba(57,49,42,.28);
  --shadow-lg: 0 40px 80px -40px rgba(57,49,42,.4);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 100px;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .2vw + .95rem, 1.09rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 80% at 82% -10%, var(--terra-soft) 0%, transparent 52%),
    radial-gradient(90% 70% at -8% 108%, var(--sage-tint) 0%, transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--terra-soft); color: var(--ink); }

/* ---------- Container (required pattern) ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.eyebrow::before {
  content: "";
  width: .85em;
  height: .85em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--terra-soft), var(--terra-deep));
  box-shadow: 0 0 0 4px var(--paper);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 16ch;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -.005em;
  color: var(--ink);
  max-width: 22ch;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  line-height: 1.25;
  color: var(--ink);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

p { color: var(--ink-soft); }

a { transition: color .2s ease, opacity .2s ease; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--terra);
  --_fg: var(--paper);
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1em 1.7em;
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid var(--_bd);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn__arrow { transition: transform .25s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  --_bd: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { --_bg: var(--paper); --_bd: var(--terra-soft); }
.btn--sage { --_bg: var(--sage-deep); }
.btn--lg { padding: 1.15em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.section--tint { background: var(--paper); }
.section--latte { background: var(--latte); }
.section__head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 40rem;
}
.section__head--center { margin-inline: auto; text-align: center; max-width: 46rem; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .h2 { margin-inline: auto; }
.section__head--center .lead { margin-inline: auto; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: 1.25rem;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
}
.site-header__brand svg { width: 34px; height: 34px; }
.site-header__brand span { letter-spacing: .01em; }

.site-header__nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--paper-2);
  padding: .45rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.site-header__link {
  position: relative;
  padding: .55em .9em;
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: color .2s ease, background .2s ease;
}
.site-header__link:hover { color: var(--ink); background: var(--sage-tint); }
.site-header__link--current { color: var(--terra-deep); font-weight: 600; }
.site-header__link--current:hover { background: transparent; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .95rem;
  padding: .65em 1.2em;
  border-radius: var(--r-pill);
  background: var(--terra);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-header__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* scrolled state */
.site-header--scrolled {
  background: rgba(251,247,238,.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding-block: .7rem;
}

/* mobile */
.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  padding: 10px;
}
.site-header__toggle span {
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.site-header__toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle--open span:nth-child(2) { opacity: 0; }
.site-header__toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .site-header__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    background: var(--cream);
    border-radius: 0;
    padding: 6rem 1.5rem 2rem;
    box-shadow: none;
    border: 0;
    transform: translateY(-102%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.5,0,.1,1), opacity .3s ease;
  }
  .site-header__nav--open { transform: translateY(0); opacity: 1; }
  .site-header__link {
    font-size: 1.35rem;
    font-family: var(--font-display);
    padding: .7em .5em;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-header__toggle { display: flex; }
  .site-header__cta { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #d8cfc4;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer__glow {
  position: absolute;
  inset: -40% 0 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(194,122,88,.28), transparent 70%);
  pointer-events: none;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  position: relative;
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 1rem;
}
.site-footer__brand svg { width: 34px; height: 34px; }
.site-footer__tag {
  color: #b3a89b;
  max-width: 30ch;
  font-size: .98rem;
  line-height: 1.55;
}
.site-footer__col-title {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra-soft);
  margin-bottom: 1.1rem;
}
.site-footer__links li { margin-bottom: .7rem; }
.site-footer__links a {
  color: #c8beb2;
  font-size: .98rem;
  transition: color .2s ease, padding-left .2s ease;
}
.site-footer__links a:hover { color: var(--paper); padding-left: 4px; }

.site-footer__contact { font-size: .98rem; line-height: 1.7; color: #c8beb2; }
.site-footer__contact a { color: var(--paper); }
.site-footer__contact a:hover { color: var(--terra-soft); }

.site-footer__socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.1rem;
}
.site-footer__socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--paper);
  transition: background .25s ease, transform .25s ease;
}
.site-footer__socials a:hover { background: var(--terra); transform: translateY(-3px); }
.site-footer__socials svg { width: 18px; height: 18px; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  font-size: .9rem;
  color: #9a8f82;
}
.site-footer__made { color: #b3a89b; }
.site-footer__made a { color: var(--terra-soft); }

@media (max-width: 820px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand-block { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(7rem, 14vw, 9.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
.hero__inner { display: block; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero__title { margin-bottom: 1.4rem; }
.hero__title em {
  font-style: italic;
  color: var(--terra-deep);
}
.hero__sub { margin-bottom: 2rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.hero__avatars { display: flex; }
.hero__avatars img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
  object-fit: cover;
}
.hero__avatars img:first-child { margin-left: 0; }
.hero__trust strong { color: var(--ink); font-weight: 700; }

/* hero media */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--paper-2);
  padding: .85rem 1.1rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--terra-deep);
  line-height: 1;
}
.hero__badge-text { font-size: .85rem; line-height: 1.3; color: var(--ink-soft); }
.hero__badge-text strong { display: block; color: var(--ink); font-weight: 700; }

/* postcard */
.postcard {
  position: absolute;
  width: 46%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--paper-2);
  background: var(--paper-2);
}
.postcard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.postcard--a { top: -4%; right: -3%; transform: rotate(4deg); }
.postcard--b { bottom: 6%; left: -5%; transform: rotate(-6deg); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin-inline: auto; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--terra);
  color: var(--paper);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  padding-inline: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "✿";
  font-size: .8em;
  opacity: .7;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CARDS / FEATURES
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--terra-soft); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--sage-tint);
  color: var(--sage-deep);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--terra { background: #f3e2d6; color: var(--terra-deep); }
.card__icon--sage { background: var(--sage-tint); color: var(--sage-deep); }
.card__icon--latte { background: var(--latte); color: var(--terra-deep); }
.card__text { font-size: .98rem; line-height: 1.55; }

@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--terra-deep);
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
}
.stat__label { font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background:
    radial-gradient(120% 120% at 90% 0%, rgba(194,122,88,.35), transparent 55%),
    var(--sage-deep);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 10% 100%, rgba(140,155,132,.5), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 44rem; margin-inline: auto; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--paper);
  margin-bottom: 1rem;
}
.cta__text { color: #e6e4d8; margin-bottom: 1.8rem; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta .btn--ghost { --_fg: var(--paper); --_bd: rgba(255,255,255,.4); }
.cta .btn--ghost:hover { --_bg: rgba(255,255,255,.12); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 720px; }
.faq__item {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  margin-bottom: .9rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
}
.faq__q .faq__plus {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage-deep);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .3s ease, background .3s ease;
}
.faq__item--open .faq__plus { transform: rotate(45deg); background: var(--terra); color: var(--paper); }
.faq__a {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq__item--open .faq__a { max-height: 320px; padding: 0 1.4rem 1.3rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form {
  display: grid;
  gap: 1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { display: grid; gap: .45rem; }
.form__label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.form__input,
.form__select,
.form__textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: .85em 1em;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(194,122,88,.15);
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ============================================================
   MOTION / ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none; }
}*{box-sizing:border-box}body{margin:0}img,svg,video{max-width:100%;height:auto}