:root {
    --bg: #f5f8fb;
    --card: #ffffff;
    --text: #172333;
    --muted: #64748b;
    --accent: #0878c9;
    --accent2: #0b5fa0;
    --line: #dbe5ee;
    --dark: #10263a;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ========================================
   КОНТЕЙНЕР
   ======================================== */

.container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}

/* ========================================
   ВЕРХНЯЯ ПОЛОСА
   ======================================== */

.top {
    width: 100%;
    background: var(--dark);
    color: #dce8f1;
    font-size: 14px;
}

.top .container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ========================================
   ШАПКА
   ======================================== */

header {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.head {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ЛОГОТИП */

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 250px;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    width: 210px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Старый вариант логотипа, если где-то используется */

.mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b78c9, #69c4ff);
    position: relative;
    flex-shrink: 0;
}

.mark:after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
}

.brand b {
    display: block;
    font-size: 20px;
}

.brand span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ========================================
   МЕНЮ
   ======================================== */

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent);
}

.phone {
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* ========================================
   КНОПКИ
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
}

.btn:hover {
    background: var(--accent2);
}

.btn.light {
    background: #eaf5fd;
    color: var(--accent);
}

/* ========================================
   ГЛАВНЫЙ ЭКРАН
   ======================================== */

.hero {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(
        115deg,
        #0c253a 0%,
        #10496e 55%,
        #147db7 100%
    );
    color: #fff;
    padding: 78px 0 70px;
}

.hero-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 45px;
    align-items: center;
}

.eyebrow {
    font-weight: 800;
    color: #9edbff;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
}

.hero h1 {
    font-size: 50px;
    line-height: 1.08;
    margin: 14px 0 18px;
    max-width: 750px;
}

.hero p {
    font-size: 19px;
    color: #d8ebf7;
    max-width: 680px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero .btn.light {
    background: #fff;
    color: #0b5fa0;
}

/* ========================================
   КАРТОЧКА НА ГЛАВНОМ ЭКРАНЕ
   ======================================== */

.hero-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 22px;
    padding: 26px;
}

.hero-card h3 {
    margin-top: 0;
}

.metric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric div {
    background: rgba(0,0,0,.14);
    border-radius: 14px;
    padding: 18px;
}

.metric b {
    font-size: 27px;
    display: block;
}

.metric span {
    font-size: 13px;
    color: #c9dfed;
}

/* ========================================
   СЕКЦИИ
   ======================================== */

section {
    width: 100%;
    max-width: 100%;
    padding: 65px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 34px;
    margin: 0;
}

.section-head p {
    color: var(--muted);
    max-width: 620px;
    margin: 0;
}

/* ========================================
   СЕТКИ
   ======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
}

/* ========================================
   КАРТОЧКИ
   ======================================== */

.card {
    width: 100%;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 25px rgba(16,38,58,.05);
}

.card h3 {
    margin: 10px 0 8px;
}

.card p {
    color: var(--muted);
    margin: 0;
}

.icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: #eaf5fd;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* ========================================
   КАТЕГОРИИ
   ======================================== */

.cat {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(145deg, #eaf5fd, #fff);
    overflow: hidden;
    position: relative;
}

.cat:before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    right: -35px;
    top: -35px;
    background: #d7effd;
}

.cat b {
    position: relative;
    font-size: 19px;
}

.cat small {
    position: relative;
    color: var(--muted);
    margin-top: 7px;
}

/* ========================================
   ТЁМНЫЕ СЕКЦИИ
   ======================================== */

.dark-section {
    background: var(--dark);
    color: #fff;
}

.dark-section p {
    color: #c7d8e5;
}

.dark-section .card {
    background: #17354c;
    border-color: #27516d;
}

.dark-section .card p {
    color: #c7d8e5;
}

/* ========================================
   CTA
   ======================================== */

.cta {
    background: linear-gradient(110deg, #0878c9, #0a5fa0);
    color: #fff;
    border-radius: 22px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cta h2 {
    margin: 0 0 8px;
}

.cta p {
    margin: 0;
    color: #d9edfa;
}

/* ========================================
   ФУТЕР
   ======================================== */

footer {
    width: 100%;
    max-width: 100%;
    background: #0b1d2d;
    color: #d5e2eb;
    padding: 42px 0;
}

.footer-grid h4 {
    color: #fff;
    margin-top: 0;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
    color: #c8d8e4;
    font-size: 14px;
}

.small {
    font-size: 13px;
    color: #9fb4c3;
}

/* ========================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ======================================== */

.page-hero {
    padding: 45px 0;
    background: #eaf4fa;
}

.page-hero h1 {
    font-size: 42px;
    margin: 0 0 8px;
}

.page-hero p {
    color: var(--muted);
    max-width: 750px;
}

/* ========================================
   КАТАЛОГ
   ======================================== */

.product {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.product-img {
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg,#eef6fa,#d8eaf3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c9aae;
    font-weight: 800;
}

.product h3 {
    font-size: 18px;
    margin: 15px 0 6px;
}

.price {
    font-weight: 900;
    font-size: 20px;
}

.muted {
    color: var(--muted);
}

/* ========================================
   ФОРМЫ
   ======================================== */

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.form textarea {
    min-height: 130px;
    grid-column: 1 / -1;
}

.form .full {
    grid-column: 1 / -1;
}

/* ========================================
   ПЛАНШЕТ
   ======================================== */

@media (max-width: 1100px) {

    .container {
        max-width: 100%;
    }

    .head {
        gap: 18px;
    }

    .logo {
        min-width: 190px;
    }

    .logo img {
        width: 190px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 13px;
    }

    .phone {
        font-size: 14px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero h1 {
        font-size: 44px;
    }
}

/* ========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА
   ======================================== */

@media (max-width: 900px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* Верхняя строка */

    .top {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .top .container {
        width: 100% !important;
        min-height: 38px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .top .container span {
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
        display: block !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    .top .container span:last-child {
        text-align: right !important;
    }

    /* Шапка */

    header {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        overflow: visible !important;
    }

    .head {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 14px 0 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    /* Логотип */

    .logo {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo img {
        display: block !important;
        width: 140px !important;
        max-width: 140px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    /* Меню */

    header nav,
    nav {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    nav a {
        display: block !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        padding: 2px 0 !important;
        margin: 0 !important;
    }

    /* Телефон */

    .phone {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Главный экран */

    .hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 45px 0 !important;
        overflow: hidden !important;
    }

    .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .hero-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    .hero-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .eyebrow {
        font-size: 12px !important;
    }

    .hero h1 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 38px !important;
        line-height: 1.08 !important;
        margin: 10px 0 18px !important;
    }

    .hero p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 17px !important;
        line-height: 1.5 !important;
        margin-top: 0 !important;
    }

    /* Кнопки */

    .actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-top: 22px !important;
    }

    .actions .btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* Карточка */

    .hero-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 22px !important;
    }

    .metric {
        width: 100% !important;
        grid-template-columns: 1fr 1fr !important;
    }

    /* Секции */

    section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 50px 0 !important;
    }

    section .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .section-head {
        display: block !important;
        margin-bottom: 24px !important;
    }

    .section-head h2 {
        font-size: 31px !important;
        line-height: 1.2 !important;
    }

    .section-head p {
        max-width: 100% !important;
    }

    .section-head .btn {
        display: inline-flex !important;
        margin-top: 15px !important;
    }

    /* Карточки */

    .grid,
    .catalog-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .card,
    .product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Футер */

    footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .footer-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr 1fr !important;
    }

    /* Формы */

    .form {
        grid-template-columns: 1fr !important;
    }

    .form textarea,
    .form .full {
        grid-column: 1 / -1 !important;
    }

    /* CTA */

    .cta {
        display: block !important;
    }

    .cta .btn {
        margin-top: 18px !important;
    }
}

/* ========================================
   НЕБОЛЬШИЕ ТЕЛЕФОНЫ
   ======================================== */

@media (max-width: 600px) {

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Верхняя полоса */

    .top {
        min-height: 36px !important;
        height: auto !important;
        font-size: 10px !important;
    }

    .top .container {
        min-height: 36px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .top .container span {
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    /* Шапка */

    .head {
        padding: 12px 0 14px !important;
        gap: 10px !important;
    }

    .logo,
    .logo img {
        width: 120px !important;
        max-width: 120px !important;
        min-width: 120px !important;
    }

    header nav,
    nav {
        gap: 6px 11px !important;
    }

    nav a {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .phone {
        font-size: 13px !important;
    }

    /* Главный экран */

    .hero {
        padding: 38px 0 42px !important;
    }

    .hero .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero-grid {
        gap: 24px !important;
    }

    .eyebrow {
        font-size: 11px !important;
        letter-spacing: .10em !important;
    }

    .hero h1 {
        font-size: 32px !important;
        line-height: 1.08 !important;
        margin: 10px 0 17px !important;
    }

    .hero p {
        font-size: 16px !important;
        line-height: 1.48 !important;
        margin-bottom: 0 !important;
    }

    .actions {
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .actions .btn {
        width: 100% !important;
        min-height: 52px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
    }

    .hero-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .hero-card h3 {
        font-size: 18px !important;
    }

    .metric {
        gap: 10px !important;
    }

    .metric div {
        padding: 14px !important;
    }

    .metric b {
        font-size: 23px !important;
    }

    .metric span {
        font-size: 12px !important;
    }

    /* Секции */

    section {
        padding: 42px 0 !important;
    }

    section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section-head {
        margin-bottom: 22px !important;
    }

    .section-head h2 {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    .section-head p {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    /* Все карточки в одну колонку */

    .grid,
    .catalog-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .card,
    .product {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    .cat {
        min-height: 175px !important;
    }

    /* Внутренние страницы */

    .page-hero {
        padding: 35px 0 !important;
    }

    .page-hero h1 {
        font-size: 32px !important;
        line-height: 1.15 !important;
    }

    .page-hero p {
        font-size: 16px !important;
    }

    /* Изображения товаров */

    .product-img {
        height: 160px !important;
    }

    /* CTA */

    .cta {
        padding: 24px !important;
        border-radius: 18px !important;
    }

    .cta h2 {
        font-size: 25px !important;
    }

    /* Футер */

    footer {
        padding: 35px 0 !important;
    }

    footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .footer-grid {
        gap: 24px !important;
    }
}

/* ========================================
   ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ======================================== */

@media (max-width: 380px) {

    .container,
    .hero .container,
    section .container,
    footer .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .logo,
    .logo img {
        width: 110px !important;
        max-width: 110px !important;
        min-width: 110px !important;
    }

    nav {
        gap: 5px 9px !important;
    }

    nav a {
        font-size: 12px !important;
    }

    .hero h1 {
        font-size: 29px !important;
    }

    .hero p {
        font-size: 15px !important;
    }

    .section-head h2 {
        font-size: 25px !important;
    }

    .metric {
        grid-template-columns: 1fr 1fr !important;
    }

    .metric div {
        padding: 12px !important;
    }

    .metric b {
        font-size: 21px !important;
    }
}
/* --- Таблица характеристик товара --- */
.spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}
.spec-table tr {
	border-bottom: 1px solid #E7E7E7;
}
.spec-table td {
	padding: 10px 6px;
	font-size: 14px;
}
.spec-table td:first-child {
	color: #6b7280;
	width: 45%;
}
.spec-table td:last-child {
	font-weight: 600;
}
/* --- Таблица характеристик товара --- */
.spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}
.spec-table tr {
	border-bottom: 1px solid #E7E7E7;
}
.spec-table td {
	padding: 10px 6px;
	font-size: 14px;
}
.spec-table td:first-child {
	color: #6b7280;
	width: 45%;
}
.spec-table td:last-child {
	font-weight: 600;
}
/* ===== Единая шапка СЗХК для статических страниц ===== */

header .head {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 25px;
    padding-top: 18px;
    padding-bottom: 18px;
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

header .logo img {
    width: 120px;
    height: auto;
    display: block;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 3px 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

header .phone {
    display: block;
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    header .head {
        grid-template-columns: 130px 1fr;
    }

    header .phone {
        grid-column: 1 / -1;
        text-align: center;
    }
}


        font-size: 13px;
    }

    header .phone {
        text-align: center;
    }
}
/* ===== Исправление содержимого после новой шапки ===== */



body {
    padding-top: 0 !important;
}
