/* Страницы услуг ffa2.ru. Главная осталась в разметке Tilda; эти — своя лёгкая вёрстка в том же
   стиле: шрифт Stolzl, чёрный текст, красный акцент заголовков, голубые кнопки. */

@font-face { font-family: 'Stolzl'; src: url('/assets/static.tildacdn.com/tild3738-3936-4539-b832-653766383234/Stolzl-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Stolzl'; src: url('/assets/static.tildacdn.com/tild6137-6132-4536-a562-666666303765/Stolzl-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Stolzl'; src: url('/assets/static.tildacdn.com/tild6166-6433-4463-b132-643236633461/Stolzl-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --ink: #141414;
  --ink-2: #4a4a4a;
  --line: #e4e4e4;
  --soft: #f4f6f9;
  --red: #d10f30;
  --blue: #1670db;
  --blue-hover: #0f5fbf;
  --blue-light: #62a7f9;
  --radius: 20px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.55 'Stolzl', Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------------------------------------------------------------- шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav > a, .nav summary { color: var(--ink); text-decoration: none; font-size: 15px; cursor: pointer; }
.nav > a:hover, .nav summary:hover { color: var(--blue); }
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.nav-services { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .1); }
.nav-services a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-services a:hover, .nav-services a[aria-current] { background: var(--soft); color: var(--blue); }
.top-phone { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .top .wrap { gap: 12px; }
  .top-phone { margin-left: auto; font-size: 15px; }
  .top .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ''; }
  .menu-toggle span::before { position: absolute; top: -6px; }
  .menu-toggle span::after { position: absolute; top: 6px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-services { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
}

/* ---------------------------------------------------------------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 500 16px/1 'Stolzl', Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s ease-out; white-space: nowrap; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------------------------------------------------------------- первый экран */
.crumbs { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #9a9a9a; }
.crumbs a { color: var(--ink-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 28px 0 56px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { margin: 0 0 26px; font-size: 19px; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.hero-art { justify-self: center; max-width: 420px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 40px; }
  .hero-art { max-width: 280px; order: -1; }
}

/* ---------------------------------------------------------------- факты */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 64px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 0 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: 28px; line-height: 1.15; }
.facts span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------------------------------------------------------------- разделы */
.section { margin: 0 0 72px; }
.section h2 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 700; text-wrap: balance; }
.section h2 em { font-style: normal; color: var(--red); }
.section > p { max-width: 72ch; margin: 0 0 14px; }
.section h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 500; }

/* Что входит — списком в две колонки: короткие пункты вместо абзацев (меньше текста — совет SEO). */
.checks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 48px; }
@media (max-width: 760px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-light); }
.checks li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Преимущества — строки с разделителями, а не сетка одинаковых карточек. */
.pros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.pros li { padding: 18px 0; border-top: 1px solid var(--line); }
.pros p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .pros { grid-template-columns: minmax(0, 1fr); } }

/* Этапы — настоящая последовательность, поэтому с номерами. */
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Стоимость — синяя плашка, как блоки на главной. */
.price { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 40px; align-items: center; padding: 36px 40px; border-radius: var(--radius); background: linear-gradient(135deg, #2f93ff 0%, #0b63d6 100%); color: #fff; }
.price h2 { color: #fff; margin-bottom: 12px; }
.price p { margin: 0 0 10px; max-width: 64ch; color: #fff; }
.price ul { margin: 0; padding-left: 20px; }
.price .btn { background: #fff; color: var(--ink); }
.price .btn:hover { background: #eaf3ff; color: var(--ink); }
@media (max-width: 760px) { .price { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; } }

/* Отзывы — скриншоты переписки с клиентами. */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reviews img { width: 100%; }
@media (max-width: 760px) { .reviews { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* Частые вопросы */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 500; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; max-width: 72ch; color: var(--ink-2); }

/* Другие услуги — список ссылок. */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.related a { display: block; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--blue); }
.related a span { display: block; font-weight: 400; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* Каталог услуг */
.catalog { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.catalog li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.catalog li:last-child { border-bottom: 1px solid var(--line); }
.catalog h3 { margin: 0 0 6px; }
.catalog h3 a { color: var(--ink); text-decoration: none; }
.catalog h3 a:hover { color: var(--blue); }
.catalog p { margin: 0; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 640px) { .catalog li { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- заявка */
.lead-form { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: 40px; border-radius: var(--radius); background: var(--soft); }
.lead-form h2 { margin-bottom: 12px; }
.lead-form form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.lead-form input, .lead-form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid #8a8a8a; border-radius: 12px; background: #fff; font: 400 17px/1.4 'Stolzl', Arial, sans-serif; color: var(--ink); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6b6b6b; }
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form .consent { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.lead-form .status { margin: 0; font-size: 15px; }
.lead-form .status.ok { color: #13723c; font-weight: 500; }
.lead-form .status.error { color: var(--red); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-contacts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
@media (max-width: 860px) { .lead-form { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; gap: 20px; } }

/* ---------------------------------------------------------------- подвал */
.foot { margin-top: 80px; padding: 40px 0 28px; background: #171717; color: #d6d6d6; font-size: 15px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot-title { margin: 0 0 12px; font-size: 16px; font-weight: 500; color: #fff; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #333; font-size: 14px; color: #a9a9a9; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.missing { padding: 80px 0 40px; }
.missing h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 14px; }

/* Узкий экран: номер уходит из шапки — он есть кнопкой на первом экране и в форме, а рядом с
   названием ему не хватает места. */
@media (max-width: 560px) {
  .top-phone { display: none; }
  .menu-toggle { margin-left: auto; }
}
