/* Техгазгруп / Автосервиз Ремиза - one stylesheet for both sites (design v3, 2026-10-03).
   A service-company page, not a catalogue: one full-width photo hero with a plain promise and a
   call button, the main services as alternating photo/text sections, light and warm surfaces,
   deep navy instead of black, rounded photos, normal-case navigation. One self-hosted typeface
   (Onest). No scripts, no third-party requests - the edge CSP holds the page to that. */

/* ---------- font (Google Fonts, OFL; Cyrillic + Latin subsets) ---------- */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --navy: #0f1c2e;
  --navy-2: #172a42;
  --text: #13202f;
  --muted: #5a6677;
  --white: #ffffff;
  --soft: #f3f5f8;
  --line: #e1e6ed;
  --accent: #d3262f;          /* Техгазгруп red */
  --accent-hover: #b81f28;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9ea;
  --amber: #f2a20c;           /* Ремиза */
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --r-sm: 8px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 28, 46, .06), 0 12px 32px rgba(15, 28, 46, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.theme-remiza { --accent: #f2a20c; --accent-hover: #dc9208; --accent-ink: #13202f; --accent-soft: #fdf2dc; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 17.5px; line-height: 1.6; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; color: #000; padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { display: block; margin: 0 0 14px; font-size: 13.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.theme-remiza .eyebrow { color: #b97800; }
.on-dark .eyebrow, .hero .eyebrow { color: rgba(255, 255, 255, .78); }
.theme-remiza .hero .eyebrow, .theme-remiza .on-dark .eyebrow { color: var(--amber); }

/* ---------- sections ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
.soft { background: var(--soft); }
.on-dark { background: var(--navy); color: #fff; }
.on-dark .lead, .on-dark .muted { color: #b9c3d1; }
.flush-top { padding-top: 0; }
.head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { margin-bottom: 14px; }
.head .lead { margin: 0; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .78rem; letter-spacing: 0; color: var(--muted); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--text); opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--r-sm); border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 22px rgba(15, 28, 46, .16); }
.btn .icon { width: 19px; height: 19px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--soft); border-color: var(--line); box-shadow: none; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero: one photo of real work, a plain promise, a call button ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding: 0; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15, 28, 46, .93) 0%, rgba(15, 28, 46, .8) 42%, rgba(15, 28, 46, .35) 78%, rgba(15, 28, 46, .25) 100%);
}
.hero-inner { min-height: min(84vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { max-width: 15em; }
.hero h1 .hl { color: var(--amber); }
.theme-tgg .hero h1 .hl { color: #fff; }
.hero .lead { color: #d3dbe6; max-width: 36rem; margin: 22px 0 34px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 40px 0 0; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #e7ecf3; font-size: 15.5px; }
.trust .icon { width: 20px; height: 20px; color: var(--amber); stroke-width: 2.4; }
.theme-tgg .trust .icon { color: #fff; }

/* two photos slowly taking turns: the workshop and the road (CSS only, off for reduced motion) */
.hero-media .alt { opacity: 0; }
@keyframes swap { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .hero-media .alt { animation: swap 16s ease-in-out infinite; } }

/* ---------- main services: alternating photo / text ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature-media { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; background: var(--soft); box-shadow: var(--shadow); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media .badge {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow);
}
.feature-media .badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.feature-media .badge i.amber { background: var(--amber); }
.feature-flip .feature-media { order: 2; }
.feature h2 { margin-bottom: 16px; }
.feature .lead { margin-bottom: 26px; }

.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.6; }
.checks.amber .icon { background: #fdf2dc; color: #b97800; }
.on-dark .checks .icon { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.theme-remiza .steps li::before { color: #b97800; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- cards (Remiza services, other activities) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; transition: box-shadow .25s, transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); }
.theme-remiza .card .ico { color: #b97800; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-navy p { color: #b9c3d1; }
.card-navy .ico { background: rgba(255, 255, 255, .1); color: var(--amber); }
.soft .card { border-color: transparent; }

/* other activities: photo + 2x2 list */
.more { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.more .feature-media { aspect-ratio: auto; min-height: 420px; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; align-content: center; }
.items .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent); }
.items h3 { margin-bottom: 6px; font-size: 1.15rem; }
.items p { margin: 0; color: var(--muted); font-size: .97rem; }
.note { grid-column: 1 / -1; margin: 6px 0 0; padding: 18px 20px; border-radius: var(--r-sm); background: var(--soft); color: var(--muted); font-size: .97rem; }
.note a { color: var(--text); font-weight: 600; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.quote { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 22px; }
.quote span { color: var(--accent); }
.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.years li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; background: #fff; border-radius: var(--r-sm); padding: 18px 20px; }
.years b { color: var(--accent); font-weight: 700; }

/* ---------- Remiza: contest ---------- */
.contest { background: var(--navy-2); border-radius: var(--r); padding: clamp(26px, 3vw, 40px); }
.contest .big { font-size: clamp(3.6rem, 8vw, 5.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: .95; color: var(--amber); }
.contest .big small { font-size: .38em; letter-spacing: -0.02em; color: #fff; margin-left: 6px; }
.contest p { color: #b9c3d1; margin: 14px 0 0; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.times div { background: rgba(255, 255, 255, .06); border-radius: var(--r-sm); padding: 14px 16px; }
.times strong { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.times span { font-size: .88rem; color: #b9c3d1; }
.team { display: flex; gap: 14px; align-items: center; }
.team img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.team p { margin: 0; font-size: .9rem; }

/* winter strip (Remiza) */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(36px, 5vw, 56px); padding: 24px 28px; border-radius: var(--r); background: var(--accent-soft); }
.strip strong { display: block; font-size: 1.15rem; }
.strip span { color: var(--muted); }

/* ---------- call band + contact ---------- */
.callband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.callband h2 { max-width: 18em; }
.callband p { margin: 10px 0 0; }
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact { display: block; text-decoration: none; background: var(--soft); border-radius: var(--r); padding: 24px; transition: background .2s; }
a.contact:hover { background: var(--accent-soft); }
.contact .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 18px; }
.theme-remiza .contact .icon { color: #b97800; }
.contact small { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.contact b { font-weight: 650; font-size: 1.05rem; }

/* EU notice */
.eu { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.eu img { width: 100%; height: auto; aspect-ratio: 1110 / 330; object-fit: cover; object-position: top; }
.eu dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: .92rem; color: var(--muted); }
.eu dt { font-weight: 600; color: var(--text); }
.eu dd { margin: 0; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #b9c3d1; padding: clamp(56px, 7vw, 80px) 0 32px; font-size: .96rem; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; margin-bottom: 16px; }
footer .brand-name small { color: #b9c3d1; }
footer .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .88rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; letter-spacing: -0.05em; line-height: .9; color: var(--accent); }
.notfound .lead { margin: 18px auto 30px; max-width: 30rem; }

/* ---------- gentle reveal on scroll (CSS only, motion-safe) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0px entry 160px; }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .feature, .more, .about { grid-template-columns: 1fr; }
  .feature-flip .feature-media { order: 0; }
  .feature-media { aspect-ratio: 16 / 10; }
  .more .feature-media { min-height: 0; aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav { display: none; }
  .bar .btn { margin-left: auto; }
  .bar .btn .btn-text { display: none; }
  .bar .btn-sm { width: 44px; padding: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(15, 28, 46, .95) 20%, rgba(15, 28, 46, .78) 100%); }
  .hero-inner { min-height: 0; padding-top: 64px; padding-bottom: 48px; }
  .trust { flex-direction: column; gap: 10px; margin-top: 30px; }
  .steps, .steps-4, .cards, .cards-2, .contacts, .items { grid-template-columns: 1fr; }
  .times { grid-template-columns: 1fr 1fr; }
  .eu { grid-template-columns: 1fr; }
  .eu dl { grid-template-columns: 1fr; gap: 2px; }
  .eu dd { margin-bottom: 8px; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .brand-name small { display: none; } }

@media print {
  .bar, .hero-media, .feature-media { display: none !important; }
  .hero, .on-dark, footer { background: #fff !important; color: #000 !important; }
}

/* ---------- Remiza: contest as a horizontal card under the "why" feature ---------- */
.contest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.contest-row .times { margin-top: 0; }
.theme-remiza .on-dark .checks .icon { color: var(--amber); }
.checks b { font-weight: 650; }
.on-dark .feature-media { box-shadow: none; }
@media (max-width: 1020px) { .contest-row { grid-template-columns: 1fr; } }
