/* ATN Defense — home page. Palette and fonts taken from the live site (Qwery / military skin). */
:root {
	--bg: #d4d9d5;
	--bg-alt: #ccd2cd;
	--dark: #1f242e;
	--darker: #151515;
	--text: #707671;
	--green: #6b8f69;
	--green-hover: #5d7b5b;
	--border: #b9c0bb;
	--font-head: "Roboto Condensed", "Arial Narrow", sans-serif;
	--font-body: "Roboto", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.75 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h6 { margin: 0; font-family: var(--font-head); text-transform: uppercase; }
p { margin: 0 0 1.5em; }

.container { width: 100%; margin: 0 auto; padding: 0 70px; }
/* секции в контейнере 1300px по центру (как на настоящем сайте); шапка, слайдер и карточки идут на всю ширину */
.boxed { width: min(1300px, 100% - 140px); margin-left: auto; margin-right: auto; padding: 0 5px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
	display: inline-block;
	font: 500 14px/1 var(--font-head);
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: 20px 46px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}
.btn--dark { background: #0a0a1a; color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--dark); }
.btn--outline { border-color: #fff; color: #fff; padding: 18px 35px; }
.btn--outline:hover { background: #fff; color: var(--dark); }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.topbar { background: var(--darker); }
.topbar__inner { height: var(--topbar-h); padding: 5px 70px 0; display: flex; justify-content: flex-end; align-items: flex-start; gap: 5px; }
.btn-top { font: 400 14px/33px var(--font-head); color: #fff; padding: 0 20px; display: inline-flex; gap: 8px; align-items: center; }
.btn-top--login { background: #343434; }
.btn-top--signup { background: var(--green); }
.btn-top:hover { opacity: .85; }

.navbar { padding: 32px 70px; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 199px; height: auto; }

.menu { display: flex; gap: 34px; }
.menu > li { position: relative; }
.menu > li > a {
	display: block;
	font: 500 15px/1 var(--font-head);
	text-transform: uppercase;
	color: #fff;
	padding: 6px 0 8px;
	border-bottom: 2px solid transparent;
}
.menu > li.current > a, .menu > li > a:hover { border-bottom-color: #fff; }

.submenu {
	position: absolute; left: -20px; top: 100%;
	min-width: 260px; padding: 12px 0; margin-top: 12px;
	background: var(--darker);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 24px; color: #fff; font: 400 15px/1.3 var(--font-head); text-transform: none; }
.submenu a:hover { background: #343434; color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: #fff; margin: 7px 0; transition: transform .25s, opacity .25s; }

/* ---------- hero slider ----------
   Повторяет настройки Revolution Slider с настоящего сайта: fullwidth, сетка 1920x855 / 1440x800 / 778x740 / 480x680,
   слайды сменяются затуханием за 1 с, текст (заголовок, подзаголовок, кнопка) выезжает снизу на 50px
   по очереди (задержки 30 / 190 / 440 мс), смена слайда каждые 9 с. */
:root { --topbar-h: 44px; }
.hero { position: relative; margin-top: var(--topbar-h); width: 100%; aspect-ratio: 1920 / 800; background: var(--dark); overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	padding-bottom: 140px; text-align: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden; transition: opacity 1s, visibility 0s 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s; }
.hero__text { width: 100%; padding: 0 20px; color: #fff; }
.hero__text h1, .hero__text h2 {
	font: 500 76px/75px var(--font-head); letter-spacing: -3px; text-transform: uppercase;
	margin: 0 0 15px;
}
.hero__text p {
	font: 400 20px/25px var(--font-head); letter-spacing: -.4px; color: rgba(255, 255, 255, .9);
	text-align: center; margin: 0 0 40px;
}
.btn--hero {
	display: inline-block; background: var(--green); color: #fff;
	font: 500 15px/55px var(--font-head); text-transform: uppercase; padding: 0 49px;
	transition: background .3s;
}
.btn--hero:hover { background: var(--green-hover); }

.hero__slide.is-active .hero__text > * { animation: hero-in 1s cubic-bezier(.25, .1, .25, 1) both; }
.hero__slide.is-active .hero__text > :nth-child(1) { animation-delay: .03s; }
.hero__slide.is-active .hero__text > :nth-child(2) { animation-delay: .19s; }
.hero__slide.is-active .hero__text > :nth-child(3) { animation-delay: .44s; }
.hero__slide.is-active .hero__text > .btn--hero { animation-delay: .44s; }
/* слайд без подзаголовка: кнопка стоит сразу под заголовком */
.hero__text :is(h1, h2) + .btn--hero { margin-top: 25px; }
@keyframes hero-in { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hero__slide.is-active .hero__text > * { animation: none; }
	.hero__slide { transition: none; }
}

/* точки: кружок 5px + рамка 2px, расстояние 10px, 50px от низа */
.hero__dots { position: absolute; left: 0; right: 0; bottom: 50px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
	box-sizing: content-box; width: 5px; height: 5px; padding: 0; border: 2px solid #fff; border-radius: 50%;
	background: transparent; cursor: pointer; transition: background .3s ease;
}
.hero__dots button:hover, .hero__dots button.is-active { background: #fff; }

/* размеры по ширине экрана, как уровни Revolution Slider (desktop / notebook / tablet / mobile) */
@media (max-width: 1459px) {
	.hero { aspect-ratio: 1440 / 800; }
	.hero__slide { padding-bottom: 110px; }
	.hero__text h1, .hero__text h2 { font-size: 70px; line-height: 60px; }
	.hero__text p { line-height: 24px; letter-spacing: 0; margin-bottom: 35px; }
	.btn--hero { font-size: 17px; line-height: 53px; padding: 0 50px; font-weight: 400; }
}
@media (max-width: 1239px) {
	.hero { aspect-ratio: 778 / 740; }
	.hero__slide { padding-bottom: 90px; }
	.hero__text h1, .hero__text h2 { font-size: 56px; line-height: 52px; }
	.hero__text p { font-size: 18px; line-height: 25px; margin-bottom: 30px; }
	.btn--hero { font-size: 16px; line-height: 46px; padding: 0 40px; }
}
@media (max-width: 784px) {
	.hero { aspect-ratio: 480 / 680; }
	.hero__slide { padding-bottom: 80px; }
	.hero__text h1, .hero__text h2 { font-size: 35px; line-height: 34px; letter-spacing: -2px; }
	.hero__text p { margin-bottom: 25px; }
	.btn--hero { line-height: 42px; padding: 0 35px; }
}
@media (max-width: 668px) {
	.hero__dots button { width: 8px; height: 8px; }
}

/* ---------- shared typography ---------- */
.eyebrow { font: 500 14px/1 var(--font-head); text-transform: uppercase; color: var(--dark); letter-spacing: .04em; margin-bottom: 18px; }
.title { font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.04em; color: var(--dark); margin-bottom: 28px; }
p { text-align: justify; }

/* ---------- внутренние страницы: баннер с заголовком ----------
   Высота: строка меню (~104px) + отступы 105 сверху и 120 снизу, как в макете шапки настоящего сайта. */
.page-hero {
	margin-top: var(--topbar-h); padding: 209px 20px 120px; text-align: center; color: #fff;
	background: var(--dark) no-repeat top center / cover;
}
.page-hero h1 { font: 700 62px/72px var(--font-head); letter-spacing: -.04em; text-transform: uppercase; }
.page-content { padding: 150px 16px 150px 5px; }
.page-content p { text-align: left; margin-bottom: 27px; }
.page-content p, .page-content li { font-size: 16.26px; }
.page-content p:last-child { margin-bottom: 0; }

/* текстовые страницы: разделы с заголовком, абзацами, списками */
.text-section + .text-section { margin-top: 57px; }
.text-section h2 { font: 700 24px/1.2 var(--font-head); letter-spacing: -.04em; text-transform: uppercase; color: var(--dark); margin-bottom: 18px; }
.rich-group + .rich-group { margin-top: 30px; }
.rich ul, .rich ol { margin: 0 0 27px; padding-left: 26px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich h3 { font: 700 32px/1.2 var(--font-head); letter-spacing: -.04em; text-transform: uppercase; color: var(--dark); margin: 39px 0 17px; }
/* заголовок, за которым идёт список (Company Polices): больше воздуха; за которым идёт абзац (политика данных): меньше */
.rich h3:has(+ ul), .rich h3:has(+ ol) { margin: 57px 0 29px; }
.rich-group > ol > li { margin-bottom: 21px; }
.rich li > ul, .rich li > ol { margin: 17px 0 16px; padding-left: 24px; }
.rich li > ul { list-style: circle; }
.rich li > p { margin: 0 0 8px; }
.rich li > p:last-child { margin-bottom: 0; }
.rich p:last-child, .rich ul:last-child, .rich ol:last-child { margin-bottom: 0; }
.rich-sub strong { font-weight: 700; }

/* таблицы в rich-тексте (specs/pages.md §14): обёртка прокручивается сама, страница не расширяется */
.rich-table { max-width: 100%; overflow-x: auto; margin: 0 0 27px; }
.rich-table table { border-collapse: collapse; font-size: 15px; line-height: 1.5; color: var(--dark); }
.rich-table th { background: var(--green); color: #fff; font: 600 14px/1.3 var(--font-head); text-align: left; vertical-align: top; padding: 12px 16px; border: 1px solid rgba(0, 0, 0, .08); }
.rich-table td { text-align: left; vertical-align: top; padding: 10px 16px; border: 1px solid var(--border); overflow-wrap: break-word; }
.rich-table tr:nth-child(even) td { background: rgba(255, 255, 255, .25); }
.rich-table:last-child { margin-bottom: 0; }
.rich li > .rich-table { margin: 17px 0 16px; }
.landing__text .rich-table { margin-bottom: 1.5em; }
.landing__text .rich-table:last-child { margin-bottom: 0; }
.panel.rich .rich-table { margin-bottom: 10px; }
.panel.rich .rich-table:last-child { margin-bottom: 0; }

/* ---------- страница-заставка (Categories): линия, крупный заголовок, узкая колонка текста ---------- */
.landing { padding: 306px 0 238px; }
.landing__inner { border-top: 1px solid var(--bd, #c0c8c2); padding-top: 72px; }
.landing .title { font-size: 56px; margin-bottom: 28px; }
.landing__text { max-width: 1010px; }
.landing__text p { text-align: left; }

/* карточки категорий на странице Categories: сетка как у товаров, кнопка как "View More Items" */
.cat-cards { padding: 100px 0 150px; }
.cat-cards__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; }
.cat-card__image { display: block; width: 100%; aspect-ratio: 630 / 473; overflow: hidden; background: rgba(255, 255, 255, .25); }
.cat-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-card__image img { transform: scale(1.03); }
.cat-card__title { font: 700 24px/1.2 var(--font-head); letter-spacing: -.02em; margin: 26px 0 0; color: var(--dark); }
.cat-card__title a:hover { color: var(--green); }
.cat-card__link { margin-top: auto; padding-left: 40px; padding-right: 40px; }
.cat-card__title { margin-bottom: 24px; }
@media (max-width: 960px) { .cat-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-cards { padding: 60px 0 80px; } .cat-cards__list { grid-template-columns: 1fr; } }

/* ---------- каталог: страница категории товаров ---------- */
.shop { padding-top: 58px; }
.shop-search { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 20px; background: rgba(255, 255, 255, .35); margin-bottom: 40px; }
.shop-search svg { flex: none; width: 22px; height: 22px; color: var(--dark); }
.shop-search input {
	flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
	font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: var(--dark);
}
.shop-search input::placeholder { color: var(--dark); opacity: 1; }
.shop-search input::-webkit-search-cancel-button { display: none; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.product[hidden] { display: none; }
.product__image { display: block; aspect-ratio: 630 / 473; overflow: hidden; }
.product__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product__image img { transform: scale(1.03); }
.product__cat { margin-top: 26px; font: 400 13px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .02em; }
.product__cat a:hover { color: var(--green); }
.product__name { font: 700 24px/1.2 var(--font-head); letter-spacing: -.02em; margin: 12px 0 0; color: var(--dark); }
.product__name a:hover { color: var(--green); }
.product__summary { font-size: 16.26px; line-height: 1.75; text-align: left; margin: 16px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.load-more-wrap { text-align: center; margin-top: 50px; }
/* каталог без нижнего заголовка: после кнопки сразу футер */
.shop:last-child { padding-bottom: 127px; }
.shop:last-child .shop-search { margin-bottom: 116px; }
.shop:last-child .load-more { padding-left: 66px; padding-right: 66px; }
.load-more { display: inline-block; background: var(--green); color: #fff; font: 500 14px/1 var(--font-head); text-transform: uppercase; padding: 21px 62px 20px; transition: background .25s; }
.load-more:hover { background: var(--green-hover); }
.load-more.is-loading { opacity: .6; pointer-events: none; }
.shop-empty { margin: 30px 0 0; text-align: left; }
.landing.landing--outro { padding: 0 0 150px; margin-top: 198px; }
.landing--outro .title { margin-bottom: 0; }
/* после кнопки View More Items воздуха меньше */
.shop:has(.load-more-wrap) + .landing.landing--outro { margin-top: 148px; }

/* ---------- страница товара ---------- */
.product-detail { padding-top: 122px; padding-bottom: 130px; }
.gallery { display: flex; gap: 14px; align-items: flex-start; }
.gallery__thumbs { flex: none; width: 130px; display: flex; flex-direction: column; gap: 12px; }
.gallery__thumb { display: block; width: 130px; height: 106px; padding: 0; border: 1px solid transparent; background: rgba(255, 255, 255, .25); cursor: pointer; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--dark); }
.gallery__main { flex: 1; min-width: 0; height: 720px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); cursor: zoom-in; overflow: hidden; }
.gallery__main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-request { text-align: center; margin-top: 40px; }
.btn-brochure { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; font: 600 13px/1 var(--font-head); text-transform: uppercase; padding: 21px 30px 20px; transition: background .25s; }
.btn-brochure:hover { background: var(--green); }
.product-tabs { margin-top: 62px; }
.tabs { display: flex; flex-wrap: wrap; gap: 3px; }
.tab { border: 0; cursor: pointer; background: rgba(0, 0, 0, .06); color: var(--text); font: 600 16px/1 var(--font-head); text-transform: uppercase; padding: 24px 46px; transition: background .25s, color .25s; }
.tab:hover { background: rgba(0, 0, 0, .1); }
.tab.is-active { background: var(--green); color: #fff; }
.panel { padding-top: 58px; }
.panel[hidden] { display: none; }
.panel.rich p, .panel.rich li { color: var(--dark); font-size: 16.26px; text-align: left; }
.panel.rich p { margin-bottom: 10px; }
.panel.rich ul, .panel.rich ol { max-width: 890px; }
.panel.rich ol > li { margin-bottom: 0; }
.panel.rich li ul li::before { background: var(--dark); }
.panel.rich ul { list-style: none; padding-left: 26px; margin: 18px 0 0; }
.panel.rich ul li { position: relative; margin-bottom: 19.5px; }
.panel.rich ul li::before { content: ""; position: absolute; left: -17px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #f02d00; }
.panel.rich h6 { font: 700 18px/1.3 var(--font-head); text-transform: none; color: var(--dark); margin: 24px 0 8px; }
.panel.rich h6:first-child { margin-top: 0; }
.panel__title { font: 700 30px/1.2 var(--font-head); letter-spacing: -.02em; text-transform: uppercase; color: var(--dark); margin: 0 0 24px; }
.specs-wrap { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: var(--dark); }
.specs th { background: var(--green); color: #fff; font: 600 14px/1.3 var(--font-head); text-transform: uppercase; text-align: center; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .08); }
.specs td { padding: 12px 16px; border: 1px solid var(--border); vertical-align: top; }
.specs tr:nth-child(even) td { background: rgba(255, 255, 255, .25); }
.specs td:first-child { font-weight: 500; width: 28%; }
.specs-note { margin: 14px 0 0; font-size: 14px; text-align: left; }
.manual iframe { display: block; width: 100%; height: 820px; border: 1px solid var(--border); background: #fff; }
.manual__link { margin: 14px 0 0; text-align: left; font-size: 15px; }
.manual__link a { color: var(--green); text-decoration: underline; }
.manual__link a:hover { color: var(--green-hover); }
.gate { background: rgba(0, 0, 0, .05); padding: 78px 20px 86px; text-align: center; }
.gate p { max-width: 500px; margin: 0 auto 24px; text-align: center; font: 600 18px/1.3 var(--font-head); text-transform: uppercase; color: var(--dark); }
.gate__buttons { display: flex; justify-content: center; gap: 3px; }
.gate__btn { display: inline-block; color: #fff; font: 600 12px/1 var(--font-head); text-transform: uppercase; padding: 18px 28px; transition: background .25s; }
.gate__btn--login { background: var(--green); }
.gate__btn--login:hover { background: var(--green-hover); }
.gate__btn--signup { background: var(--dark); }
.gate__btn--signup:hover { background: var(--green); }

/* ---------- страница Contact Us ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 732fr) minmax(0, 498fr); gap: 0 60px; padding-top: 98px; padding-bottom: 142px; align-items: start; }
.contact.contact--solo { grid-template-columns: minmax(0, 1fr); padding-top: 148px; padding-bottom: 156px; }
.contact--solo .form-submit { margin-top: 82px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { position: relative; min-height: 66px; }
.field--wide { grid-column: 1 / -1; margin-bottom: 20px; }
.field input, .field textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; border-radius: 0;
	font: 400 16px/1.4 var(--font-body); color: var(--dark); padding: 14px 0 12px; outline: none; transition: border-color .25s;
}
.field textarea { resize: none; min-height: 48px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text); opacity: 1; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--green); }
.field [aria-invalid="true"] { border-bottom-color: #c0392b; }
.field__error { display: block; min-height: 0; font-size: 13px; line-height: 1.3; color: #c0392b; padding-top: 4px; }
.field__error:empty { display: none; }
.field__error--accept { margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.btn-send {
	display: inline-flex; align-items: center; gap: 12px; background: var(--green); color: #fff; border: 0; cursor: pointer;
	font: 500 14px/1 var(--font-head); text-transform: uppercase; padding: 20px 31px; transition: background .25s;
}
.btn-send:hover { background: var(--green-hover); }
.btn-send[disabled] { opacity: .6; cursor: default; }
.accept { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.accept input { width: 14px; height: 14px; margin: 0; accent-color: var(--green); }
.accept a { text-decoration: underline; }
.accept a:hover { color: var(--green); }
.form-status { margin-top: 20px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green-hover); }
.form-status.is-error { color: #c0392b; }
.contact__info h3 { font: 700 36px/1.1 var(--font-head); letter-spacing: -.04em; text-transform: uppercase; color: var(--dark); margin: 0 0 46px; }
.contact__info p { text-align: left; margin-bottom: 28px; }
.contact__info .label { color: var(--dark); }
.contact__info a { color: var(--green); }
.contact__info a:hover { color: var(--green-hover); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; padding-top: 106px; padding-bottom: 0; }
.about__images { display: flex; gap: 30px; align-items: flex-start; }
.about__col { width: 300px; display: flex; flex-direction: column; gap: 30px; }
.about__col--left { margin-top: 125px; }
.about__col--right { margin-top: 0; }
.about__text { padding: 0 0 0 127px; }
.about__text .btn { margin-top: 12px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 150px auto 0; padding-left: 70px; padding-right: 70px; }
.card {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
	min-height: max(26vw, 300px); text-align: center; color: #fff;
	background-size: cover; background-position: center;
}
.card > * { position: relative; }
.card__title { font: 600 clamp(28px, 2.5vw, 36px)/1.1 var(--font-head); letter-spacing: -.04em; text-transform: uppercase; }

/* ---------- competence ---------- */
.competence { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 150px; }
.competence__images { position: relative; height: 740px; }
.competence__img1 { position: absolute; left: 0; top: 0; width: 523px; }
.competence__img2 { position: absolute; left: 148px; top: 232px; width: 482px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.competence__text { padding-left: 114px; }

/* ---------- design & development ---------- */
.design { text-align: center; margin-top: 150px; }
.design .title { margin-bottom: 0; }
.design p { text-align: center; }

/* ---------- NATO ---------- */
.nato { display: grid; grid-template-columns: 577fr 630fr; align-items: center; gap: 83px; margin-top: 205px; }
.nato__text .title { font-size: clamp(36px, 4vw, 52px); }
.nato__image img { width: 100%; }

/* ---------- certificates ---------- */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 80px; margin-bottom: 120px; }
.cert { flex: 0 0 calc((100% - 56px) / 5); }
.cert img { display: block; width: 100%; aspect-ratio: 713 / 1024; object-fit: cover; object-position: top; height: auto; transition: opacity .25s; }
.cert:hover img { opacity: .85; }

/* ---------- footer ----------
   Контейнер 1300px по центру; колонки 455 / 335 / остальное. Карта: 638x405px, левый край на 65.3% ширины, 69px от верха. */
.site-footer { position: relative; background: var(--bg-alt); padding: 105px 0 41px; overflow: hidden; }
.site-footer::after {
	content: ""; position: absolute; left: 65.3%; top: 69px; width: 638px; height: 405px;
	background: url("../img/map.svg") no-repeat 0 0 / 100% 100%; pointer-events: none;
}
.footer__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 35fr 25.8fr 39.2fr; gap: 0; width: min(1300px, 100% - 140px); margin: 0 auto; padding: 0 5px; }
.footer__logo img { width: 199px; }
.footer__badges { display: flex; gap: 9px; margin: 125px 0 62px; }
.footer__badges img { height: 103px; width: auto; }
.footer__copy { font-size: 15px; text-align: left; margin: 0; }
.footer__col h6 { font: 600 18px/1.2 var(--font-head); color: var(--dark); margin: 0 0 22px; }
.footer__col p { font-size: 16px; line-height: 1.65; text-align: left; margin-bottom: 22px; }
.footer__col .label { color: var(--dark); }
.footer__col a:hover { color: var(--green); }
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: var(--text); }
.footer__links a.is-current, .footer__links a:hover { color: var(--green); }

/* кнопка "наверх" */
.to-top {
	position: fixed; right: 30px; bottom: 30px; z-index: 40; width: 60px; height: 60px;
	display: flex; align-items: center; justify-content: center;
	background: var(--green); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .3s, transform .3s, visibility .3s, background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-hover); }

/* ---------- login modal & lightbox ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); padding: 20px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal__box { position: relative; background: #fff; width: 100%; max-width: 420px; padding: 36px 36px 32px; color: var(--text); }
.modal__close, .lightbox__close { position: absolute; top: 8px; right: 14px; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--dark); }
.lightbox__close { color: #fff; top: 16px; right: 24px; font-size: 40px; }
.modal__tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.modal__tabs button { background: none; border: 0; padding: 0 0 12px; font: 600 18px/1 var(--font-head); text-transform: uppercase; color: var(--text); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.modal__tabs button.is-active { color: var(--dark); border-bottom-color: var(--green); }
.modal__form { display: none; flex-direction: column; gap: 16px; }
.modal__form.is-active { display: flex; }
.modal__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.modal__form input[type=text], .modal__form input[type=email], .modal__form input[type=password] { padding: 12px 14px; border: 1px solid var(--border); font: inherit; background: #f6f6f6; }
.modal__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.modal__row .check { flex-direction: row; align-items: center; gap: 8px; }
.modal__title { font: 700 28px/1.2 var(--font-head); letter-spacing: -.02em; text-transform: uppercase; color: var(--dark); margin: 0 0 22px; }
.modal__msg { min-height: 0; font-size: 14px; line-height: 1.4; }
.modal__msg:empty { display: none; }
.modal__msg.is-ok { color: var(--green-hover); }
.modal__msg.is-error { color: #c0392b; }
.modal__hint { margin: 0; font-size: 13px; text-align: left; }
.modal__hint a { text-decoration: underline; }
.modal__form .accept { flex-direction: row; align-items: center; gap: 10px; }
.modal__form .accept input { width: 14px; height: 14px; padding: 0; margin: 0; }
.modal__row--submit { justify-content: flex-start; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.modal__form input[aria-invalid="true"] { border-color: #c0392b; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logout-form { margin: 0; }
button.btn-top { border: 0; cursor: pointer; font-family: var(--font-head); }
.lightbox img { max-width: 92vw; max-height: 92vh; width: auto; height: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
	.page-hero { padding: 154px 20px 90px; }
	.page-hero h1 { font-size: 48px; line-height: 52px; }
	.page-content { padding-top: 100px; padding-bottom: 100px; }
}

@media (max-width: 1200px) {
	.container, .navbar, .topbar__inner { padding-left: 40px; padding-right: 40px; }
	.boxed { width: calc(100% - 80px); }
	.about__text { padding-left: 60px; }
	.competence__text { padding-left: 40px; }
	.competence__images { transform: scale(.85); transform-origin: top left; }
}

@media (max-width: 960px) {
	.product-detail { padding-top: 80px; padding-bottom: 90px; }
	.gallery { flex-direction: column-reverse; }
	.gallery__thumbs { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.gallery__thumb { width: 88px; height: 72px; }
	.gallery__main { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 560px; }
	.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.landing.landing--outro, .shop:has(.load-more-wrap) + .landing.landing--outro { margin-top: 100px; padding: 0 0 100px; }
	.landing { padding: 150px 0 120px; }
	.landing__inner { padding-top: 50px; }
	.landing .title { font-size: 42px; }
	.contact { grid-template-columns: 1fr; gap: 50px; padding-top: 80px; padding-bottom: 80px; }
	.nav-toggle { display: block; position: relative; z-index: 60; padding: 4px 0; }
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
		background: var(--darker); padding: 90px 28px 28px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s; z-index: 55;
	}
	.nav.is-open { transform: none; }
	.menu { flex-direction: column; gap: 4px; }
	.menu > li > a { padding: 12px 0; border: 0; font-size: 18px; }
	.submenu { position: static; opacity: 1; visibility: visible; transform: none; margin: 0 0 8px; padding: 0 0 0 14px; background: none; min-width: 0; }
	.submenu a { padding: 6px 0; color: #b9c0bb; }
	body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	.about, .competence, .nato { grid-template-columns: 1fr; }
	.about { margin-top: 0; padding-top: 60px; gap: 40px; }
	.about__images { justify-content: center; }
	.about__text, .competence__text { padding: 0; }
	.cards { grid-template-columns: 1fr; margin-top: 80px; }
	.competence { margin-top: 80px; gap: 40px; }
	/* фото Competence остаются внахлёст, как на десктопе, только масштабируются по ширине */
	.competence__images { transform: none; height: auto; aspect-ratio: 350 / 343; width: min(100%, 560px); margin: 0 auto; }
	.competence__img1 { width: 70%; }
	.competence__img2 { left: 34%; top: 30%; width: 66%; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
	.design { margin-top: 90px; }
	.nato { margin-top: 90px; gap: 30px; }
	.cert { flex-basis: calc((100% - 28px) / 3); }
	.footer__inner { grid-template-columns: 1fr 1fr; gap: 40px 20px; width: calc(100% - 80px); padding: 0; }
	.footer__brand { grid-column: 1 / -1; }
	.footer__badges { margin: 32px 0; }
	.site-footer::after { left: auto; right: -200px; top: auto; bottom: 0; opacity: .6; }
}

@media (max-width: 600px) {
	.container, .navbar, .topbar__inner { padding-left: 20px; padding-right: 20px; }
	.boxed { width: calc(100% - 40px); padding: 0; }
	.navbar { padding-top: 17px; padding-bottom: 17px; }
	.logo img { width: 150px; }
	.hero__text { padding: 0 20px; }

	/* типографика как на мобильной версии живого сайта */
	.eyebrow { margin-bottom: 10px; }
	.title { font-size: 24px; line-height: 1.1; margin-bottom: 10px; }
	.nato__text .title { font-size: 24px; }
	.nl { display: none; }
	p { font-size: 15px; line-height: 23px; margin-bottom: 20px; }
	.btn { padding: 16px 31px; }

	.about { padding-top: 60px; }
	.about__images { gap: 20px; }
	.about__col { width: calc(50% - 10px); gap: 20px; }
	.about__col--left { margin-top: 71px; }
	.about__col img { width: 100%; height: auto; }

	.cards { gap: 18px; margin-top: 60px; }
	.card { min-height: 0; padding: 64px 20px; gap: 14px; }
	.card__title { font-size: 24px; line-height: 1; }
	.btn--outline { padding: 16px 31px; }

	.competence { margin-top: 78px; gap: 37px; }
	.design { margin-top: 45px; }
	.nato { margin-top: 80px; }
	.certs { margin-top: 60px; gap: 14px; }
	.cert { flex-basis: calc((100% - 14px) / 2); }

	/* футер: одна колонка, порядок как на живом сайте: логотип, значки, контакты, ссылки, копирайт */
	.site-footer { padding: 55px 0 40px; }
	.footer__inner { grid-template-columns: 1fr; width: calc(100% - 40px); gap: 0; padding: 0; }
	.footer__brand { display: contents; }
	.footer__logo { order: 1; }
	.footer__badges { order: 2; margin: 27px 0 36px; gap: 8px; }
	.footer__badges img { height: auto; width: 25.7%; }
	.footer__badges img:nth-child(3) { width: 37.7%; }
	.footer__inner > .footer__col:not(.footer__links) { order: 3; }
	.footer__links { order: 4; margin-top: 32px; }
	.footer__copy { order: 5; margin-top: 26px; }
	.footer__col h6 { font-size: 17px; margin-bottom: 17px; }
	.footer__col p { font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
	.footer__col p:first-of-type { margin-bottom: 14px; }
	.footer__links li { margin-bottom: 9px; font-size: 15px; }
	.footer__copy { font-size: 15px; }
	.site-footer::after { left: auto; top: auto; right: 0; bottom: 14px; width: 290px; height: 184px; opacity: 1; }

	.to-top { width: 50px; height: 50px; right: 15px; bottom: 20px; }

	.contact { padding-top: 97px; padding-bottom: 80px; gap: 40px; }
	.form-grid { grid-template-columns: 1fr; }
	.field { min-height: 57px; }
	.contact__info h3 { font-size: 26px; margin-bottom: 38px; }
	.contact__info p { margin-bottom: 22px; }
	.form-submit { margin-top: 26px; gap: 16px; }

	.landing { padding: 141px 0 55px; }
	.landing__inner { padding-top: 40px; }
	.landing .title { font-size: 22px; line-height: 24px; margin-bottom: 16px; }
	.landing__text p { font-size: 14.2px; line-height: 23px; }
	.landing__text .rich-table { margin-bottom: 20px; }

	.shop { padding-top: 56px; }
	.shop-search { margin-bottom: 40px; }
	.products { grid-template-columns: 1fr; gap: 24px; }
	.product__cat { margin-top: 22px; font-size: 14px; }
	.product__name { font-size: 24px; line-height: 1.3; letter-spacing: 0; margin-top: 10px; }
	.product__summary { font-size: 15px; line-height: 23px; margin-top: 10px; }
	.landing.landing--outro { margin-top: 138px; padding: 0 0 80px; }
	.shop:has(.load-more-wrap) + .landing.landing--outro { margin-top: 150px; }
	.landing--outro .landing__inner { padding-top: 72px; }
	.load-more { padding: 15px 40px 14px; }
	.load-more-wrap { margin-top: 40px; }

	.product-detail { padding-top: 50px; padding-bottom: 60px; }
	.gallery__main { aspect-ratio: 350 / 300; max-height: none; }
	.gallery__thumbs { flex-wrap: nowrap; gap: 6px; }
	.gallery__thumb { flex: 1; width: auto; height: 78px; }
	.product-request { margin-top: 24px; }
	.btn-brochure { font-size: 15px; padding: 18px 28px 17px; }
	.product-tabs { margin-top: 40px; }
	.tabs { gap: 3px; }
	.tab { padding: 18px 16px; font-size: 16px; }
	.panel { padding-top: 14px; }
	.panel.rich ul { margin-top: 10px; padding-left: 18px; }
	.panel.rich ul li { margin-bottom: 8px; }
	.panel.rich p, .panel.rich li { font-size: 14.2px; }
	.panel__title { font-size: 22px; }
	.specs { font-size: 13.5px; }
	.specs th { font-size: 12px; padding: 10px 8px; }
	.specs td { padding: 9px 8px; }
	.manual iframe { height: 520px; }
	.gate { padding: 50px 16px 56px; }
	.gate p { font-size: 15px; }

	/* страница Company и другие внутренние */
	.page-hero { padding: 104px 20px 60px; }
	.page-hero h1 { font-size: 30px; line-height: 32px; }
	.page-content { padding: 60px 0; }
	.page-content p, .page-content li { font-size: 14.2px; }
	.page-content li { line-height: 23px; }
	.page-content p { margin-bottom: 15px; }
	.text-section + .text-section { margin-top: 29px; }
	.text-section h2 { font-size: 18px; margin-bottom: 9px; }
	.rich-group + .rich-group { margin-top: 15px; }
	.rich ul, .rich ol { margin-bottom: 15px; padding-left: 23px; }
	.rich h3, .rich h3:has(+ ul), .rich h3:has(+ ol) { font-size: 22.4px; margin: 26px 0 8px; }
	.rich li > ul, .rich li > ol { margin: 15px 0; padding-left: 22px; }
	.rich-group > ol > li { margin-bottom: 19px; }
	.rich p:last-child, .rich ul:last-child, .rich ol:last-child { margin-bottom: 0; }
	.rich-table { margin-bottom: 15px; }
	.rich-table table { font-size: 13.5px; }
	.rich-table th { font-size: 12px; padding: 10px 8px; }
	.rich-table td { padding: 9px 8px; }
	.rich li > .rich-table { margin: 15px 0; }
	.rich-table:last-child { margin-bottom: 0; }
	.page-content p:last-child { margin-bottom: 0; }
}

/* ---------- /forgot-password/ и /set-password/ ---------- */
.contact__form.access { max-width: 560px; }
.access__intro, .access__login { text-align: left; font-size: 15px; line-height: 1.5; margin-bottom: 22px; }
.access .form-submit { margin-top: 30px; }
