/* Подключаем современный шрифт Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========== БАЗА ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f5f5f7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== ТОП-БАР ========== */

.topbar {
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    gap: 16px;
}

.topbar__right span + span {
    margin-left: 16px;
}

.topbar a {
    color: #e5e7eb;
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

/* ========== ХЕДЕР ========== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 24px;
}

.header__logo img {
    height: 40px;
}

.header__nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}

.header__nav a {
    position: relative;
    padding-bottom: 3px;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
}

.header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.2s ease;
}

.header__nav a:hover::after {
    width: 100%;
}
.header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.2s ease;
}

.header__nav a:hover::after {
    width: 100%;
}

.header__cta {
    font-size: 14px;
}

/* ========== КНОПКИ ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* Фирменная кнопка заявки — цвет NED (#106080, взят из логотипа) */
.btn--request {
    background: linear-gradient(135deg, #1583b0 0%, #106080 60%, #0c4a63 100%);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    box-shadow: 0 8px 20px rgba(16, 96, 128, 0.35);
}

.btn--request:hover {
    background: linear-gradient(135deg, #1b95c7 0%, #12719a 60%, #0d5573 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 96, 128, 0.45);
}

.btn--request:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(16, 96, 128, 0.35);
}

/* Красная кнопка «Проложить маршрут» */
.btn--route {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.btn--route:hover {
    background: linear-gradient(135deg, #f05252 0%, #e02d2d 60%, #c92222 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.45);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #111827;
}

.btn--outline:hover {
    background: #111827;
    color: #f9fafb;
    box-shadow: none;
}

.btn--ghost {
    background: rgba(15, 23, 42, 0.02);
    color: #111827;
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.06);
    box-shadow: none;
}

.btn--text {
    padding: 0;
    border-radius: 0;
    background: none;
    color: #2563eb;
}

.btn--text:hover {
    background: none;
    color: #1d4ed8;
    box-shadow: none;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 540px;
    color: #f9fafb;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    filter: saturate(1.05);
    z-index: 1;
}
.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.82) 40%,
        rgba(15, 23, 42, 0.45) 70%,
        rgba(15, 23, 42, 0.20) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;      /* по вертикали по центру */
    justify-content: center;  /* по горизонтали по центру */
    min-height: 540px;
}
.hero__text {
    max-width: 560px;
    padding: 28px 32px 30px 32px;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.9); /* тёмная карточка */
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    overflow: hidden; /* чтобы текст и кнопки не вылезали за рамку */
}

.hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    margin: 0 0 16px;
    color: #f9fafb;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 18px;
    color: #e5e7eb;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.hero__bullets {
    margin: 0 0 20px;
    padding-left: 1.2rem;
}

.hero__bullets li {
    color: #e5e7eb;
    margin-bottom: 6px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

/* кнопки в герое */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__actions .btn {
    font-size: 14px;
}

/* вторая кнопка – "Перейти в каталог" */
.hero__actions .btn.btn--ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #e5e7eb;
    box-shadow: none;
}

.hero__actions .btn.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
}

/* адаптация */
@media (max-width: 768px) {
    .hero {
        min-height: 480px;
    }
    .hero__content {
        min-height: 480px;
        align-items: flex-end;
        padding-bottom: 32px;
    }
    .hero__text {
        padding: 20px 18px 22px;
        border-radius: 22px;
        max-width: 100%;
    }
}

/* ========== ОБЩИЕ СЕКЦИИ ========== */

.section {
    padding: 64px 0;
    background: #f5f5f7;
    animation: fadeInUp 0.7s ease-out forwards;
}

.section--light {
    background: #ffffff;
}

.section--dark {
    background: #020617;
    color: #e5e7eb;
}

.section__title {
    font-size: 26px;
    margin: 0 0 16px;
}

.section__title--inverse {
    color: #f9fafb;
}

.section__subtitle {
    margin: 0 0 32px;
    color: #6b7280;
    max-width: 600px;
    font-size: 14px;
}

/* ========== СЕТКИ ========== */

.grid {
    display: grid;
    gap: 20px;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* ========== КАРТОЧКИ ========== */

.card {
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.section--dark .card {
    background: #020617;
    border-color: rgba(148, 163, 184, 0.2);
}

.card--feature h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 18px;
}

.card--feature p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.card--service h3,
.card--solution h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card--service p,
.card--solution p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6b7280;
}

/* ========== ШАГИ (КАК МЫ РАБОТАЕМ) ========== */

.steps {
    display: grid;
    gap: 16px;
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step__number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.section--light .step__number {
    background: #e5e7eb;
    color: #111827;
}

.step__content h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.step__content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.section__cta {
    margin-top: 20px;
}

/* ========== О КОМПАНИИ / ОФИС ========== */

.about__text p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #4b5563;
}

.office {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.office__image img {
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.office__text h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.office__text p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
}

/* ========== ФОРМА ЗАЯВКИ ========== */

.form {
    max-width: 720px;
    margin: 0 auto;
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.form__field label {
    font-weight: 500;
    color: #374151;
}

.form__field input,
.form__field select,
.form__field textarea {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 9px 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #ffffff;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
    background: #f9fafb;
}

.form__submit {
    margin-top: 8px;
}

.form__note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Скрытое поле-ловушка для спам-ботов */
.form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Сообщение о результате отправки формы */
.form__status {
    display: none;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.form__status--visible {
    display: block;
}

.form__status--error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ========== КАТАЛОГ ========== */

.catalog {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.catalog__sidebar {
    background: #f9fafb;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 14px;
}

.catalog__sidebar h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.catalog__categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog__categories li {
    padding: 6px 0;
}

.catalog__categories button {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    color: #4b5563;
    transition: background 0.15s ease, color 0.15s ease;
}

.catalog__categories button:hover {
    background: rgba(37, 99, 235, 0.06);
}

.catalog__categories button.active {
    background: #2563eb;
    color: #f9fafb;
}

.catalog__content {
    min-height: 120px;
}

.catalog__empty {
    font-size: 14px;
    color: #6b7280;
}

/* карточка товара в каталоге */

.product-card {
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.product-card__name {
    font-weight: 600;
    font-size: 15px;
}

.product-card__availability {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card__availability--in-stock {
    color: #16a34a;
}

.product-card__availability--order {
    color: #ea580c;
}

.product-card__features {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    color: #6b7280;
}

.product-card__features li {
    padding-left: 14px;
    position: relative;
    margin-bottom: 2px;
}

.product-card__features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9ca3af;
}

.product-card__actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========== КОНТАКТЫ + КАРТА ========== */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.contacts__info p {
    font-size: 14px;
    color: #e5e7eb;
}

.contacts__map iframe {
    border-radius: 18px;
    border: none;
}

/* ========== ПОДВАЛ ========== */

.footer {
    background: #020617;
    color: #9ca3af;
    font-size: 12px;
}

.footer__inner {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.footer__by {
    opacity: 0.7;
}

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Класс для использования вручную, если захочешь где-то отдельно */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== АДАПТИВ ========== */

@media (max-width: 900px) {
    .header__nav {
        display: none; /* упрощаем мобильное меню (потом можно сделать бургер) */
    }

    .catalog {
        grid-template-columns: 1fr;
    }

    .contacts {
        grid-template-columns: 1fr;
    }

    .office {
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding-top: 48px;
        padding-bottom: 52px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 24px;
    }

    .section {
        padding: 42px 0;
    }
}


/* ================= КАТАЛОГ КАТЕГОРИЙ НА ГЛАВНОЙ ================= */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.catalog-card__image {
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-card__image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.catalog-card__body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.catalog-card__body p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ================= СТРАНИЦЫ КАТЕГОРИЙ ================= */

.section--category {
    /* чтобы футер не "поднимался", даже если мало контента */
    min-height: calc(100vh - 200px);
}

.category-products {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.category-item__image img {
    width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
}

.category-item__content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.category-item__content p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
}

.category-item__actions {
    margin-top: 4px;
}

/* Карточка без картинки — текст занимает всю ширину */
.category-item--no-image {
    grid-template-columns: 1fr;
}

/* Пометка вместо кнопки, пока PDF-файл не загружен в папку pdf/ */
.category-item__pdf-missing {
    display: inline-block;
    padding: 10px 0;
    font-size: 14px;
    color: #6b7280;
}

.category-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.category-item__name-link {
    color: inherit;
    text-decoration: none;
}

.category-item__name-link:hover {
    color: #2563eb;
}

/* ================= СТРАНИЦА ТОВАРА ================= */

.breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs__sep {
    margin: 0 8px;
    color: #9ca3af;
}

.product__top {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.product__image {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.product__image img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.product__info h1 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.25;
}

.product__info p {
    margin: 0 0 18px;
    color: #4b5563;
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.product__note {
    font-size: 14px;
    color: #6b7280;
}

.product__specs {
    margin-top: 40px;
}

.product__specs-title {
    font-size: 22px;
    margin: 0 0 18px;
}

.spec-table-wrap {
    overflow-x: auto;
    margin-bottom: 22px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
}

.spec-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    min-width: 480px;
}

.spec-table th,
.spec-table td {
    border: 1px solid #e5e7eb;
    padding: 7px 10px;
    text-align: center;
    white-space: nowrap;
}

.spec-table tr:first-child th,
.spec-table tr:first-child td {
    background: #eff6ff;
    font-weight: 600;
}

.spec-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f9fafb;
}

.spec-table tr:nth-child(even) td {
    background: #fbfcfe;
}

.spec-table tr:nth-child(even) td:first-child {
    background: #f3f4f6;
}

.product__specs-note {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 800px) {
    .product__top {
        grid-template-columns: 1fr;
    }
}

/* Мобилка: одна колонка вместо двух */
@media (max-width: 700px) {
    .category-item {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Иконки мессенджеров в топбаре – чистые PNG без лишнего фона */

.topbar__messengers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent; /* убрали цветной фон */
    padding: 0;
    box-shadow: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.9;
}

.social-icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 999px;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.06);
    opacity: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Крупные иконки в блоке контактов */
.contacts__social {
    display: flex;
    gap: 14px;
    margin: 4px 0 22px;
}

.social-icon--lg {
    width: 42px;
    height: 42px;
}
/* Вторая кнопка в герое – "Перейти в каталог" */
.hero__actions .btn.btn--ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #e5e7eb;
    box-shadow: none;
}

.hero__actions .btn.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.7);
}
/* ======= Готовые решения для типовых задач ======= */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* только 2 карточки в ряд */
    gap: 32px;
    margin-top: 24px;
}

.solution-card {
    padding: 24px 24px 26px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.solution-card__icon {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5f0ff; /* лёгкий фон вокруг фото */
    overflow: hidden;
}

.solution-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* показываем саму фотографию, а не маленький значок */
}

/* Вариант для рендеров на белом фоне — фото видно целиком, без обрезки */
.solution-card__icon--contain {
    background: #ffffff;
}

.solution-card__icon--contain img {
    object-fit: contain;
    padding: 10px;
}

.solution-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.solution-card p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #4b5563;
}

.solution-card__link {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    align-self: center;
}

.solution-card__link:hover {
    text-decoration: underline;
}

/* мобилка / планшет – одна карточка в ряд */
@media (max-width: 900px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========= Схема "Как мы работаем" (таймлайн) ========= */

/* центрируем всю секцию */
#how .container {
    max-width: 1100px;
    margin: 0 auto;
}

#how .section__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(32px, 4vw, 44px); /* крупнее заголовок */
    line-height: 1.1;
}
.process-timeline {
    position: relative;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* центральная вертикальная линия */
.process-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(37, 99, 235, 0.95),
        rgba(129, 140, 248, 0.18)
    );
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
}

/* крупный круг с номером */
.process-step__bullet {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e0f2fe, #bfdbfe);
    border: 3px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
    z-index: 1;
}

.process-step__bullet span {
    font-weight: 700;
    font-size: 22px;
    color: #1d4ed8;
}

/* текст шагов — крупнее */
.process-step__content h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.process-step__content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
}

.process-step__content p a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* расположение текста относительно центральной линии */

.process-step--left .process-step__content {
    grid-column: 1 / 2;
    text-align: right;
    padding-right: 32px;
}

.process-step--left .process-step__bullet {
    grid-column: 2 / 3;
}

.process-step--right .process-step__content {
    grid-column: 3 / 4;
    text-align: left;
    padding-left: 32px;
}

.process-step--right .process-step__bullet {
    grid-column: 2 / 3;
}

/* просто заглушка для сохранения трёх колонок */
.process-step__spacer {
    grid-column: auto;
}

/* кнопка снизу по центру */
.process-cta {
    margin-top: 32px;
    text-align: center;
}

/* адаптация под мобильные устройства */
@media (max-width: 768px) {
    #how .container {
        max-width: 100%;
    }

    .process-timeline::before {
        left: 24px;
        transform: none;
    }

    .process-step {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 16px;
    }

    .process-step__bullet {
        width: 44px;
        height: 44px;
        border-width: 2px;
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    }

    .process-step__bullet span {
        font-size: 16px;
    }

    .process-step--left .process-step__content,
    .process-step--right .process-step__content {
        grid-column: 2 / 3;
        text-align: left;
        padding: 0 0 0 8px;
    }
}

/* Специальный заголовок для блока "Как мы работаем" */
.section__title--how {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
}

/* Заголовок секции "О компании" */
.section__title--about {
    text-align: center;
    margin-bottom: 28px;
    font-size: clamp(32px, 3.8vw, 44px);
    line-height: 1.1;
}

/* ============================================================
   СОВРЕМЕННЫЙ РЕДИЗАЙН — слой поверх базовых стилей.
   Фирменная палитра NED построена от цвета логотипа #106080.
   ============================================================ */

:root {
    --brand-900: #06202c;
    --brand-800: #0a3346;
    --brand-700: #0c4a63;
    --brand-600: #106080;
    --brand-500: #1583b0;
    --brand-400: #2ba3d4;
    --brand-100: #dcedf5;
    --brand-50:  #f3f8fb;
    --ink-900: #0f1c24;
    --ink-600: #46606e;
    --ink-400: #7d919c;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* overflow-x: clip (а не hidden!) — hidden превращает body в скролл-контейнер
   и ломает position: sticky у шапки */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

main {
    overflow-x: clip;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-900);
    overflow-x: clip;
}

/* ---------- Верхняя полоска и шапка ---------- */

.topbar {
    background: var(--brand-900);
    font-size: 13px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(16, 96, 128, 0.08);
    transition: box-shadow 0.3s ease;
}

.header--scrolled {
    box-shadow: 0 10px 34px rgba(6, 32, 44, 0.10);
}

.header__nav a {
    position: relative;
    font-weight: 600;
    color: var(--ink-600);
    padding: 6px 2px;
    transition: color 0.22s ease;
}

.header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease-out);
}

.header__nav a:hover {
    color: var(--brand-600);
}

.header__nav a:hover::after {
    transform: scaleX(1);
}

/* ---------- Hero: без «коробки», крупная типографика, анимация ---------- */

.hero {
    min-height: 620px;
    overflow: hidden;
}

.hero__image {
    animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.hero__bg-overlay {
    background: linear-gradient(100deg,
        rgba(4, 26, 36, 0.94) 0%,
        rgba(7, 42, 58, 0.80) 42%,
        rgba(10, 52, 72, 0.38) 75%,
        rgba(10, 52, 72, 0.18) 100%);
}

.hero__text {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 660px;
}

.hero__text h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #d9e6ec;
}

.hero__bullets li {
    color: #cfe0e8;
}

.hero__text > * {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero__text h1              { animation-delay: 0.05s; }
.hero__text .hero__subtitle { animation-delay: 0.20s; }
.hero__text .hero__bullets  { animation-delay: 0.35s; }
.hero__text .hero__actions  { animation-delay: 0.50s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Секции и заголовки ---------- */

.section {
    padding: 92px 0;
}

.section--light {
    background: var(--brand-50);
}

.section__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    font-size: clamp(30px, 3.8vw, 44px);
    text-align: center;
}

.section__title--inverse {
    text-align: left;
}

.section__title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
}

.section__title--inverse::after {
    margin-left: 0;
}

.section__subtitle {
    color: var(--ink-600);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Текст по центру: преимущества, направления, каталог, решения, форма заявки */
.card--feature,
.card--service,
.catalog-card__body,
.solution-card {
    text-align: center;
}

.card--service .btn,
.solution-card .btn {
    margin-left: auto;
    margin-right: auto;
}

.form__submit {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.form__note,
.form__status {
    text-align: center;
}

/* ---------- Карточки: тени, ховеры ---------- */

.card,
.catalog-card,
.solution-card,
.category-item,
.product__image,
.stat {
    border-radius: 20px;
    border: 1px solid rgba(16, 96, 128, 0.10);
    box-shadow: 0 12px 40px rgba(6, 32, 44, 0.05);
    transition: transform 0.32s var(--ease-out),
                box-shadow 0.32s var(--ease-out),
                border-color 0.32s var(--ease-out);
    background: #ffffff;
}

.card:hover,
.solution-card:hover,
.category-item:hover {
    transform: translateY(-6px);
    border-color: rgba(21, 131, 176, 0.40);
    box-shadow: 0 24px 60px rgba(6, 32, 44, 0.12);
}

.catalog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(21, 131, 176, 0.45);
    box-shadow: 0 26px 64px rgba(6, 32, 44, 0.14);
}

.catalog-card__image {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}

.catalog-card__image img {
    transition: transform 0.55s var(--ease-out);
}

.catalog-card:hover .catalog-card__image img {
    transform: scale(1.07);
}

.card--feature h3,
.card--service h3 {
    color: var(--brand-800);
}

/* Шаги процесса: фирменные кружки с белыми цифрами */
.process-step__bullet {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border: 3px solid #ffffff;
    box-shadow: 0 16px 40px rgba(16, 96, 128, 0.35);
}

.process-step__bullet span {
    background: none;
    color: #ffffff;
}

/* Вертикальная линия таймлайна — тоже в фирменном цвете */
.process-timeline::before {
    background: linear-gradient(
        to bottom,
        rgba(21, 131, 176, 0.95),
        rgba(43, 163, 212, 0.15)
    );
}

/* ---------- Блок «NED в цифрах» ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 880px;
    margin: 48px auto 0;
}

.stat {
    text-align: center;
    padding: 30px 18px 26px;
    background: #ffffff;
}

.stat__value {
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-600);
    line-height: 1;
}

.stat__label {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ink-600);
}

@media (max-width: 700px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

/* ---------- Форма ---------- */

.form input,
.form select,
.form textarea {
    font-family: inherit;
    border-radius: 12px;
    border: 1px solid #d3e2ea;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(21, 131, 176, 0.14);
}

/* ---------- Тёмные секции и футер ---------- */

.section--dark {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(21, 131, 176, 0.20), transparent 60%),
        var(--brand-900);
}

.footer {
    background: var(--brand-900);
    color: #8fa9b6;
}

.footer a {
    color: #cfe0e8;
}

/* ---------- Scroll-reveal анимации ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.process-step--left.reveal  { transform: translateX(-36px); }
.process-step--right.reveal { transform: translateX(36px); }

.reveal--in {
    opacity: 1;
    transform: none;
}

/* ---------- Переключатель языка (РУ / ТҶ) ---------- */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: #cfe0e8;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-switch__btn img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.lang-switch__btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.lang-switch__btn--active {
    border-color: var(--brand-400);
    background: rgba(43, 163, 212, 0.28);
    color: #ffffff;
}

/* ---------- Мобильная версия ---------- */

@media (max-width: 760px) {
    .topbar__inner {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .topbar__right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .lang-switch {
        margin-left: 0;
    }

    .header__inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .header__logo img {
        max-height: 40px;
        width: auto;
    }

    .header__cta {
        margin-left: auto;
        padding: 8px 16px;
        font-size: 13px;
    }

    /* меню переносится вниз и прокручивается по горизонтали */
    .header__nav {
        order: 3;
        width: 100%;
        display: flex;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header__nav::-webkit-scrollbar {
        display: none;
    }

    .header__nav a {
        white-space: nowrap;
        font-size: 14px;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: 540px;
    }

    .stats {
        gap: 14px;
    }
}

/* Пользователь просил меньше движения — отключаем анимации */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .process-step--left.reveal,
    .process-step--right.reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero__image { animation: none; }
    .hero__text > * { animation: none; opacity: 1; }
    .card, .catalog-card, .solution-card, .category-item { transition: none; }
}