:root {
  --bg: #161616;
  --panel: #1e1e1e;
  --line: #2e2e2e;
  --text: #f2f2f2;
  --muted: #a9a9a9;
  --accent: #ffc400;
  --accent-ink: #161616;
  --wa: #25d366;
  --alert: #e5484d;

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --dock-h: 76px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: var(--dock-h);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(26px, 6vw, 40px); margin-bottom: 28px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  font: 600 17px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, background-color .2s ease;
}
.btn-call { background: var(--accent); color: var(--accent-ink); --glow: rgba(255, 196, 0, .55); --hover-bg: #ffd030; }
.btn-wa   { background: var(--wa); color: #0b2b17; --glow: rgba(37, 211, 102, .5); --hover-bg: #3ae07a; }
.btn-dark { background: var(--accent-ink); color: var(--accent); --glow: rgba(22, 22, 22, .45); --hover-bg: #262626; }

/* Наведение — только на устройствах с мышью, чтобы на телефоне не «залипало» */
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); background-color: var(--hover-bg); box-shadow: 0 10px 26px -8px var(--glow); }
  .btn-call:hover .icon, .btn-dark:hover .icon, .header-phone:hover .icon { animation: ring .7s ease; }
  .btn-wa:hover .icon { animation: pop .45s ease; }
}
/* Нажатие */
.btn:active { transform: translateY(0) scale(.95); box-shadow: 0 2px 8px -4px var(--glow); transition-duration: .07s; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Волна от точки нажатия (создаётся в script.js) */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .28; transform: scale(0);
  animation: ripple .6s ease-out forwards;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); }
  30% { transform: rotate(14deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-2deg); }
}
@keyframes pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.25) rotate(-8deg); }
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 22, 22, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
/* Меню: на телефоне — выпадающая панель под шапкой */
.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - 64px); height: calc(100dvh - 64px);
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 32px;
  background: var(--bg); border-top: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.nav a {
  position: relative; padding: 18px 0;
  color: var(--text); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 22px;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.nav a:active { color: var(--accent); }
.nav a::after { display: none;
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: inline-grid; place-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, transform .1s ease;
}
.burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.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); }
.burger:active { transform: scale(.93); }
@media (hover: hover) { .burger:hover { border-color: var(--accent); } }
.no-js .burger { display: none; }
body.menu-open { overflow: hidden; }
.header-phone {
  display: none; align-items: center; justify-content: center; gap: 8px;
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
  position: relative; overflow: hidden; isolation: isolate; --glow: rgba(255, 196, 0, .55);
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, background-color .2s ease;
}
@media (hover: hover) {
  .header-phone:hover { transform: translateY(-2px); background-color: #ffd030; box-shadow: 0 8px 20px -8px var(--glow); }
}
.header-phone:active { transform: scale(.94); transition-duration: .07s; }
.header-phone-num { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 150px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--muted); margin-bottom: 20px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.hero h1, .hero-lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.hero h1 { font-size: clamp(32px, 8.4vw, 64px); max-width: 15ch; letter-spacing: -.02em; }
.hero-lead { color: #d6d6d6; font-size: 18px; max-width: 34ch; margin-top: 18px; }
.cta-row { display: grid; gap: 12px; margin-top: 30px; }
.hero-phone {
  display: none; margin-top: 22px; font-family: var(--f-display); font-weight: 600;
  font-size: 20px; color: var(--accent); letter-spacing: .02em;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); margin: -16px 0 20px; }

/* Услуги */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 6px;
  padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.service > :not(.service-icon) { grid-column: 2; }
.service-icon {
  grid-row: 1 / span 3; width: 44px; height: 44px;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service p { color: var(--muted); font-size: 16px; }
.service .price { color: var(--text); font-weight: 500; font-size: 15px; margin-top: 4px; }

/* Срочная помощь — «дорожный знак» */
.urgent {
  background: var(--accent); color: var(--accent-ink);
  padding: 56px 0;
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--accent-ink) 0 14px, var(--accent) 14px 28px) 10;
}
.urgent h2 { font-size: clamp(34px, 9vw, 64px); margin-bottom: 14px; letter-spacing: -.02em; }
.urgent-lead { font-size: 19px; font-weight: 500; max-width: 32ch; margin-bottom: 26px; }
.urgent-facts { margin: 36px 0 0; display: grid; gap: 0; border-top: 2px solid var(--accent-ink); }
.urgent-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--accent-ink); }
.urgent-facts dt { font-weight: 500; }
.urgent-facts dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 18px; text-align: right; }
.urgent-facts div:first-child dd { font-size: 30px; }

/* Почему Иляс */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reasons li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.reasons .icon { color: var(--accent); margin-top: 3px; }
.reasons strong { font-weight: 600; }
.reasons span { color: var(--muted); }
.reasons strong { color: var(--text); }

/* О мастере */
.about { display: grid; gap: 28px; }
.about-photo { margin: 0; aspect-ratio: 1; width: min(100%, 360px); border-radius: var(--radius); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-text p { color: #d6d6d6; font-size: 18px; max-width: 46ch; }
.about-text p + p { margin-top: 14px; }

/* Контакты */
.contacts { display: grid; gap: 40px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  text-decoration: none; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.contact-list .icon { color: var(--accent); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) {
  .contact-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }
  .contact-list a:hover .icon { transform: translateX(4px) scale(1.12); }
}
.contact-list a:active .icon { transform: scale(.9); }
.contact-list small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

.form { display: grid; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
.form h3 { font-size: 22px; font-weight: 800; }
.form-note { color: var(--muted); font-size: 15px; margin-top: -6px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: #d6d6d6; }
.form input, .form textarea {
  width: 100%; font: 400 17px/1.4 var(--f-body); color: var(--text);
  background: var(--panel); border: 1px solid #3a3a3a; border-radius: 8px; padding: 13px 14px;
}
.form textarea { resize: vertical; min-height: 88px; }
.form input::placeholder, .form textarea::placeholder { color: #6f6f6f; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 196, 0, .25); }
.form [aria-invalid="true"] { border-color: var(--alert); }
.form-error { color: var(--alert); font-size: 15px; font-weight: 500; }
.form .btn { width: 100%; }

/* Футер */
.site-footer { padding: 32px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-row { display: grid; gap: 16px; }
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer a { text-decoration: none; color: var(--text); transition: color .2s ease; }
.site-footer a:hover { color: var(--accent); }

/* Нижняя панель с кнопками */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 22, 22, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.dock .btn { min-height: 52px; padding: 0 12px; }
.js .dock { transform: translateY(110%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.js .dock.is-shown { transform: none; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .cta-row { grid-template-columns: auto auto; justify-content: start; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .urgent-facts { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 0 24px; }
  .urgent-facts div { flex-direction: column; align-items: flex-start; gap: 4px; border-bottom: 0; border-top: 2px solid var(--accent-ink); }
  .urgent-facts dd, .urgent-facts div:first-child dd { text-align: left; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .nav {
    position: static; height: auto; padding: 0; flex-direction: row; gap: 24px; order: 1;
    background: none; border: 0; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav a {
    padding: 6px 0; border: 0; color: var(--muted);
    font-family: var(--f-body); font-weight: 500; font-size: 17px;
  }
  .nav a::after { display: block; }
  .burger { display: none; }
  .header-phone { display: inline-flex; order: 2; width: auto; padding: 0 16px; }
  .hero-phone { display: block; }
  .js .dock { transform: none; }
  .header-phone-num { display: inline; }
  .hero { padding: 104px 0 140px; min-height: 760px; }
  .hero-lead { font-size: 20px; }
  .section { padding: 96px 0; }
  .urgent { padding: 80px 0; }
  .urgent-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
  .urgent-facts { grid-template-columns: 1fr; margin-top: 0; gap: 0; }
  .urgent-facts div { flex-direction: row; align-items: baseline; justify-content: space-between; border-top: 0; border-bottom: 2px solid var(--accent-ink); }
  .urgent-facts div:first-child { border-top: 2px solid var(--accent-ink); }
  .urgent-facts dd, .urgent-facts div:first-child dd { text-align: right; }
  .reasons { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .about { grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
  .about-photo { aspect-ratio: 4 / 5; width: 100%; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer-row { grid-template-columns: 1fr auto; text-align: left; }
  .footer-row p:last-child { text-align: right; }

  /* На компьютере кнопки компактно справа внизу */
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 100px; }
  .dock {
    left: auto; right: 24px; bottom: 24px; grid-template-columns: auto auto;
    padding: 10px; border: 1px solid var(--line); border-radius: 14px;
  }
  .dock .btn { padding: 0 20px; }
}


/* ---------- Фото-полосы и плавные переходы (телефон и компьютер) ---------- */
/* Фото показывается полосой сверху секции и плавно растворяется в фоне — без резких границ. */
#uslugi, .urgent, #pochemu, #kontakty, .site-footer { position: relative; isolation: isolate; }
#uslugi, .urgent, #pochemu { background: var(--bg); }

#uslugi::before, .urgent::before, #pochemu::before, #kontakty::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: var(--band-h, 320px);
  background:
    linear-gradient(180deg, rgba(18,18,18,var(--band-dim, .5)), rgba(18,18,18,var(--band-dim, .5))),
    var(--band-img) var(--band-x, center) center / var(--band-size, auto 100%) no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 55%, transparent 100%);
  pointer-events: none;
}

#uslugi::before  { --band-img: url("img/engine-bg.jpg"); --band-x: 72%; --band-dim: .5; }
#pochemu::before { --band-img: url("img/tools-bg.jpg"); --band-x: 58%; --band-dim: .5; }
.urgent::before  { --band-img: url("img/road-bg.jpg"); --band-x: 62%; --band-h: 340px; --band-dim: .45; }
/* Контакты: своя иллюстрация — ночная карта Туркестана с меткой рынка Жаукашты */
#kontakty::before { --band-img: url("img/contacts-bg.svg"); --band-x: 62%; --band-h: 340px; --band-dim: .35; }

#uslugi .service { background: rgba(30, 30, 30, .82); }
#pochemu .reasons span { color: #c4c4c4; }
#kontakty .contact-list a { background: rgba(22, 22, 22, .55); }

/* Срочная помощь: тёмная версия с жёлтыми акцентами поверх фото дороги */
.urgent { color: var(--text); border-top: 0; border-image: none; padding-top: 64px; }
.urgent h2 { color: var(--accent); }
.urgent-facts, .urgent-facts div, .urgent-facts div:first-child { border-color: rgba(255, 196, 0, .55); }
.urgent-facts dd { color: var(--accent); }
.urgent .btn-dark { background: var(--accent); color: var(--accent-ink); --glow: rgba(255, 196, 0, .55); --hover-bg: #ffd030; }

.hero h1, .hero-lead, .urgent h2, .urgent-lead, #uslugi h2, #pochemu h2, #kontakty h2, #avtoservis h2 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
}

/* Плавный переход между тёмным и чуть более светлым фоном вместо линий */
.section-alt {
  border: 0;
  background: linear-gradient(180deg, var(--bg) 0, var(--panel) 96px, var(--panel) calc(100% - 96px), var(--bg) 100%);
}

/* Футер: тонкая контрастная граница сверху, фон — фото машины Иляса, сильно затемнённое */
.site-footer {
  border-top: 1px solid #3a3a3a;
  background:
    linear-gradient(90deg, rgba(12,12,12,.94) 0%, rgba(12,12,12,.82) 55%, rgba(12,12,12,.7) 100%),
    url("img/footer-bg.jpg") 60% 55% / cover no-repeat,
    #0f0f0f;
}

/* ---------- Выездной автосервис ---------- */
.fleet-grid { display: grid; gap: 16px; margin-top: 4px; }
.fleet-card {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.fleet-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fleet-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .35));
}
@media (hover: hover) { .fleet-card:hover img { transform: scale(1.03); } }
.fleet-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
#avtoservis .section-lead { margin: -16px 0 0; font-size: 18px; }
.fleet-features {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
}
.fleet-features li { display: flex; align-items: flex-start; gap: 12px; }
.fleet-features .icon {
  width: 44px; height: 44px; padding: 10px; flex: none; color: var(--accent);
  border: 1px solid rgba(255, 196, 0, .45); border-radius: 50%; background: rgba(255, 196, 0, .06);
}
.fleet-features span { display: flex; flex-direction: column; color: var(--muted); font-size: 14px; line-height: 1.35; }
.fleet-features strong { color: var(--text); font-weight: 600; font-size: 15px; }

/* Фото мастера */
.about-photo { overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

/* ---------- Главный экран: фото-полоса (вместо прежней SVG-иллюстрации) ---------- */
.hero { position: relative; isolation: isolate; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: var(--hero-h, 380px);
  background:
    var(--hero-shade, linear-gradient(180deg, rgba(18,18,18,.48), rgba(18,18,18,.48))),
    url("img/hero-bg.jpg") var(--hero-x, 86%) center / var(--hero-size, auto 100%) no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 60%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero { padding-bottom: 64px; }
}

/* ---------- Компьютер: полосы шире и выше, фото растягивается на всю ширину ---------- */
@media (min-width: 769px) {
  #uslugi::before, .urgent::before, #pochemu::before { --band-size: cover; --band-h: 460px; }
  /* Карта контактов в родном размере: метка встаёт рядом с заголовком, а не на форме */
  #kontakty::before { --band-x: 0%; --band-h: 340px; }
  .hero::before {
    --hero-h: 600px; --hero-x: 74%; --hero-size: auto 100%;
    --hero-shade: linear-gradient(90deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.6) 45%, rgba(18,18,18,.3) 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%);
  }
  .fleet-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .fleet-features { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
}
@media (min-width: 960px) {
  .urgent { padding-top: 96px; }
}

/* Фото мастера: квадрат, мастер по центру (файл уже обрезан до квадрата) */
#o-mastere .about-photo {
  aspect-ratio: 1;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
#o-mastere .about-photo img { object-fit: cover; object-position: center; border-radius: 0; }
@media (min-width: 960px) {
  #o-mastere .about { grid-template-columns: 400px 1fr; }
  #o-mastere .about-photo { width: 100%; margin: 0; }
}

section[id] { scroll-margin-top: 64px; }

/* Контакты на телефоне: строки выглядят как кнопки — рамка, фон, иконка в кружке, стрелка, отклик на нажатие */
@media (max-width: 768px) {
  .contact-list { gap: 10px; }
  #kontakty .contact-list a {
    padding: 12px 14px;
    background: rgba(32, 32, 32, .92);
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .9);
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
  }
  #kontakty .contact-list .icon {
    width: 42px; height: 42px; padding: 10px; border-radius: 50%;
    background: rgba(255, 196, 0, .12); border: 1px solid rgba(255, 196, 0, .4);
  }
  #kontakty .contact-list a::after {
    content: ""; flex: none; margin-left: auto;
    width: 9px; height: 9px;
    border-top: 2px solid var(--muted); border-right: 2px solid var(--muted);
    transform: rotate(45deg); margin-right: 4px;
  }
  #kontakty .contact-list a:active {
    transform: scale(.98);
    background: #2b2614;
    border-color: var(--accent);
  }
  #kontakty .contact-list a:active::after { border-color: var(--accent); }
}
