/* Заводской Тюнинг — графит и сталь */
:root {
	--bg: #121417;
	--bg-2: #181b1f;
	--panel: #1e2126;
	--panel-2: #262a30;
	--line: rgba(214, 220, 228, .12);
	--line-2: rgba(214, 220, 228, .22);
	--text: #e9ecef;
	--muted: #9aa2ac;
	--steel: linear-gradient(135deg, #f4f6f8 0%, #a9b0b8 18%, #e9edf1 36%, #7b838c 55%, #d6dbe0 72%, #8c939b 88%, #eef1f4 100%);
	--steel-btn: linear-gradient(180deg, #eef1f4 0%, #c3c9cf 45%, #9ba2aa 55%, #d4d9de 100%);
	--brushed: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
	--radius: 14px;
	--shadow: 0 20px 50px rgba(0, 0, 0, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #cfd5db; outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }

/* Металлический текст с бегущим бликом */
.metal-text {
	background: var(--steel);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: metal-flow 7s linear infinite;
}
@keyframes metal-flow { to { background-position: -250% 0; } }

/* ---------- Кнопки ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-weight: 700;
	letter-spacing: .02em;
	overflow: hidden;
	isolation: isolate;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn span { position: relative; z-index: 2; }
.btn::after {
	content: "";
	position: absolute;
	inset: -50% auto -50% -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
	transform: skewX(-20deg);
	z-index: 1;
	transition: left .7s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--metal { background: var(--steel-btn); color: #15171a; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(0,0,0,.35); }
.btn--metal:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.35); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #cfd5db; }
.btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); border-color: #cfd5db; background: rgba(255,255,255,.05); }

/* ---------- Шапка ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.hdr.is-scrolled { background: rgba(18, 20, 23, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 40px; height: 40px; color: #cdd2d8; animation: rotor 18s linear infinite; }
.logo__mark svg { width: 100%; height: 100%; }
@keyframes rotor { to { transform: rotate(360deg); } }
.logo__text { font-weight: 900; text-transform: uppercase; font-size: 14px; line-height: 1.05; letter-spacing: .08em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.hdr__contacts { display: flex; align-items: center; gap: 10px; }
.hdr__phone, .hdr__tg { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.hdr__phone:hover, .hdr__tg:hover { border-color: #cfd5db; background: #2e333a; transform: translateY(-2px); }
.hdr__phone svg, .hdr__tg svg { width: 18px; height: 18px; fill: #cdd2d8; }
.hdr__phone { display: none; }
.hdr__phones { display: flex; flex-direction: column; line-height: 1.25; }
.hdr__phones a { font-weight: 700; font-size: 15px; white-space: nowrap; transition: color .2s; }
.hdr__phones a:hover { color: #fff; }
.hdr__phones .hdr__mail { font-weight: 500; font-size: 12px; color: var(--muted); }
.nav__contacts { display: none; }
.ftr__contacts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.ftr__contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.ftr__contacts a:hover { color: #fff; }
.ftr__contacts svg { width: 16px; height: 16px; fill: #cdd2d8; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.cart-btn:hover { border-color: #cfd5db; }
.cart-btn svg { width: 22px; height: 22px; fill: var(--text); }
.cart-btn__count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--steel-btn); color: #111; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cart-btn.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: none; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: -40px; background: linear-gradient(90deg, rgba(14,16,18,.96) 0%, rgba(14,16,18,.82) 45%, rgba(14,16,18,.45) 100%), var(--hero) center / cover no-repeat; filter: grayscale(.85) contrast(1.05); transform: scale(1.06); animation: hero-zoom 18s ease-in-out infinite alternate; }
@keyframes hero-zoom { to { transform: scale(1.14) translate(-1%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--brushed); opacity: .45; pointer-events: none; }
.hero__sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%); background-size: 300% 100%; animation: sheen 9s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.hero__in { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--steel); }
.hero__title { font-size: clamp(36px, 6.4vw, 78px); line-height: 1.02; margin: 0 0 14px; font-weight: 900; letter-spacing: -.02em; max-width: 900px; }
.hero__sub { font-size: clamp(18px, 2.2vw, 24px); color: #c3c9cf; margin: 0 0 28px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hero__list li::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--steel-btn); box-shadow: 0 0 12px rgba(255,255,255,.35); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__models { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #cfd5db; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- О компании ---------- */
.about { padding: 100px 0 60px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.feats { list-style: none; margin: 0 0 80px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.feat::before { content: ""; position: absolute; inset: 0; background: var(--brushed); opacity: .8; pointer-events: none; }
.feat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feat__n { display: block; font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 14px; }
.feat b { position: relative; font-size: 17px; line-height: 1.3; }
.about__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.about__text { color: #c3c9cf; }
.about__text p { margin: 0 0 16px; }
.about__text b { color: var(--text); }

/* ---------- Каталог ---------- */
.cat { padding: 70px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.cat:nth-child(even) { background: var(--bg); }
.cat__head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 36px; }
.cat__idx { font-size: 56px; font-weight: 900; line-height: .9; flex: none; }
.cat__descr { margin: 0; color: var(--muted); max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border: 1px solid var(--line);
	overflow: hidden;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--steel); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 3; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: .7; }
.card__media { position: relative; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #e7eaed; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__alt { opacity: 1; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; transition: background-position 1s var(--ease); pointer-events: none; }
.card:hover .card__media::after { background-position: -50% 0; }
.card__more { position: absolute; left: 50%; bottom: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(18,20,23,.82); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); transform: translate(-50%, 12px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; z-index: 2; }
.card:hover .card__more { transform: translate(-50%, 0); opacity: 1; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.card__short { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.card__short strong { color: var(--text); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 24px; font-weight: 900; white-space: nowrap; }
.price--lg { font-size: 32px; }

/* ---------- Как приобрести ---------- */
.how { padding: 90px 0; background: linear-gradient(180deg, var(--bg) 0%, #1a1d21 100%); border-top: 1px solid var(--line); }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 22px; }
.step { position: relative; padding: 26px 24px 22px 76px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step p { margin: 0; color: #c3c9cf; }
.step__n { position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #15171a; background: var(--steel-btn); }
.how__note { color: var(--muted); margin: 0; }

/* ---------- Контакты ---------- */
.contacts { padding: 90px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contacts__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: stretch; }
.contacts__phone { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin: 8px 0 6px; }
.contacts__addr { color: #c3c9cf; margin: 0 0 14px; font-size: 18px; }
.contacts__mail { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 24px; }
.contacts__mail svg { width: 20px; height: 20px; fill: currentColor; }
.contacts__mail:hover { color: var(--text); }
.socials { display: flex; gap: 12px; }
.socials a { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.socials a:hover { transform: translateY(-3px); border-color: #cfd5db; background: #2e333a; }
.socials svg { width: 24px; height: 24px; fill: #dfe3e7; }
.contacts__map { min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.contacts__map:hover { filter: grayscale(.2); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.ftr { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.ftr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr a:hover { color: var(--text); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Окно товара ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 100; }
.modal__overlay, .drawer__overlay { position: absolute; inset: 0; background: rgba(6, 7, 9, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal__overlay, .drawer.is-open .drawer__overlay { opacity: 1; }
.modal__box { position: relative; width: min(1120px, 100% - 32px); max-height: calc(100% - 48px); margin: 24px auto; background: linear-gradient(180deg, #23272d, #1b1e22); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 100px rgba(0,0,0,.6); overflow: auto; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .4s var(--ease), transform .4s var(--ease); overscroll-behavior: contain; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(18,20,23,.7); font-size: 26px; line-height: 1; transition: transform .3s var(--ease), border-color .3s; }
.modal__close:hover { transform: rotate(90deg); border-color: #cfd5db; }
.pm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pm__gallery { position: sticky; top: 0; align-self: start; padding: 24px; min-width: 0; }
.pm__info { min-width: 0; }
.pm__main { position: relative; aspect-ratio: 1; border-radius: 14px; background: #e9ecef; overflow: hidden; }
.pm__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade-in .45s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: scale(1.02); } }
.pm__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(18,20,23,.75); color: #fff; font-size: 26px; line-height: 1; opacity: 0; transition: opacity .3s, transform .3s; }
.pm__main:hover .pm__nav { opacity: 1; }
.pm__nav--prev { left: 12px; }
.pm__nav--next { right: 12px; }
.pm__counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(18,20,23,.75); color: #fff; font-size: 12px; font-weight: 700; }
.pm__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pm__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: #e9ecef; overflow: hidden; opacity: .55; transition: opacity .2s, border-color .2s; }
.pm__thumbs button.is-active, .pm__thumbs button:hover { opacity: 1; border-color: #cfd5db; }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm__info { padding: 34px 34px 34px 10px; }
.pm__title { margin: 0 50px 10px 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 900; }
.pm__short { color: var(--muted); margin-bottom: 20px; }
.pm__short strong { color: var(--text); }
.pm__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: rgba(255,255,255,.04); font-size: 20px; transition: background .2s; }
.qty button:hover { background: rgba(255,255,255,.1); }
.qty input { width: 44px; height: 44px; border: 0; background: none; color: var(--text); text-align: center; font: 700 16px var(--font); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm__descr { margin-top: 26px; color: #c3c9cf; font-size: 15px; }
.pm__descr h4 { margin: 22px 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; }
.pm__descr h4::before { content: ""; width: 18px; height: 2px; background: var(--steel); }
.pm__descr p { margin: 0 0 10px; }
.pm__descr strong { color: var(--text); }

/* Формы */
.oneclick { margin-top: 16px; padding: 20px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); animation: slide-down .45s var(--ease); }
@keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } }
.oneclick__title { margin: 0 0 14px; font-weight: 700; }
.field { position: relative; margin-bottom: 12px; }
.field input, .field textarea { width: 100%; padding: 22px 14px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: #15181b; color: var(--text); font: 16px var(--font); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field label { position: absolute; left: 15px; top: 15px; color: var(--muted); pointer-events: none; transition: transform .2s var(--ease), font-size .2s, top .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: #cfd5db; box-shadow: 0 0 0 3px rgba(207,213,219,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 12px; }
.field.is-error input, .field.is-error textarea { border-color: #e0786f; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__msg { min-height: 0; margin: 10px 0 0; font-size: 14px; color: #e0786f; }
.form__msg:empty { display: none; }
.consent { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.done { text-align: center; padding: 26px 10px; animation: slide-down .5s var(--ease); }
.done__icon { width: 74px; height: 74px; margin: 0 auto 14px; }
.done__icon svg { width: 100%; height: 100%; fill: none; stroke: #dfe3e7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .1s var(--ease) forwards; }
.done__icon path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .45s .65s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { font-size: 24px; font-weight: 900; margin: 0 0 6px; }
.done__text { color: #c3c9cf; margin: 0 0 18px; }

/* ---------- Корзина ---------- */
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: linear-gradient(180deg, #23272d, #1a1d21); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { position: relative; display: flex; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 22px; font-weight: 900; }
.drawer__head .modal__close { top: 50%; transform: translateY(-50%); }
.drawer__head .modal__close:hover { transform: translateY(-50%) rotate(90deg); }
.drawer__step { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; padding: 18px 24px 24px; }
.drawer__items { display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); animation: slide-down .35s var(--ease); }
.line img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #e9ecef; }
.line__name { font-weight: 700; line-height: 1.25; font-size: 15px; }
.line__sub { font-size: 12px; color: var(--muted); }
.line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__total { font-weight: 800; white-space: nowrap; }
.line .qty { display: inline-flex; margin-top: 6px; }
.line .qty button { width: 30px; height: 32px; font-size: 16px; }
.line .qty input { width: 30px; height: 32px; font-size: 14px; }
.line__rm { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; }
.line__rm:hover { color: #e0786f; }
.drawer__empty { text-align: center; padding: 40px 0; color: var(--muted); }
.drawer__foot { margin-top: auto; padding-top: 18px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 14px; font-size: 18px; }
.drawer__total b { font-size: 26px; font-weight: 900; }
.back { align-self: flex-start; border: 0; background: none; color: var(--muted); padding: 0; margin-bottom: 16px; }
.back:hover { color: var(--text); }
.delivery { border: 0; padding: 0; margin: 6px 0 12px; }
.delivery legend { font-weight: 700; margin-bottom: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:has(input:checked) { border-color: #cfd5db; background: rgba(255,255,255,.05); }
.opt input { margin-top: 4px; accent-color: #cfd5db; }
.opt b { display: block; }
.opt small { color: var(--muted); }
.pay-note { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; padding: 14px 22px; border-radius: 12px; background: var(--steel-btn); color: #111; font-weight: 700; box-shadow: var(--shadow); transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility .3s; pointer-events: none; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
	.hdr__phones .hdr__mail { display: none; }
	.nav a { padding: 8px 9px; }
}
@media (max-width: 900px) {
	.burger { display: flex; }
	.nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 10px 16px 20px; background: rgba(18,20,23,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); margin: 0; }
	.nav.is-open { transform: none; }
	.nav a { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid var(--line); }
	.nav a::after { display: none; }
	.hdr__contacts { margin-left: auto; }
	.nav__contacts { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
	.nav .nav__contacts a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; font-size: 16px; border: 0; color: var(--text); }
	.nav__contacts svg { width: 18px; height: 18px; fill: #cdd2d8; flex: none; }
	.feats { grid-template-columns: 1fr 1fr; }
	.about__grid, .contacts__in { grid-template-columns: 1fr; gap: 26px; }
	.how__steps { grid-template-columns: 1fr; }
	.pm { grid-template-columns: 1fr; }
	.pm__gallery { position: static; padding: 16px 16px 0; }
	.pm__info { padding: 22px 18px 26px; }
	.pm__nav { opacity: 1; }
}
@media (max-width: 560px) {
	.hdr__in { gap: 10px; height: 66px; }
	.nav { top: 66px; }
	.hdr__phones { display: none; }
	.hdr__phone { display: grid; }
	.logo__mark { width: 34px; height: 34px; }
	.logo__text { font-size: 12px; }
	.hero { padding-top: 96px; }
	.hero__cta .btn { flex: 1; padding: 0 12px; white-space: nowrap; font-size: 15px; }
	.feats { gap: 10px; margin-bottom: 50px; }
	.feat { padding: 18px 16px; }
	.feat__n { font-size: 34px; }
	.feat b { font-size: 15px; }
	.cat { padding: 54px 0; }
	.cat__idx { font-size: 40px; }
	.card__body { padding: 18px; }
	.pm__actions { grid-template-columns: 1fr; }
	.modal__box { width: 100%; max-height: 100%; margin: 0; border-radius: 0; min-height: 100%; }
	.drawer__step { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
