/* =====================================================================
   ДИЗАЙН-СИСТЕМА  ·  жёлто-серая палитра
   ===================================================================== */
:root {
  --yellow:        #F2C100;   /* акцент */
  --yellow-deep:   #D9A800;   /* hover, тени под акцентом */
  --yellow-pale:   #FBF3CF;   /* лёгкая подложка */
  --grey-900:      #26282B;   /* основной текст, тёмные блоки */
  --grey-700:      #4B4F55;   /* второстепенный текст */
  --grey-400:      #9AA0A6;   /* подписи, разделители */
  --grey-200:      #DFE2E5;   /* бордеры */
  --grey-100:      #F1F2F4;   /* серый фон секций */
  --white:         #FFFFFF;

  --font-display:  "Unbounded", "Arial Black", sans-serif;
  --font-body:     "Manrope", "Segoe UI", Arial, sans-serif;

  --container:     1200px;
  --gutter:        clamp(16px, 4vw, 40px);
  --radius:        4px;

  --ease:          cubic-bezier(.2, .8, .2, 1);
  --dur:           .45s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 68px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; }
h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; }
h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head p { color: var(--grey-700); margin-top: 14px; }

/* ---------- фокус / доступность ---------- */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--grey-900); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius); z-index: 1000;
}
.skip-link:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--yellow); color: var(--grey-900); border-color: var(--yellow); }
.btn--solid:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); box-shadow: 0 8px 22px -10px rgba(217,168,0,.7); }
.btn--ghost { background: transparent; color: var(--grey-900); border-color: var(--grey-900); }
.btn--ghost:hover { background: var(--grey-900); color: var(--white); }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--grey-200); box-shadow: 0 6px 24px -18px rgba(38,40,43,.35); }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav__list a { position: relative; padding: 6px 0; color: var(--grey-700); transition: color .2s; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--grey-900); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.header__cta { padding: 12px 20px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; width: 26px; margin-inline: auto; background: var(--grey-900); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================================
   HERO — главный визуальный акцент: жёлтая диагональная полоса
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 110px) clamp(64px, 8vw, 100px); }
.hero__stripe {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 58%, var(--yellow) 58% 100%);
  transform: translateX(100%);
  animation: stripe-in 1s var(--ease) .1s forwards;
}
@keyframes stripe-in { to { transform: translateX(0); } }

.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { font-weight: 700; color: var(--grey-700); margin-bottom: 18px; }
.hero__title { margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--grey-700); max-width: 56ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__facts { display: flex; gap: clamp(24px, 4vw, 56px); margin: 0; padding-top: 28px; border-top: 2px solid var(--grey-900); }
.hero__facts dt { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.hero__facts dd { margin: 4px 0 0; font-size: 14px; color: var(--grey-700); max-width: 14ch; }

.hero__media { margin: 0; position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 9/11; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(38,40,43,.55);
  clip-path: inset(0 0 100% 0);
  animation: media-in 1s var(--ease) .5s forwards;
}
@keyframes media-in { to { clip-path: inset(0 0 0 0); } }
.hero__media figcaption {
  position: absolute; left: -14px; bottom: 28px;
  background: var(--grey-900); color: var(--white);
  padding: 10px 16px; font-size: 14px; border-radius: var(--radius);
}

/* поочерёдное появление строк (только при загрузке) */
.reveal-line { opacity: 0; transform: translateY(18px); animation: line-in .7s var(--ease) forwards; }
.hero__kicker.reveal-line       { animation-delay: .25s; }
.hero__title .reveal-line:nth-child(1) { animation-delay: .35s; }
.hero__title .reveal-line:nth-child(2) { animation-delay: .45s; }
.hero__lead.reveal-line         { animation-delay: .6s; }
.hero__actions.reveal-line      { animation-delay: .7s; }
.hero__facts.reveal-line        { animation-delay: .85s; }
@keyframes line-in { to { opacity: 1; transform: none; } }

/* =====================================================================
   О КОМПАНИИ
   ===================================================================== */
.about { background: var(--grey-100); }
.about__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__head { position: sticky; top: 100px; }
.about__head h2::before { content: ""; display: block; width: 56px; height: 6px; background: var(--yellow); margin-bottom: 20px; }
.about__text { color: var(--grey-700); font-size: 18px; }
.about__text p + p { margin-top: 1.1em; }

/* =====================================================================
   УСЛУГИ — сетка с жёлтой левой гранью
   ===================================================================== */
.services__list { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--grey-200); }
.service {
  position: relative; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--grey-200); margin: -1px 0 0 -1px;
  transition: background .25s;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--yellow); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.service:hover { background: var(--yellow-pale); }
.service:hover::before { transform: scaleY(1); }
.service h3 { margin-bottom: 12px; }
.service h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.service p { color: var(--grey-700); }
.service__meta { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--grey-400); }

/* =====================================================================
   ЭТАПЫ — горизонтальная линия с номерами (контент реально последовательный)
   ===================================================================== */
.process { background: var(--grey-900); color: var(--white); }
.process .section__head h2 { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--grey-700); }
.step { counter-increment: step; position: relative; padding-top: 64px; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--grey-900);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--grey-400); font-size: 16px; }

/* =====================================================================
   ПРЕИМУЩЕСТВА + ФОТО 2
   ===================================================================== */
.advantages__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.advantages__media { margin: 0; position: relative; }
.advantages__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  background: var(--yellow); border-radius: var(--radius);
}
.advantages__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.advantages__media figcaption { margin-top: 36px; font-size: 14px; color: var(--grey-700); }
.advantages__content > p { color: var(--grey-700); margin: 16px 0 32px; }
.advantages__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.advantages__list li { padding-left: 18px; border-left: 3px solid var(--yellow); }
.advantages__list h3 { margin-bottom: 8px; }
.advantages__list p { font-size: 16px; color: var(--grey-700); }

/* =====================================================================
   SEO-ТЕКСТ
   ===================================================================== */
.seo-text { background: var(--grey-100); }
.seo-text__inner { max-width: 780px; }
.seo-text h2 { margin-bottom: 28px; }
.seo-text h3 { margin: 36px 0 14px; }
.seo-text p, .seo-text li { color: var(--grey-700); }
.seo-text ul { list-style: none; margin: 0 0 1em; }
.seo-text li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.seo-text li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 4px; background: var(--yellow); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__inner { max-width: 860px; }
.faq__item { border-top: 1px solid var(--grey-200); }
.faq__item:last-child { border-bottom: 1px solid var(--grey-200); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px;
  background: var(--grey-900); transform: translateY(-50%); transition: transform .3s var(--ease), background .3s;
}
.faq__item summary::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(0); background: var(--yellow-deep); }
.faq__item[open] summary::before { background: var(--yellow-deep); }
.faq__answer { overflow: hidden; }
.faq__answer p { color: var(--grey-700); padding-bottom: 24px; max-width: 70ch; }

/* =====================================================================
   КОНТАКТЫ / ФОРМА
   ===================================================================== */
.contacts { background: var(--yellow); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contacts__info p { color: var(--grey-900); margin-top: 16px; }
.contacts__address { font-style: normal; display: grid; gap: 8px; margin-top: 32px; font-weight: 500; }
.contacts__address a { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.contacts__address a:hover { text-decoration: underline; }

.form { background: var(--white); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); box-shadow: 0 40px 80px -50px rgba(38,40,43,.6); }
.form__field { display: grid; gap: 6px; margin-bottom: 18px; }
.form__field label { font-size: 14px; font-weight: 700; color: var(--grey-700); }
.form__field input, .form__field textarea {
  font: inherit; padding: 12px 14px; border: 2px solid var(--grey-200); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s;
}
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--yellow-deep); }
.form__field input.is-invalid { border-color: #C93B2F; }
.form__submit { width: 100%; }
.form__note { font-size: 13px; color: var(--grey-400); margin-top: 14px; }
.form__note a { text-decoration: underline; }
.form__status { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.form__status.is-ok { color: #2E7D32; }
.form__status.is-err { color: #C93B2F; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--grey-900); color: var(--grey-400); padding-top: clamp(48px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--grey-700); }
.footer__brand img { filter: brightness(0) invert(1); }
.footer__brand p { margin-top: 20px; max-width: 34ch; font-size: 15px; }
.footer h4 { color: var(--white); margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { padding-block: 24px; font-size: 13px; }

/* =====================================================================
   АНИМАЦИЯ ПРИ СКРОЛЛЕ (одна, сдержанная — управляется JS)
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: .24s; }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1024px) {
  .hero__grid, .about__grid, .advantages__grid, .contacts__grid { grid-template-columns: 1fr; }
  .hero__stripe { background: linear-gradient(112deg, transparent 0 72%, var(--yellow) 72% 100%); }
  .hero__media { max-width: 520px; }
  .about__head { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .advantages__media { order: 2; max-width: 520px; }
}
@media (max-width: 768px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--grey-200);
         transform: translateY(-110%); transition: transform .35s var(--ease); margin: 0; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px; }
  .nav__list a { display: block; padding: 14px 0; font-size: 17px; }
  .nav__list a::after { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .services__list, .advantages__list, .steps { grid-template-columns: 1fr; }
  .hero__facts { flex-wrap: wrap; gap: 20px 32px; }
  .hero__media figcaption { left: 12px; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-line, [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hero__stripe { transform: none; }
  .hero__media img { clip-path: none; }
}
