/* ═══════════════ Союз Проект Всего — фирменные стили ═══════════════
   Палитра: киноварная печать (#A8382C) на тёплой бумаге (#FAF8F5).
   Типографика: Prata (акцидентный сериф, заголовки) + Manrope (текст). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/prata-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/prata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  --red: #A8382C;          /* киноварь фирменной печати */
  --red-dark: #8A2C22;
  --red-soft: #F6E9E7;
  --red-grad: linear-gradient(180deg, #B5473B 0%, #9C3126 100%);
  --red-grad-hover: linear-gradient(180deg, #A83C30 0%, #8A2A20 100%);
  --num-grad: linear-gradient(180deg, #E2857A 0%, #B4463A 100%);
  --ink: #211D1B;
  --ink-soft: #55504C;
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --line: #E9E2DA;
  --dark: #262220;
  --dark-2: #2E2926;
  --on-dark: rgba(255, 255, 255, .68);
  --line-dark: rgba(255, 255, 255, .1);
  --radius: 16px;
  --shadow: 0 1px 3px rgba(33, 29, 27, .06), 0 10px 34px rgba(33, 29, 27, .09);
  --container: 1180px;
  --display: 'Prata', 'Times New Roman', serif;
  --body: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.22; letter-spacing: 0; text-wrap: balance; }
h3 { font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }

/* ── Появление при прокрутке ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .08s; }
.reveal:nth-child(5) { transition-delay: .16s; }
.reveal:nth-child(6) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__emblem img { animation: none !important; }
  * { transition-duration: .01s !important; animation-duration: .01s !important; }
}

/* ── Шапка ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 8px 28px rgba(33, 29, 27, .08); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.header__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.header__logo { border-radius: 50%; transition: transform .5s ease; }
.header__brand:hover .header__logo { transform: rotate(12deg); }
.header__name { font-family: var(--display); font-weight: 400; font-size: 17px; white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  transition: color .15s;
  position: relative; padding-bottom: 4px;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red);
  transition: right .25s ease;
}
.nav a:hover, .nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.header__phone { font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--red); }
.burger { display: none; }

/* ── Кнопки ── */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 6px;
  font: inherit; font-weight: 700; font-size: 16px;
  letter-spacing: .01em;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--red-grad); color: #fff;
  box-shadow: 0 1px 2px rgba(138, 44, 34, .4), 0 8px 24px rgba(168, 56, 44, .32);
}
.btn--primary::after {           /* блик при наведении */
  content: '';
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn--primary:hover { background: var(--red-grad-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(138, 44, 34, .45), 0 12px 30px rgba(168, 56, 44, .42); }
.btn--primary:hover::after { left: 130%; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ── Hero ── */
.hero { padding: 76px 0 88px; overflow: hidden; position: relative; }
.hero::before {                  /* тёплое свечение за печатью */
  content: '';
  position: absolute; top: -20%; right: -12%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(168, 56, 44, .09) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; position: relative; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}
.hero__kicker::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--red);
}
.hero h1 { font-size: clamp(32px, 4.3vw, 52px); margin-bottom: 22px; }
.hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero__facts { display: flex; gap: 40px; list-style: none; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong {
  font-family: var(--display); font-size: 28px; font-weight: 400;
  background: linear-gradient(180deg, #C05A4D 0%, #8A2C22 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__facts span { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.hero__emblem { display: flex; justify-content: center; }
.emblem {
  position: relative;
  border-radius: 50%;
  width: min(380px, 100%);
  aspect-ratio: 1;
}
.emblem::before {                 /* пунктирное кольцо-оттиск по границе */
  content: '';
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 2px dashed transparent;
  transition: border-color .25s ease;
  pointer-events: none;
}
.emblem:hover::before {
  border-color: rgba(168, 56, 44, .5);
  animation: ring-spin 26s linear infinite;
}
.emblem img {
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 48px rgba(168, 56, 44, .18));
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* ── Секции ── */
.section { padding: 92px 0; }
.section--tinted { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(27px, 3.2vw, 38px); margin-bottom: 16px; }
.section__title::after {          /* киноварная черта — росчерк печати */
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: var(--red);
  border-radius: 3px;
  margin-top: 18px;
}
.section__lead { font-size: 18px; color: var(--ink-soft); max-width: 700px; margin: 22px 0 48px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Карточки преимуществ ── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(33,29,27,.06), 0 24px 48px rgba(33,29,27,.11); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
  border-radius: 14px;
  margin-bottom: 20px;
  transition: background .25s, color .25s, transform .25s;
}
.card:hover .card__icon { background: var(--red); color: #fff; transform: scale(1.06); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

/* ── Услуги ── */
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: border-color .2s, background .2s, transform .2s;
}
.service::before {
  content: '';
  position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 3px;
  background: var(--red);
  opacity: 0; transition: opacity .2s;
}
.service:hover { border-color: rgba(168, 56, 44, .35); background: var(--white); transform: translateY(-2px); }
.service:hover::before { opacity: 1; }
.service h3 { font-size: 16.5px; margin-bottom: 8px; }
.service p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Отрасли ── */
.industry {
  border-top: 2px solid var(--line);
  padding: 26px 4px 8px;
  transition: border-color .3s;
}
.industry:hover { border-top-color: var(--red); }
.industry__num { font-family: var(--display); font-size: 15px; color: var(--red); letter-spacing: .05em; }
.industry h3 { font-size: 20px; margin: 10px 0 10px; }
.industry p { font-size: 15.5px; color: var(--ink-soft); }

/* ── Процесс (светлая секция с водяным знаком печати) ── */
.section--dark {
  background: var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.section--dark::before {          /* водяной знак печати */
  content: '';
  position: absolute; right: -140px; bottom: -180px;
  width: 560px; height: 560px;
  background: url('../assets/logo.png') center/contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.section--dark .container { position: relative; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red-grad); color: #fff;
  font-family: var(--display); font-size: 19px;
  box-shadow: 0 4px 14px rgba(168, 56, 44, .35);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ── FAQ ── */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-weight: 700; font-size: 18px;
  cursor: pointer;
  transition: color .15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  font-size: 22px; font-weight: 600;
  transition: transform .25s, background .25s, color .25s;
}
.faq__item[open] summary { color: var(--red); }
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq__body { overflow: hidden; }
.faq__item p { padding: 0 60px 24px 4px; color: var(--ink-soft); font-size: 16px; }

/* ── Форма ── */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: block; margin-bottom: 18px; }
.form__field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.form__field input[type="text"],
.form__field input[type="tel"],
.form__field input[type="email"],
.form__field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit; font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(168, 56, 44, .12);
}
.form__field textarea { resize: vertical; }
.form__field--file input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s;
}
.form__field--file input[type="file"]:hover { border-color: var(--red); }
.form__field--file small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 13px; }
.form__filelist { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.form__filelist .over { color: var(--red); font-weight: 700; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__consent { font-size: 13px; color: var(--ink-soft); margin-top: 16px; text-align: center; }
.form__status { margin-top: 14px; text-align: center; font-weight: 700; font-size: 15.5px; min-height: 24px; }
.form__status.ok { color: #22803B; }
.form__status.err { color: var(--red); }

/* ── Контакты ── */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contacts__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, box-shadow .2s;
}
.contacts__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contacts__label {
  display: block;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.contacts__item p { font-size: 17px; font-weight: 600; }
.contacts__item a { color: var(--ink); }
.contacts__item a:hover { color: var(--red); }

/* ── Подвал ── */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.footer__brand img { border-radius: 50%; }
.footer__link { color: rgba(255, 255, 255, .7); font-size: 14px; margin-left: auto; }
.footer__link:hover { color: #fff; }
.footer__top { color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 700; }
.footer__top:hover { color: #fff; }

/* ── Страница политики ── */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-weight: 700; }

/* ═══ Адаптив ═══ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__emblem { order: -1; }
  .emblem { width: 170px; }
  .hero { padding: 36px 0 64px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .header__phone { display: none; }

  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(33, 29, 27, .12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 24px; border-top: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
    margin-left: auto;
    background: none; border: none; cursor: pointer;
    padding: 10px;
  }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .form { padding: 24px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__facts { gap: 24px; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .faq__item p { padding-right: 4px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__link { margin-left: 0; }
  .section--dark::before { width: 380px; height: 380px; right: -120px; bottom: -120px; }
}
