/* ============================================================
   1. ТОКЕНЫ
   ============================================================ */
:root {
  /* Поверхности */
  --cream: #FBF8F4;
  --warm-white: #FFFFFF;
  --sand: #F0E8DC;
  --blush: #F2D9D0;
  --sage: #C5D1C0;

  /* Текст */
  --charcoal: #3A3632;
  --text: #4A4541;
  --text-muted: #6E6862;      /* было #8A8480 — не проходило по контрасту */
  --text-on-dark: rgba(251, 248, 244, .78);

  /* Акцент: декоративный и текстовый — это разные роли */
  --accent: #B8916E;          /* линии, заливки, ховеры */
  --accent-ink: #825B33;      /* акцентный ТЕКСТ на светлом фоне */
  --accent-on-dark: #C6A182;  /* акцент на charcoal */

  /* Типографика: плавная шкала */
  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.94rem, .91rem + .15vw, 1rem);
  --step-1:  clamp(1.05rem, 1rem + .25vw, 1.18rem);
  --step-2:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);

  /* Ритм */
  --space-xs: .5rem;
  --space-s: 1rem;
  --space-m: 1.8rem;
  --space-l: 3rem;
  --space-xl: clamp(4.5rem, 3rem + 6vw, 7rem);
  --gutter: clamp(1.25rem, .5rem + 3vw, 2rem);

  --radius: 16px;
  --radius-s: 10px;
  --measure: 62ch;
  --container: 1080px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 18px 45px rgba(58, 54, 50, .07);
}

/* ============================================================
   2. СБРОС
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* фикс-шапка не должна накрывать якорную цель */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .02em;
  text-wrap: balance;
  color: var(--charcoal);
}
p { text-wrap: pretty; }

/* ============================================================
   3. ФОКУС И СЛУЖЕБНОЕ
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.contact :focus-visible { outline-color: var(--accent-on-dark); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--space-s); left: var(--space-s);
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-size: var(--step--1);
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ============================================================
   4. РАСКЛАДКА
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.section { padding-block: var(--space-xl); padding-inline: var(--gutter); }
.section--white { background: var(--warm-white); }
.section--sand { background: var(--sand); }
.section--center { text-align: center; }

.section-head { margin-bottom: var(--space-l); }
.section--center .section-head { margin-inline: auto; }

.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: var(--step-3);
  font-weight: 300;
  letter-spacing: .03em;
  max-width: 20ch;
}
.section--center .section-title { max-width: 24ch; margin-inline: auto; }

/* ============================================================
   5. ШАПКА
   ============================================================ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 1rem var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(251, 248, 244, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(58, 54, 50, .06);
  padding-block: .7rem;
}

.site-header__logo { display: block; }
.site-header__logo img {
  height: 38px;
  width: auto;
  transition: height .3s var(--ease);
}
.site-header[data-scrolled] .site-header__logo img { height: 30px; }

.nav__list { display: flex; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav__link {
  position: relative;
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-block-end: -4px;
  inset-inline-start: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--accent-ink); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-s);
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   6. ГЛАВНЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--gutter) 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(242, 217, 208, .35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(197, 209, 192, .30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(240, 232, 220, .45) 0%, transparent 50%);
}

.hero__shapes { position: absolute; inset: 0; overflow: hidden; }
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  animation: float 14s ease-in-out infinite;
}
.hero__shape:nth-child(1) { width: 420px; aspect-ratio: 1; background: var(--blush); top: -120px; right: -100px; }
.hero__shape:nth-child(2) { width: 320px; aspect-ratio: 1; background: var(--sage); bottom: -80px; left: -80px; animation-delay: -5s; }
.hero__shape:nth-child(3) { width: 180px; aspect-ratio: 1; background: var(--sand); top: 35%; left: 8%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.04); }
}

.hero__content { position: relative; z-index: 2; max-width: 720px; }
.hero__logo { height: clamp(50px, 8vw, 70px); width: auto; margin: 0 auto var(--space-m); }
.hero__divider { width: 50px; height: 1px; background: var(--accent); margin: 0 auto var(--space-m); border: 0; }
.hero__title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 300;
  letter-spacing: .04em;
  margin-bottom: 1.3rem;
}
.hero__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: center; }

.hero__scroll {
  position: absolute;
  inset-block-end: 2.5rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  animation: bounce 2.5s infinite;
}
.hero__scroll svg { width: 20px; height: 20px; stroke: var(--text-muted); opacity: .55; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Появление первого экрана — только когда работает JS */
.js .hero__reveal { opacity: 0; animation: fade-up .8s var(--ease) forwards; }
.js .hero__reveal:nth-child(1) { animation-delay: .30s; }
.js .hero__reveal:nth-child(2) { animation-delay: .45s; }
.js .hero__reveal:nth-child(3) { animation-delay: .60s; }
.js .hero__reveal:nth-child(4) { animation-delay: .80s; }
.js .hero__reveal:nth-child(5) { animation-delay: 1s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   7. КНОПКИ
   ============================================================ */
.btn {
  display: inline-block;
  padding: .85rem 2.4rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--primary { background: var(--charcoal); color: var(--cream); }
.btn--primary:hover {
  background: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(130, 91, 51, .28);
}
.btn--outline { color: var(--charcoal); border: 1.5px solid currentColor; }
.btn--outline:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }

/* ============================================================
   8. О КОМПАНИИ
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--sand) 0%, var(--blush) 100%);
  display: grid;
  place-items: center;
}
.about__figure::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-s);
}
.about__ornament { font-size: 5rem; opacity: .25; line-height: 1; }
.about__text > p { margin-bottom: 1.2rem; color: var(--text-muted); max-width: var(--measure); }
.about__sign { height: 40px; width: auto; opacity: .6; margin-top: var(--space-s); }

/* ============================================================
   9. ПРЕИМУЩЕСТВА
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-m);
}
.card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2.5rem 1.8rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.card__icon {
  width: 56px; aspect-ratio: 1;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1.4rem;
  background: rgba(240, 232, 220, .55);
}
.card:nth-child(3n+1) .card__icon { background: rgba(242, 217, 208, .45); }
.card:nth-child(3n+2) .card__icon { background: rgba(197, 209, 192, .45); }
.card__title { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.card__text { font-size: var(--step--1); color: var(--text-muted); }

/* ============================================================
   10. КОЛЛЕКЦИИ
   ============================================================ */
.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-m);
}
.collection {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.collection:hover { transform: scale(1.02); box-shadow: var(--shadow-card); }
.collection:nth-child(1) { background: linear-gradient(160deg, #F2D9D0, #F8EDE8); }
.collection:nth-child(2) { background: linear-gradient(160deg, #C5D1C0, #E4ECE1); }
.collection:nth-child(3) { background: linear-gradient(160deg, #F0E8DC, #F8F4EE); }
.collection__ornament {
  position: absolute;
  inset-block-start: 42%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  font-size: 3.5rem;
  opacity: .3;
  line-height: 1;
}
.collection__body {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: var(--space-m);
  background: linear-gradient(to top, rgba(48, 42, 36, .55), transparent);
}
.collection__title { font-size: var(--step-2); font-weight: 400; color: var(--warm-white); margin-bottom: .1rem; }
.collection__note { font-size: var(--step--1); color: rgba(255, 255, 255, .92); }

/* ============================================================
   11. ОТЗЫВЫ
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-m);
  text-align: start;
}
.review {
  position: relative;
  margin: 0;
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}
.review::before {
  content: '\201C';
  position: absolute;
  inset-block-start: .6rem;
  inset-inline-start: 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blush);
}
.review__rating { color: var(--accent-ink); font-size: .85rem; letter-spacing: 2px; margin-bottom: var(--space-xs); }
.review__text { font-style: italic; color: var(--text-muted); padding-top: 1.2rem; margin-bottom: var(--space-s); }
.review__author { font-size: var(--step--1); font-weight: 500; color: var(--charcoal); font-style: normal; }

/* ============================================================
   12. ПРИНЦИПЫ
   ============================================================ */
.values { position: relative; overflow: hidden; }
.values::before {
  content: '';
  position: absolute;
  width: 500px; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  top: -200px; right: -100px;
}
.values__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2.5rem;
  counter-reset: value;
  text-align: start;
}
.values__item { display: flex; gap: 1.2rem; align-items: flex-start; counter-increment: value; }
.values__item::before {
  content: counter(value, decimal-leading-zero);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent-ink);
  min-width: 44px;
  letter-spacing: -.02em;
}
.values__title { font-size: var(--step-1); margin-bottom: .2rem; }
.values__text { font-size: var(--step--1); color: var(--text-muted); }

/* ============================================================
   13. КОНТАКТЫ И ПОДВАЛ
   ============================================================ */
.contact { background: var(--charcoal); color: var(--cream); }
.contact .section-title { color: var(--cream); }
.contact .section-label { color: var(--accent-on-dark); }
.contact__logo { height: 50px; width: auto; margin: 0 auto var(--space-m); opacity: .9; }
.contact__lead { color: var(--text-on-dark); max-width: 46ch; margin: 0 auto 2.5rem; }

.contact__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s) var(--space-l);
  margin-top: 2.5rem;
}
.contact__item { display: flex; align-items: center; gap: .6rem; font-size: var(--step-0); }
.contact__item svg { width: 18px; height: 18px; stroke: var(--accent-on-dark); flex: none; }
.contact__item a { color: var(--text-on-dark); text-decoration: none; transition: color .3s var(--ease); }
.contact__item a:hover { color: var(--accent-on-dark); }

.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(251, 248, 244, .08);
  padding: 1.8rem var(--gutter);
  text-align: center;
}
.site-footer p { font-size: .78rem; letter-spacing: .04em; color: rgba(251, 248, 244, .45); }

/* ============================================================
   14. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   Стили висят на .js — без скрипта контент виден сразу.
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal][data-visible] { opacity: 1; transform: none; }

/* ============================================================
   15. АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { max-height: 320px; }
}

@media (max-width: 640px) {
  .nav { position: static; }
  .nav__toggle { display: block; }
  .nav__list {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem var(--gutter);
    background: rgba(251, 248, 244, .97);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(58, 54, 50, .08);
  }
  .nav__list[data-open] { display: flex; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__scroll { display: none; }
}

/* ============================================================
   16. ЩАДЯЩИЙ РЕЖИМ ДВИЖЕНИЯ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__reveal { opacity: 1; animation: none; }
}

/* ============================================================
   17. ПЕЧАТЬ
   ============================================================ */
@media print {
  .site-header, .hero__shapes, .hero__scroll, .nav__toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
