﻿/* ========================================================================= */
/* 1. БАЗОВЫЕ ПЕРЕМЕННЫЕ И ТИПОГРАФИКА                                       */
/* ========================================================================= */
:root {
	--bg: #ffffff;
	--bg-soft: #f8fafc;
	--blue: #005bff;
	--orange: #eb6121;
	--green: #16a34a;
	--ink: #0f172a;
	--navy: #263547;
	--navy-dark: #1d2939;
	--text: #334155;
	--muted: #64748b;
	--border: #e2e8f0;
}

body {
	min-height: 100vh;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, Roboto, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 16px;
	color: var(--text);
}

h1, .h1 { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.25; }
h2, .h2 { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.3; }
h3, .h3 { font-size: 18px; font-weight: 700; color: var(--ink); }

.privacy-policy-block { text-align: left; }
.privacy-policy-block label { line-height: 1.35; user-select: none; }

/* ========================================================================= */
/* 2. УНИВЕРСАЛЬНЫЕ КОМПОНЕНТЫ ИНТЕРФЕЙСА (КОНТЕЙНЕРЫ, KPI, КАРТОЧКИ)         */
/* ========================================================================= */
.at-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 22px; box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04); }
.at-box.is-gray { background: var(--bg-soft); }
.at-box.is-blue { border-left: 4px solid var(--blue); }
.at-box.is-orange { border-left: 4px solid var(--orange); }
.at-title { font-size: 21px; font-weight: 800; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.at-subtitle { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }

.at-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.at-kpi { background: var(--bg-soft); border: 1px solid var(--border); border-left: 3.5px solid var(--blue); border-radius: 10px; padding: 12px 14px; }
.at-kpi.is-orange { border-left-color: var(--orange); }
.at-kpi.is-green { border-left-color: var(--green); }
.at-kpi.is-dark { border-left-color: var(--ink); }
.at-kpi-val { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.at-kpi-lbl { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

.at-box .row { display: flex; flex-wrap: wrap; }
.at-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 20px; display: flex; flex-direction: column; height: calc(100% - 20px); box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04); transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.at-card:hover, .at-card.is-featured { border-color: var(--orange); background: #fff8f5; box-shadow: 0 8px 20px rgba(235, 97, 33, 0.1); }
.at-card-media { display: flex; align-items: center; justify-content: center; position: relative; height: 155px; background: var(--bg); border: 1px solid #f1f5f9; border-radius: 8px; overflow: hidden; margin-bottom: 10px; padding: 6px; }
.at-card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.35s ease; }
.at-card:hover .at-card-media img, .at-card-media:hover img { transform: scale(1.07); }
.at-card-media .at-tag { position: absolute; left: 8px; bottom: 8px; margin: 0; }
.at-card-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.3; }
.at-card-title a { color: inherit; text-decoration: none; }
.at-card-title a:hover { color: var(--blue); }

.at-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f1f5f9; color: var(--text); margin-bottom: 8px; }
.at-tag.is-blue { background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe; }
.at-tag.is-orange { background: var(--orange); color: #fff; }
.at-tag.is-dark { background: rgba(15, 23, 42, 0.88); color: #fff; }

.at-specs { list-style: none; padding: 0; margin: 0 0 10px; flex: 1; }
.at-specs li { display: flex; justify-content: space-between; gap: 8px; padding: 3.5px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; color: var(--muted); }
.at-specs li:last-child { border-bottom: none; }
.at-specs strong { color: var(--ink); font-weight: 600; text-align: right; }

.at-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.at-price { font-size: 12.5px; color: var(--muted); }
.at-price strong { font-size: 16.5px; font-weight: 800; color: var(--orange); white-space: nowrap; }

/* ========================================================================= */
/* 3. КНОПКИ, CTA-БАННЕРЫ, ЧИПЫ НАВИГАЦИИ И ТАБЛИЦЫ                          */
/* ========================================================================= */
.at-btn, .btn-altrans-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; text-decoration: none !important; cursor: pointer; }
.at-btn.is-sm { font-size: 12.5px; padding: 6px 12px; border-radius: 7px; }
.at-btn.is-orange, .btn-altrans-cta { background: var(--orange); color: #fff !important; }
.at-btn.is-orange:hover, .btn-altrans-cta:hover { background: #d45215; color: #fff !important; }
.at-btn.is-blue { background: var(--blue); color: #fff !important; }
.at-btn.is-blue:hover { background: #0047cc; }
.at-btn.is-outline { background: #eff6ff; border-color: #bfdbfe; color: var(--blue) !important; }
.at-btn.is-outline:hover { background: var(--blue); color: #fff !important; }

.at-cta, .altrans-cta-card { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 12px; padding: 18px 22px; margin: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.at-cta.is-blue, .altrans-cta-card.is-calc { border-left-color: var(--blue); }
.altrans-cta-content { display: flex; align-items: flex-start; gap: 14px; flex: 1; }
.altrans-cta-icon { width: 42px; height: 42px; border-radius: 10px; background: #fff8f5; border: 1px solid #ffd8c4; color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.altrans-cta-card.is-calc .altrans-cta-icon { background: #eff6ff; border-color: #bfdbfe; color: var(--blue); }
.at-cta-text strong, .at-cta-text h3, .altrans-cta-title { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 0 0 4px; line-height: 1.35; }
.at-cta-text p, .altrans-cta-desc { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.altrans-cta-action { flex-shrink: 0; }

.at-sticky-bar { position: sticky; top: 0; z-index: 950; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); padding: 8px 10px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.at-sticky-track { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.at-sticky-track::-webkit-scrollbar { display: none; }
.at-sticky-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.at-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 6px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); text-decoration: none !important; flex-shrink: 0; }
.at-chip:hover, .at-chip.is-blue { background: #eff6ff; border-color: #bfdbfe; color: var(--blue); }
.at-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.at-table { margin: 0; font-size: 13.5px; }
.at-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--border); }
.at-list { padding-left: 18px; margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.6; }
.at-list li { margin-bottom: 7px; }

/* Унифицированные кнопки-пилюли мессенджеров и почты (шапка, подвал, модалки) */
.at-header-channels, .at-footer-messengers, .at-modal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.at-modal-links { justify-content: center; margin-bottom: 12px; }
.at-header-mail, .at-header-msg, .at-modal-links a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--ink); font-weight: 600; text-decoration: none !important; transition: border-color 0.15s ease, background 0.15s ease; }
.at-header-mail { color: var(--blue); font-weight: 700; }
.at-header-mail:hover { border-color: var(--blue); }
.at-header-msg:hover, .at-modal-links a:hover { border-color: var(--orange); background: #fff8f5; }

/* ========================================================================= */
/* 4. СКВОЗНАЯ ШАПКА И ЛИПКАЯ ПАНЕЛЬ НАВИГАЦИИ (.at-header / .at-topnav)     */
/* ========================================================================= */
header.at-header { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--orange); border-radius: 12px; margin: 0 0 10px; padding: 0; overflow: hidden; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04); }
.at-header-main { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.at-header-logo { flex: 0 0 auto; }
.at-header-logo img { display: block; width: 100%; max-width: 235px; height: auto; }
.at-header-center { flex: 1 1 300px; padding-left: 16px; border-left: 2px solid var(--border); }
.at-header-tagline { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 9px; }
.at-header-tagline span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.at-header-contacts { flex: 0 0 auto; text-align: right; }
.at-header-phones { margin-bottom: 3px; }
.at-header-phone { display: block; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; text-decoration: none !important; letter-spacing: -0.2px; transition: color 0.15s ease; }
.at-header-phone:hover, .at-header-phone:focus { color: var(--orange); }
.at-header-hours { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.at-header-cta { display: flex; gap: 8px; justify-content: flex-end; }

/* Липкая панель меню под шапкой (.at-topnav) */
.at-topnav { position: sticky; top: 0; z-index: 980; margin: 0 0 18px; }
.at-topnav-bar { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 10px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }
.at-topnav-toggle { display: inline-flex; align-items: center; gap: 7px; background: var(--blue); border: 1px solid var(--blue); color: #ffffff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.15s ease, border-color 0.15s ease; }
.at-topnav-toggle:hover, .at-topnav.is-open .at-topnav-toggle { background: #0047cc; border-color: #0047cc; }
.at-topnav-caret { font-size: 11px; transition: transform 0.2s ease; }
.at-topnav.is-open .at-topnav-caret { transform: rotate(180deg); }
.at-topnav-quick { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; flex: 1; justify-content: flex-end; }
.at-topnav-quick a { color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 8px; border-radius: 6px; text-decoration: none !important; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.at-topnav-quick a:hover, .at-topnav-quick a:focus { background: var(--bg-soft); color: var(--blue); }
.at-topnav-quick a.is-b2b { background: #fff8f5; border: 1px solid #fdba74; color: var(--orange); }
.at-topnav-quick a.is-b2b:hover { background: var(--orange); border-color: var(--orange); color: #ffffff; }
.at-topnav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.at-topnav-b2b-mob { display: none; padding: 5px 10px; border-radius: 6px; background: #fff8f5; border: 1px solid #fdba74; color: var(--orange) !important; font-size: 12px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }

.at-topnav-panel { display: none; background: var(--bg); border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 18px 20px; box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14); }
.at-topnav.is-open .at-topnav-panel { display: block; }
.at-topnav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.at-topnav-col-head { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--orange); padding-bottom: 6px; margin-bottom: 8px; border-bottom: 2px solid var(--border); }
.at-topnav-item { display: block; padding: 8px 10px; border-radius: 8px; border-left: 3px solid transparent; text-decoration: none !important; margin-bottom: 4px; transition: background 0.15s ease, border-color 0.15s ease; }
.at-topnav-item:hover, .at-topnav-item:focus { background: var(--bg-soft); border-left-color: var(--orange); }
.at-topnav-item strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 2px; }
.at-topnav-item:hover strong { color: var(--blue); }
.at-topnav-item span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.at-topnav-item.is-accent { background: #eff6ff; border-left-color: var(--blue); }
.at-topnav-item.is-accent strong { color: var(--blue); }
.at-topnav-item.is-accent:hover { background: #fff8f5; border-left-color: var(--orange); }
.at-topnav-item.is-accent:hover strong { color: var(--orange); }

/* ========================================================================= */
/* 5. СКВОЗНОЙ ПОДВАЛ САЙТА (.at-footer)                                     */
/* ========================================================================= */
footer.at-footer { background: var(--navy); color: #e2e8f0; margin-top: 32px; border-top: 4px solid var(--orange); font-size: 13.5px; line-height: 1.55; }
.at-footer-top { padding: 36px 0 24px; }
.at-footer-col { margin-bottom: 20px; }
.at-footer-head { color: #ff8a3d; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.at-footer-b2b-box { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.18); border-left: 4px solid var(--orange); border-radius: 8px; padding: 11px 14px; margin-bottom: 14px; }
.at-footer-b2b-lbl, .at-footer-phones-lbl { display: block; font-size: 11.5px; color: #cbd5e1; margin-bottom: 3px; }
.at-footer-phone-main { color: #fff; font-size: 20px; font-weight: 800; text-decoration: none !important; letter-spacing: -0.2px; }
.at-footer-phone-main:hover, .at-footer-phone:hover { color: #ff8a3d; }
.at-footer-phones, .at-footer-dir, .at-footer-req { list-style: none; padding: 0; margin: 0 0 14px; }
.at-footer-phones li { margin-bottom: 4px; }
.at-footer-phone { color: #fff; font-size: 15.5px; font-weight: 700; text-decoration: none !important; }
.at-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.at-footer-messengers a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-weight: 600; text-decoration: none !important; transition: border-color 0.15s ease, background 0.15s ease; }
.at-footer-messengers a:hover { border-color: var(--orange); background: var(--orange); }
.at-footer-dir li { padding: 0 0 9px 12px; margin-bottom: 9px; border-left: 2px solid var(--orange); }
.at-footer-dir li:last-child { margin-bottom: 6px; padding-bottom: 2px; }
.at-footer-dir-title { display: block; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.at-footer-dir-desc { display: block; color: #cbd5e1; font-size: 12.5px; line-height: 1.4; }
.at-footer-badge { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 6px; background: rgba(235, 97, 33, 0.22); border: 1px solid rgba(255, 138, 61, 0.55); color: #ffedd5; font-size: 12px; font-weight: 700; }
.at-footer-req li { margin-bottom: 6px; }
.at-footer-req strong { color: #fff; font-size: 14.5px; }
.at-footer-mail { color: #ff8a3d; font-weight: 700; text-decoration: underline; }
.at-footer-mail:hover { color: #fff; }
.at-footer-bottom { background: var(--navy-dark); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 15px 0; font-size: 12.5px; color: #cbd5e1; }
.at-footer-nav { list-style: none; padding: 0; margin: 0; text-align: right; }
.at-footer-nav li { display: inline-block; margin-left: 18px; }
.at-footer-nav a { color: #e2e8f0; text-decoration: none; }
.at-footer-nav a:hover { color: #ff8a3d; }

/* ========================================================================= */
/* 6. МОДАЛЬНЫЕ ОКНА ЗАКАЗА И ОБРАТНОГО ЗВОНКА (.at-modal)                    */
/* ========================================================================= */
.at-modal .modal-content { border-radius: 12px; border: none; overflow: hidden; }
.at-modal .modal-header { background: var(--navy); color: #fff; padding: 15px 20px; border-bottom: 3px solid var(--orange); }
.at-modal .modal-header .close { color: #fff; opacity: 0.85; font-size: 22px; }
.at-modal .modal-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0; }
.at-modal .modal-body { background: var(--bg); padding: 22px; }
.at-modal .form-group { text-align: left; margin-bottom: 13px; }
.at-modal label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.at-modal-divider { display: flex; align-items: center; margin: 16px 0 12px; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.at-modal-divider::before, .at-modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.at-modal-divider span { padding: 0 10px; }
.at-modal-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.4; }
.at-modal-note a { color: var(--blue); text-decoration: underline; }

/* ========================================================================= */
/* 7. АДАПТИВНАЯ ВЁРСТКА (ПЛАНШЕТЫ И СМАРТФОНЫ)                              */
/* ========================================================================= */
@media (max-width: 1199px) {
	.at-topnav-quick a { padding: 5px 7px; font-size: 12px; }
	.at-topnav-sep { display: none; }
}
@media (max-width: 991px) {
	.at-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.at-header-main { padding: 14px 16px; }
	.at-header-center { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; flex-basis: 100%; }
	.at-header-contacts { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
	.at-header-phones, .at-header-hours { margin-bottom: 0; }
	.at-topnav-quick { display: none; }
	.at-topnav-b2b-mob { display: inline-block; }
	.at-topnav-grid { grid-template-columns: 1fr; gap: 12px; }
	.at-topnav-panel { max-height: 75vh; overflow-y: auto; padding: 14px 16px; }
	.at-footer-nav { text-align: left; margin-top: 8px; }
	.at-footer-nav li { margin-left: 0; margin-right: 16px; }
}
@media (max-width: 768px) {
	h1, .h1 { font-size: 21px; }
	.at-box { padding: 16px; }
	.at-title { font-size: 19px; }
	.at-kpi-grid { grid-template-columns: 1fr; }
	.at-sticky-bar { flex-direction: column; align-items: stretch; border-radius: 0; margin-left: -15px; margin-right: -15px; }
	.at-sticky-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.at-sticky-actions .at-btn, .at-cta .at-btn, .altrans-cta-action .btn-altrans-cta { width: 100%; }
	.at-cta, .altrans-cta-card { flex-direction: column; align-items: stretch; padding: 16px; }
	.at-header-cta { width: 100%; justify-content: stretch; }
	.at-header-cta .at-btn { flex: 1; text-align: center; }
}