/* Палитра и типографика по основному сайту akron-holding.ru */
:root {
    --navy: #001829;        /* основной текст, тёмные секции */
    --navy-2: #003a66;      /* вторичный синий: цифры, подписи */
    --red: #e00613;         /* акцент: ссылки, метки, кнопки */
    --red-dark: #b8050f;
    --text: #1d1d1d;
    --text-muted: #7f8b93;
    --grey: #f2f5f7;        /* карточки и плашки */
    --line: rgba(0, 24, 41, .1);
    --bg: #ffffff;
    --success: #1b6e3a;
    --font: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--navy); background: var(--bg); }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 40px; font-weight: 500; line-height: 1.15; margin: 10px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 30px; font-weight: 500; line-height: 1.2; margin: 0 0 18px; }
p { margin: 0 0 12px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Метка раздела: ▲ КАТАЛОГ */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); margin-bottom: 10px; }
.label::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--red); }

/* Шапка */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: block; line-height: 0; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { color: var(--red); text-decoration: none; }
.nav a.active { color: var(--red); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; letter-spacing: 0; }

/* Подвал */
.site-footer { margin-top: 70px; padding: 36px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-size: 28px; font-weight: 500; line-height: 1.2; }
.footer-brand span { color: var(--red); }
.footer-links { display: flex; gap: 22px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links a { color: var(--navy); }
.footer-note { font-size: 14px; color: var(--text-muted); max-width: 520px; }

/* Кнопки: пилюли как на основном сайте */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 80px; border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--grey); color: var(--navy); border-color: var(--navy); }
.btn-outline.active { border-color: var(--red); color: var(--red); }
.btn-link { background: transparent; border-color: transparent; color: var(--red); padding-left: 6px; padding-right: 6px; }
.btn-link:hover { background: transparent; border-color: transparent; text-decoration: underline; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; }

/* Первый экран: тёмно-синий, как на основном сайте */
.hero { background: var(--navy); color: #fff; border-radius: 0 0 24px 24px; padding: 80px 48px 72px; margin: 0 -20px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: 40px; bottom: -60px; width: 380px; height: 375px; background: url(../img/mark-2-white.svg) no-repeat center / contain; opacity: .06; pointer-events: none; }
.hero .label { color: rgba(255, 255, 255, .6); }
.hero h1 { font-size: 56px; color: #fff; margin: 0 0 12px; max-width: 760px; }
.hero-text { font-size: 20px; color: rgba(255, 255, 255, .75); max-width: 640px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

.section { margin: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* Карточки */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--grey); border-radius: 20px; padding: 26px 28px; }
.card-link { display: flex; flex-direction: column; color: var(--navy); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
/* Фирменные фигуры: один размер, прижаты к верхнему или нижнему краю и обрезаны им; текст не заходит под фигуру за счёт padding-right */
.card-link { padding-right: 130px; }
.card-link .card-meta { margin-right: -100px; }
.card-link::after { content: ""; position: absolute; width: 150px; height: 148px; background: url(../img/mark-1.svg) no-repeat center / contain; opacity: .045; pointer-events: none; }
.card-link:nth-child(6n+1)::after { right: 20px; bottom: -44px; }
.card-link:nth-child(6n+2)::after { background-image: url(../img/mark-2.svg); right: 28px; top: -44px; }
.card-link:nth-child(6n+3)::after { right: 12px; top: -56px; }
.card-link:nth-child(6n+4)::after { background-image: url(../img/mark-2.svg); right: 36px; bottom: -36px; }
.card-link:nth-child(6n+5)::after { background-image: url(../img/mark-2.svg); right: 16px; bottom: -56px; }
.card-link:nth-child(6n+6)::after { right: 32px; top: -36px; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 24, 41, .10); }
.card-link:hover .card-title { color: var(--red); }
.card-big { min-height: 190px; }
.card-title { font-size: 22px; font-weight: 500; margin-bottom: 6px; transition: color .15s; }
.card-sub { color: var(--text-muted); font-size: 15px; }
.card-meta { margin-top: auto; padding-top: 18px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.card-title-sm { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-center { text-align: center; max-width: 640px; margin: 50px auto; }

/* Хлебные крошки */
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin: 22px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 8px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }

/* Страница группы */
.search-bar { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.search-bar input[type=search] { flex: 1; padding: 14px 18px; font-size: 16px; border-radius: 80px; }
.layout-sidebar { display: grid; grid-template-columns: 290px 1fr; gap: 28px; margin-top: 24px; }
.sidebar-block { background: var(--grey); border-radius: 20px; padding: 20px; margin-bottom: 16px; }
.sidebar-title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); margin-bottom: 12px; }
.sublist { list-style: none; margin: 0; padding: 0; }
.sublist a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; color: var(--navy); font-size: 14px; }
.sublist a:hover { background: #fff; text-decoration: none; color: var(--red); }
.sublist li.active a { background: var(--navy); color: #fff; }
.sublist .count { color: var(--text-muted); font-size: 12px; }
.sublist li.active .count { color: rgba(255, 255, 255, .6); }

input[type=text], input[type=email], input[type=search], input[type=number], input[type=file], select, textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--navy);
}
input[type=file] { padding: 9px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(0, 58, 102, .12); }
.filter { display: block; margin-top: 14px; font-size: 13px; color: var(--navy-2); }
.filter select { margin-top: 6px; }
.filter-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }

.results-bar { margin: 4px 0 14px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; background: var(--grey); border-radius: 16px; }
.product-name { font-weight: 500; color: var(--navy); font-size: 17px; }
.product-name:hover { color: var(--red); text-decoration: none; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.product-actions form { margin: 0; }

/* Карточка изделия */
.product-head .product-meta { font-size: 15px; margin-bottom: 24px; }
.product-head strong { color: var(--navy); font-weight: 500; }
.product-body { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.product-info .card { margin-bottom: 16px; }
.product-image { max-width: 100%; border-radius: 20px; margin-bottom: 16px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--text-muted); width: 45%; padding-right: 12px; }
.specs tr:last-child td { border-bottom: 0; }
.add-form label { display: block; font-size: 13px; color: var(--navy-2); margin-bottom: 14px; }
.add-form input { margin-top: 6px; }
.add-form .btn { width: 100%; }

.inline-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: var(--grey); border-radius: 20px; padding: 18px 20px; margin-bottom: 16px; }
.inline-filters label { font-size: 13px; color: var(--navy-2); min-width: 150px; }
.inline-filters select { margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.variants, table.items { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.variants th, table.items th { text-align: left; padding: 12px 12px; background: var(--grey); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-2); font-weight: 500; }
table.variants td, table.items td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.variants tr:hover td { background: #fafbfc; }
.qty-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.qty-form input[type=number] { width: 72px; padding: 7px 10px; }
table.items .qty { width: 90px; }

/* Формы */
.form, .request-form .card { margin-bottom: 18px; }
.form label, .request-form label { display: block; font-size: 13px; color: var(--navy-2); margin-bottom: 14px; }
.form input, .form textarea, .request-form input, .request-form textarea { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 14px 18px; border-radius: 14px; margin: 16px 0; font-size: 15px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #e8f5ec; color: var(--success); }
.alert-error { background: #fdecea; color: var(--red-dark); }

.pagination-wrap { margin-top: 22px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { display: inline-block; min-width: 38px; padding: 7px 10px; text-align: center; border-radius: 80px; border: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.pagination a:hover { border-color: var(--navy); text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled, .pagination .dots { color: var(--text-muted); border-color: transparent; }

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .card-link { padding-right: 100px; }
    .card-link::after { width: 120px; height: 118px; }
    .product-body { grid-template-columns: 1fr; }
    .hero { padding: 56px 28px; }
    .hero h1 { font-size: 38px; }
    h1 { font-size: 32px; }
}
@media (max-width: 600px) {
    .grid-3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .product-row { flex-direction: column; align-items: flex-start; }
    .search-bar { flex-wrap: wrap; }
    .search-bar input[type=search] { flex-basis: 100%; }
    .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
    .nav { gap: 16px; }
    .hero { padding: 44px 22px; border-radius: 0 0 16px 16px; }
    .hero h1 { font-size: 30px; }
    .footer-inner { align-items: flex-start; }
}
