/* Блоки страниц: первый экран, секции, карточки, цифры, вкладки, этапы, вопросы, контакты, текст. */

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
              linear-gradient(180deg, var(--hero-from), var(--hero-to));
  border-bottom: 1px solid var(--border);
}
.hero__in { position: relative; z-index: 2; padding: clamp(48px, 9vw, 110px) 20px clamp(48px, 8vw, 96px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 10px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  color: var(--text); font: 600 15px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
}
.hero__badge .ico { color: var(--accent); width: 18px; height: 18px; }
.hero__title { font-size: clamp(40px, 7.2vw, 92px); font-weight: 700; text-transform: uppercase; line-height: 1.02; max-width: 15ch; margin-bottom: 24px; }
.hero__title .accent { display: block; font-size: .62em; margin-top: .15em; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; }
.hero__amount { margin: 28px 0 0; }
.hero__amount strong { display: block; font: 700 clamp(40px, 6.4vw, 76px)/1 var(--font-head); color: var(--accent); letter-spacing: .01em; }
.hero__amount span { display: block; color: var(--muted); font-size: .95rem; margin-top: 8px; }
.hero__note { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.hero__img { position: absolute; inset: 0 0 0 auto; width: min(60%, 820px); height: 100%; object-fit: cover; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero__art { position: absolute; right: -6%; top: 50%; transform: translateY(-50%) rotate(-12deg); width: min(56vw, 640px); z-index: 0; color: var(--brand); opacity: .14; }
.hero__art .ico { width: 100%; height: auto; }

/* ---------- Заголовок внутренней страницы ---------- */
.phead { background: linear-gradient(180deg, var(--hero-from), var(--bg)); border-bottom: 1px solid var(--border); padding: 36px 0 44px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.phead__title { font-size: clamp(32px, 5.4vw, 60px); text-transform: uppercase; font-weight: 700; max-width: 22ch; }
.phead__lead { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); max-width: 60ch; margin: 0; }

/* ---------- Секции ---------- */
.sec { padding: clamp(48px, 7vw, 88px) 0; }
.sec--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec__title { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; font-weight: 700; max-width: 26ch; }
.sec__lead { color: var(--muted); font-size: 1.05rem; max-width: 64ch; margin-bottom: 32px; }
.sec__note { color: var(--muted); font-size: .92rem; margin: 24px 0 0; }

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

/* ---------- Карточки ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.card--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface)); }
.card__num { font: 700 34px/1 var(--font-head); color: var(--accent); margin-bottom: 14px; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--accent); margin-bottom: 16px; }
.card__icon .ico { width: 24px; height: 24px; }
.card__label { font: 500 12px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card__title { font-size: 21px; display: flex; align-items: center; gap: 8px; }
.card__title .ico { color: var(--accent); }
.card__value { margin: 4px 0 14px; color: var(--muted); }
.card__value strong { font: 700 34px/1 var(--font-head); color: var(--accent); }
.card__text { color: var(--muted); margin-bottom: 12px; }
.card__link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card__link .ico { transition: transform .2s; }
.card__link:hover .ico, .card:hover .card__link .ico { transform: translateX(3px); }
.cards--price .card__title { font-size: 22px; }

.list { margin: 0 0 12px; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.list--check li::before { width: 14px; height: 8px; left: 2px; top: .45em; border-radius: 0; background: none; border: solid var(--ok); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.list--num { counter-reset: n; }
.list--num li { counter-increment: n; padding-left: 36px; }
.list--num li::before { content: counter(n); width: 24px; height: 24px; left: 0; top: .1em; border-radius: 50%; background: var(--btn-bg); color: #fff; font: 600 13px/24px var(--font-head); text-align: center; border: 0; transform: none; }

.more { margin: 6px 0 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.more summary { cursor: pointer; font: 600 14px/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " −"; }
.more__body { padding-top: 10px; color: var(--muted); }
.more__body h4 { color: var(--text); font-size: 17px; margin: 14px 0 6px; }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: auto; gap: var(--gap); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.stat--big { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 20%, var(--surface)), var(--surface)); }
.stat__title { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat__value { font: 700 clamp(30px, 4vw, 44px)/1.05 var(--font-head); color: var(--accent); margin: 6px 0 10px; }
.stat--big .stat__value { font-size: clamp(40px, 6vw, 72px); margin: 28px 0; }
.stat__text { color: var(--muted); margin: 0; }
.extra { margin-top: 32px; border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; }
.extra__title { font-size: 20px; }
.extra__text { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.chip strong { color: var(--accent); font-family: var(--font-head); }

/* ---------- Полоса со ссылками ---------- */
.band__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.band__text { color: var(--muted); }
.pills { display: grid; gap: 10px; }
.pill { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--radius-btn); background: var(--surface); border: 1px solid var(--border); color: var(--text); font: 600 15px/1.2 var(--font-head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important; }
.pill:hover { border-color: var(--brand); }
.pill .ico { color: var(--accent); }

/* ---------- Вкладки ---------- */
.tabs__bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.tabs__btn { flex: none; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 600 14px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tabs__btn[aria-selected="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.tabs__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.tabs__panel + .tabs__panel { margin-top: 16px; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.js .tabs__panel[hidden] { display: none; }
.tabs__value { display: flex; align-items: baseline; gap: 12px; }
.tabs__value strong { font: 700 52px/1 var(--font-head); color: var(--accent); }
.tabs__value span { color: var(--muted); }
.no-js .tabs__bar { display: none; }

/* ---------- Этапы ---------- */
.process--aside { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step__num { font: 700 34px/1 var(--font-head); color: var(--accent); }
.step__title { font-size: 21px; }
.step .list { margin: 0; color: var(--muted); }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.aside-card h3 { display: flex; gap: 10px; align-items: center; font-size: 20px; }
.aside-card h3 .ico { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; }
.tag .ico { color: var(--ok); }
.tags--big .tag { padding: 14px 16px; font-size: 1rem; background: var(--surface); }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq__item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; font: 600 18px/1.35 var(--font-head); letter-spacing: .02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font: 600 20px/28px var(--font-body); text-align: center; }
.faq__item[open] summary::after { content: "−"; }
.faq__a { padding: 0 22px 8px; color: var(--muted); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.contacts__phone { font: 700 30px/1.1 var(--font-head); color: var(--text); margin: 6px 0 12px; display: inline-block; }
.place__addr { font: 600 19px/1.3 var(--font-head); margin-bottom: 8px; }
.other { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.other__title { font-size: 22px; }
.other p { color: var(--muted); margin: 0; }
.other__links { display: grid; gap: 10px; }
.other__link { display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--radius-btn); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.other__link span { color: var(--muted); font-size: .9rem; }

/* ---------- Призыв ---------- */
.cta__box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%), var(--surface); border: 1px solid var(--border); }
.cta__title { font-size: clamp(26px, 3.4vw, 38px); text-transform: uppercase; font-weight: 700; }
.cta__text { color: var(--muted); margin: 0; }
.cta__phone { font: 700 clamp(26px, 3vw, 34px)/1 var(--font-head); color: var(--text); }
.cta__actions .btn-row { margin-top: 16px; }

/* ---------- Статьи ---------- */
.article { text-decoration: none !important; color: var(--text); }
.article__date { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }

/* ---------- Текст ---------- */
.prose h3 { font-size: 24px; margin-top: 1.6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose .note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 18px; color: var(--text); }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--brand); color: var(--muted); font-style: italic; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .process--aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .cta__box, .band__in, .other { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat--big { grid-row: auto; }
  .card, .stat, .tabs__panel { padding: 22px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .hero__img { width: 100%; opacity: .28; -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%); mask-image: linear-gradient(180deg, transparent, #000 50%); }
  .hero__art { width: 90vw; right: -30%; opacity: .1; }
  .faq__item summary { font-size: 17px; }
  .tabs__value strong { font-size: 40px; }
}

/* Видео (блок videos): превью с нашего сайта, плеер — только после клика */
.videos { align-items: start; }
.video { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 100%; }
.video__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, filter .3s; }
.video__play:hover img, .video__play:focus-visible img { transform: scale(1.03); filter: brightness(.85); }
.video__btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: var(--btn-bg); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.video__btn svg { width: 30px; height: 30px; fill: currentColor; margin-left: 3px; }
.video__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; }
.video__body { padding: 18px 20px 20px; }
.video__title { font-size: 18px; line-height: 1.35; margin: 0 0 8px; }
.video__src { margin: 0; color: var(--muted); font-size: 14px; }
.video__src a { color: var(--accent); }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
