/* ООО «Компания Система» — оформление 2026.
   Структура старого сайта (шапка, слайдер, вкладки направлений, блок о компании, подвал) сохранена,
   оформление обновлено: шрифт Manrope, карточки, иконки, адаптив. */

:root {
    --ink: #0f2a43;
    --text: #33475b;
    --muted: #6b7f93;
    --blue-900: #0d3a66;
    --blue-700: #1b5fa6;
    --blue-500: #2f80d0;
    --blue-100: #e6f0f8;
    --blue-50: #f3f8fc;
    --line: #dde6ee;
    --orange: #ff8a00;
    --orange-2: #ffab1f;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15,42,67,.06), 0 8px 24px rgba(15,42,67,.08);
    --shadow-lg: 0 2px 4px rgba(15,42,67,.06), 0 18px 40px rgba(15,42,67,.14);
    --page-w: 1140px;
    --gutter: 24px;
    --font: Manrope, "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
p, ul, ol, table { margin: 0 0 1em; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(58,134,200,.45); outline-offset: 2px; border-radius: 6px; }
.icon { width: 22px; height: 22px; flex: none; }

.layout, .header__in, .footer__in, .footer__bottom { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- кнопки ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
    font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .15s; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 6px 16px rgba(255,138,0,.35); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,138,0,.42); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: wait; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- шапка ---------- */

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15,42,67,.06); }
.header__in { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: block; text-decoration: none; flex: none; }
.logo img { display: block; width: 190px; }
.logo small { display: block; margin-top: 3px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

.search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.search input {
    width: 100%; height: 42px; padding: 0 44px 0 18px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--blue-50);
    outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: #9aabbb; }
.search input:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(58,134,200,.12); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: #8aa0b4; cursor: pointer; display: grid; place-items: center; }
.search button .icon { width: 19px; height: 19px; }
.search button:hover, .search input:focus + button { color: var(--blue-700); }

.header__contacts { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.phone { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.phone__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); }
.phone__icon .icon { width: 18px; height: 18px; }
.phone__num { font-size: 21px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.phone__num small { font-size: 14px; color: var(--muted); font-weight: 700; }
.phone:hover { color: var(--blue-700); }
.contact-link { font-size: 12.5px; color: var(--muted); }
.header__cta { flex: none; }

/* ---------- слайдер ---------- */

.slider { position: relative; overflow: hidden; border-radius: 22px; background: var(--blue-100); isolation: isolate; }
.slides { display: grid; }
.slide {
    grid-area: 1 / 1; position: relative; overflow: hidden;
    transform: translateX(calc(var(--offset, 0) * 100%));
    transition: transform .6s cubic-bezier(.4,0,.2,1), visibility 0s linear .6s;
    visibility: hidden;
}
.slide.is-active { visibility: visible; transition: transform .6s cubic-bezier(.4,0,.2,1), visibility 0s; }
.slider.is-moving .slide { visibility: visible; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide__bg, .slide__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide.is-active .slide__bg { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide__video { opacity: 0; transition: opacity .8s ease; }
.slide__video.is-ready { opacity: 1; }
/* светлая вуаль слева — текст читается на любой картинке */
.slide::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse 85% 80% at 0% 0%, rgba(30,86,146,.7) 0%, rgba(30,86,146,.45) 40%, rgba(30,86,146,0) 76%),
        linear-gradient(90deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.26) 38%, rgba(255,255,255,0) 60%);
}
.slide__panel { display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; }
.slide__panel > * { flex-shrink: 0; }
.slider--middle .slide__panel { max-width: 760px; }
.slider--middle .slide__content { justify-content: center; }
.slide--links::before { background: linear-gradient(90deg, rgba(9,38,66,.78) 0%, rgba(9,38,66,.5) 55%, rgba(9,38,66,.15) 100%); }

.slider--full .slide { min-height: 460px; }
.slider--middle .slide { height: 200px; }
.slider--middle .slide::before { background: linear-gradient(90deg, rgba(9,38,66,.78) 0%, rgba(9,38,66,.45) 50%, rgba(9,38,66,.05) 85%); }

.slide__content { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 40px 90px 60px 112px; }
.slider--middle .slide__content { padding: 0 48px; }
.slide__kicker { display: none; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700; }
.slide__kicker .icon { width: 18px; height: 18px; }
.slide__title { max-width: 520px; font-size: 34px; line-height: 1.15; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,30,60,.45), 0 0 18px rgba(0,30,60,.25); letter-spacing: -.02em; margin-bottom: 14px; }
.slider--middle .slide__title { font-size: 30px; margin: 0; }
.slide__big { font-size: 19px; line-height: 1.4; font-weight: 700; color: var(--blue-900); text-shadow: 0 0 14px rgba(255,255,255,.7); margin-bottom: 10px; }
.slide__text { max-width: 470px; font-size: 15.5px; line-height: 1.6; color: #1c2e40; text-shadow: 0 0 12px rgba(255,255,255,.85); }
.sbutton { margin-top: 22px; }

.slide--links::before { background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(8,32,58,.45) 0%, rgba(8,32,58,0) 70%); }
.slide--links .slide__panel { max-width: 720px; }
.slide__links { margin: 6px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 36px; }
.slide__links li { break-inside: avoid; margin-bottom: 10px; }
.slide__links a { display: inline-flex; gap: 10px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1.4; }
.slide__links a::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--orange-2); }
.slide__links a:hover { text-decoration: underline; }

.slider__nav {
    position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--blue-900); box-shadow: none; cursor: pointer;
    transition: background .15s, transform .15s;
}
.slider__nav:hover { background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px rgba(203,220,230,.9); }
.slider__nav .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.slide--links.is-active ~ .slider__nav, .slider:has(.slide--links.is-active) .slider__nav { color: #fff; }
.slider__nav--prev { left: 26px; }
.slider__nav--next { right: 26px; }
.slider--middle .slider__nav { display: none; }

.slider__dots { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 20px; display: flex; gap: 8px; }
.slider__dots button { width: 34px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.slider__dots span { display: block; height: 3px; border-radius: 2px; background: rgba(13,58,102,.18); overflow: hidden; position: relative; }
.slider__dots .is-active span { background: rgba(13,58,102,.25); }
.slider__dots .is-active span::after { content: ""; position: absolute; inset: 0; background: var(--blue-700); transform-origin: left; animation: dot var(--autoplay, 7s) linear both; }
.slider.is-paused .slider__dots .is-active span::after { animation-play-state: paused; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- вкладки направлений ---------- */

.menu-top { position: relative; z-index: 6; margin: 14px 0 0; }
.menu-top ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.menu-top a {
    display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 14px;
    border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700; line-height: 1.3;
    transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.menu-top a .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); transition: background .2s, color .2s; }
.menu-top a:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #fff; color: var(--ink); }
.menu-top li.is-active a { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); border-color: transparent; color: #fff; }
.menu-top li.is-active a .icon { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- секции главной ---------- */

.main { padding: 0; }
.section { margin: 72px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section__title { font-size: 30px; margin: 0; }
.section__title a { color: inherit; text-decoration: none; }
.section__lead { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card a {
    display: flex; flex-direction: column; height: 100%; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--blue-100); color: var(--blue-700); transition: background .2s, color .2s; }
.card__icon .icon { width: 26px; height: 26px; }
.card a:hover .card__icon { background: var(--blue-700); color: #fff; }
.card__title { font-size: 17px; margin-bottom: 8px; }
.card__text { flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue-700); }
.card__more .icon { width: 16px; height: 16px; transition: transform .15s; }
.card a:hover .card__more .icon { transform: translateX(3px); }
.card--cta a { background: linear-gradient(145deg, var(--blue-900), var(--blue-700)); border: 0; color: #cfe0ef; justify-content: space-between; }
.card--cta a:hover { color: #cfe0ef; }
.card--cta .card__title { color: #fff; font-size: 19px; }
.card--cta .card__text { color: #cfe0ef; }
.card--cta .btn { align-self: flex-start; }

.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 22px; background: var(--blue-50); }
.about__text p { margin: 16px 0 20px; font-size: 16.5px; }
.stats { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.stats li { display: flex; flex-direction: column; padding: 18px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.stats b { font-size: 24px; font-weight: 800; color: var(--blue-700); line-height: 1.2; }
.stats span { font-size: 14px; color: var(--muted); }

.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; list-style: none; margin: 20px 0 0; padding: 0; }
.solutions h3 { font-size: 17px; }

.events-and-discounts .event { margin-bottom: 16px; }
.events-and-discounts small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.events-and-discounts .event a { color: var(--text); text-decoration: none; }
.events-and-discounts .event strong { color: var(--blue-700); }

/* ---------- внутренние страницы ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 70px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.view { display: grid; grid-template-columns: 280px 1fr; gap: 48px; margin: 24px 0 64px; align-items: start; }
.view--single { grid-template-columns: 1fr; }
.view--wide { grid-template-columns: 1fr; max-width: 780px; margin: 70px auto 64px; }
.view__menu { position: sticky; top: 104px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.view__up { display: flex; align-items: center; gap: 6px; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.view__up .icon { width: 16px; height: 16px; }
.view__up:hover { color: var(--blue-700); }
.view-pages-menu { list-style: none; margin: 0; padding: 0; }
.view-pages-menu a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.35; transition: background .15s, color .15s;
}
.view-pages-menu a:hover { background: var(--blue-50); color: var(--blue-700); }
.view-pages-menu a.selected { background: var(--blue-100); color: var(--blue-900); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue-700); }
.view-pages-menu .icon { width: 20px; height: 20px; color: var(--blue-700); }
.view-pages-header a { font-weight: 800; color: var(--ink); }
.view-pages-sub { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.view-pages-sub a { font-weight: 700; }

.view-page-content { min-width: 0; max-width: 760px; font-size: 16.5px; line-height: 1.7; overflow-wrap: break-word; }
.view-page-content h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 24px; }
.view-page-content h2 { font-size: 23px; margin-top: 1.6em; }
.view-page-content h3 { font-size: 18.5px; margin-top: 1.4em; }
.view-page-content h4 { font-size: 16.5px; }
.view-page-content ul, .view-page-content ol { padding-left: 1.3em; }
.view-page-content li { margin-bottom: .4em; padding-left: .2em; }
.view-page-content ul li::marker { color: var(--orange); }
.view-page-content ol li::marker { color: var(--blue-700); font-weight: 800; }
.view-page-content strong { color: var(--ink); }
.view-page-content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; font-size: 15px; }
.view-page-content td, .view-page-content th { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.view-page-content img { height: auto !important; border-radius: var(--radius-sm); }
/* старые тексты выровнены по ширине — в узкой колонке это даёт дыры */
.view-page-content [style*="justify"], .view-page-content p { text-align: left !important; }
.video-embed { display: block; position: relative; max-width: 720px; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

.view-events > ul { list-style: none; padding: 0; }
.view-events > ul > li { margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.view-events > ul > li::marker { content: none; }
.view-events > ul > li > h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.view-events > ul > li > h4 a { color: var(--muted); text-decoration: none; }

.search--page { max-width: none; margin: 0 0 28px; }
.found { color: var(--muted); font-size: 14px; }
.search-result { list-style: none; padding: 0; display: grid; gap: 12px; }
.search-result li { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.search-result li::marker { content: none; }
.search-result h4 { font-size: 17px; margin-bottom: 4px; }
.search-result b { background: #fff1c9; font-weight: inherit; border-radius: 3px; }
.search-result div { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- форма заявки ---------- */

.mailform {
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; margin: 72px 0;
    padding: 48px; border-radius: 22px; color: #d6e5f2;
    background: radial-gradient(120% 140% at 0% 0%, #2a74b3 0%, var(--blue-900) 60%);
}
.mailform__title { color: #fff; font-size: 30px; margin-bottom: 10px; }
.mailform__intro > p { font-size: 17px; }
.mailform__contacts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.mailform__contacts li { display: flex; align-items: center; gap: 12px; }
.mailform__contacts .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.mailform__contacts a { color: #fff; font-weight: 700; text-decoration: none; }
.mailform__contacts a:hover { text-decoration: underline; }
.mailform form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 28px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field i { font-style: normal; font-weight: 500; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--blue-50); font-size: 15.5px; font-weight: 500; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(58,134,200,.12); }
.field textarea::placeholder { color: #9aabbb; }
.field input.is-invalid { border-color: #e0584f; background: #fff6f5; }
.mailform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mailform__bottom { grid-column: 1 / -1; }
.mailform__bottom .btn { width: 100%; }
.mailform__status { min-height: 1.4em; margin: 10px 0 4px; font-weight: 700; color: #1b8a4b; font-size: 15px; }
.mailform__status.is-error { color: #c0392b; }
.mailform__note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- подвал ---------- */

.footer { background: var(--ink); color: #9fb3c6; font-size: 14.5px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #c9d7e4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { font-size: 20px; font-weight: 800; color: #fff !important; }
.footer__brand p { margin-top: 12px; max-width: 300px; line-height: 1.6; }
.footer__phone { display: block; font-size: 22px; font-weight: 800; color: #fff !important; margin-bottom: 12px; }
.footer__contacts p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.footer__contacts .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--orange-2); }
.footer__bottom { padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #7f95aa; }

/* ---------- планшеты ---------- */

@media (max-width: 1100px) {
    .header__in { gap: 18px; }
    .search { max-width: 240px; }
    .menu-top ul { grid-template-columns: repeat(3, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --gutter: 20px; }
    .header__in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
    .header__cta { display: none; }
    .search { order: 5; flex-basis: 100%; max-width: none; }
    .header__contacts { margin-left: auto; }
    .header { position: static; }
    .slide__content { padding: 34px 70px 50px 76px; }
    .slider--middle .slide__content { padding: 0 40px; }
    .slider__dots { bottom: 14px; }
    .slide__title { font-size: 32px; }
    .about, .mailform { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
    .view { grid-template-columns: 1fr; gap: 24px; }
    .view__menu { position: static; order: 2; }
}

/* ---------- телефоны ---------- */

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 15.5px; }
    .logo img { width: 150px; }
    .logo small { font-size: 11px; }
    .contact-link { display: none; }
    .phone__num { font-size: 17px; }
    .phone__num small { font-size: 12px; }
    .phone__icon { width: 34px; height: 34px; }

    .layout { padding: 0; }
    .slider { border-radius: 0; }
    /* картинка сверху, текст под ней */
    .slider--full .slide { height: auto; background: #fff; }
    .slider--full .slide::before { display: none; }
    .slider--full .slide__panel { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: none; }
    .slider--full .slide__title { color: var(--blue-900); text-shadow: none; }
    .slider--full .slide__big { color: var(--blue-700); }
    .slider--full .slide__text { color: var(--text); }
    .slider--full .slide--links .slide__title, .slider--full .slide--links .slide__text { color: #fff; }
    .slider__dots span { background: rgba(13,58,102,.2); }
    .slider__dots .is-active span { background: rgba(13,58,102,.3); }
    .slider__dots .is-active span::after { background: var(--blue-700); }
    .slider:has(.slide--links.is-active) .slider__dots span { background: rgba(255,255,255,.3); }
    .slider:has(.slide--links.is-active) .slider__dots .is-active span::after { background: #fff; }
    .slider--full .slide__bg, .slider--full .slide__video { position: relative; height: auto; aspect-ratio: 16 / 9; object-position: 72% center; }
    .slider--full .slide__video { position: absolute; top: 0; }
    .slider--full .slide__content { justify-content: flex-start; padding: 20px var(--gutter) 60px; max-width: none; }
    .slider--full .slide--links { background: var(--blue-900); }
    .slide__kicker { display: none; }
    .slide__title { font-size: 25px; }
    .slide__title br { display: none; }
    .slide__big { font-size: 16.5px; }
    .slide__text { font-size: 15px; }
    .sbutton { margin-top: 20px; }
    .slide__links { columns: 1; }
    .slide__links a { font-size: 15px; }
    .slider__nav { top: calc(100vw * 9 / 32); width: 40px; height: 40px; }
    .slider__nav--prev { left: 10px; }
    .slider__nav--next { right: 10px; }
    .slider__dots { left: var(--gutter); transform: none; bottom: 22px; }
    .slider--middle .slide { height: 120px; }
    .slider--middle .slide__content { padding: 0 var(--gutter); }
    .slider--middle .slide__title { font-size: 21px; }
    .slider--middle .slide__title br { display: none; }

    .menu-top { margin: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 12px var(--gutter) 6px; }
    .menu-top::-webkit-scrollbar { display: none; }
    .menu-top ul { display: flex; gap: 8px; }
    .menu-top li { flex: none; scroll-snap-align: start; }
    .menu-top a { height: 48px; padding: 0 14px 0 8px; white-space: nowrap; font-size: 14px; }
    .menu-top a br { display: none; }
    .menu-top a .icon { width: 30px; height: 30px; padding: 6px; }

    .main { padding: 0 var(--gutter); }
    .section { margin: 44px 0; }
    .section__head { display: block; margin-bottom: 18px; }
    .section__title { font-size: 24px; }
    .cards { grid-template-columns: 1fr; gap: 12px; }
    .card a { padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
    .card__icon { grid-row: span 3; margin: 0; width: 46px; height: 46px; }
    .card__text { margin-bottom: 8px; }
    .card--cta a { display: flex; }
    .about { padding: 24px 18px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; }
    .solutions { grid-template-columns: 1fr; }

    .crumbs { margin-top: 20px; font-size: 13px; }
    .view { margin-bottom: 40px; }
    .view-page-content { font-size: 16px; }
    .view-page-content h1 { font-size: 26px; }
    .view-page-content h2 { font-size: 20px; }

    .mailform { margin: 44px calc(-1 * var(--gutter)); padding: 32px var(--gutter); border-radius: 0; }
    .mailform__title { font-size: 24px; }
    .mailform form { grid-template-columns: 1fr; padding: 20px; }
    .field input, .field textarea { font-size: 16px; }

    .footer__in { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slide, .slide.is-active, .slider.is-moving .slide { transition: none; }
    .slide.is-active .slide__bg, .slider__dots .is-active span::after { animation: none; }
}




/* Отражаем только фото первого слайда; текст и анимация остаются прежними. */
.slide[data-index="0"] .slide__bg { scale: -1 1; }
@media (max-width: 640px) {
    .slider--full .slide[data-index="0"] .slide__bg { object-position: 28% center; }
}

/* Единый голубой градиент всех слайдов главной страницы. */
.slider--full .slide::before {
    background:
        radial-gradient(ellipse 85% 80% at 0 0, rgba(30,86,146,.70) 0%, rgba(30,86,146,.30) 40%, rgba(30,86,146,0) 76%),
        radial-gradient(ellipse 810px 470px at 0 0,
            rgba(194,219,240,.96) 0%,
            rgba(194,219,240,.94) 65%,
            rgba(194,219,240,.88) 86%,
            rgba(194,219,240,.72) 94%,
            rgba(194,219,240,0) 100%);
}

/* Единые цвета текста и ссылок на всех слайдах. */
.slider--full .slide .slide__links a { color: var(--blue-900); }
.slider--full:has(.slide--links.is-active) .slider__nav { color: var(--blue-900); }
@media (min-width: 641px) {
    .slider--full .slide .slide__title { color: #fff; }
    .slider--full .slide .slide__big { color: var(--blue-900); }
    .slider--full .slide .slide__text { color: #1c2e40; }
}
@media (max-width: 640px) {
    .slider--full .slide--links { background: #fff; }
    .slider--full .slide--links .slide__title { color: var(--blue-900); }
    .slider--full .slide--links .slide__text { color: var(--text); }
    .slider--full:has(.slide--links.is-active) .slider__dots span { background: rgba(13,58,102,.2); }
    .slider--full:has(.slide--links.is-active) .slider__dots .is-active span::after { background: var(--blue-700); }
}
