:root {
  --blue-deep: #0c1f3d;
  --anthracite: #2a3142;
  --surface: #f4f6f9;
  --white: #ffffff;
  --accent: #e87a1e;
  --accent-hover: #f09038;
  --accent-alt: #c41e3a;
  --text: #1a1f2e;
  --text-muted: #5c6370;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 12px 40px rgba(12, 31, 61, 0.12);
  --radius: 12px;
  --motion: 220ms;
  --container: 72rem;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --pad-y: clamp(3rem, 6vw, 5rem);
  font-family: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(var(--container), 100% - var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--blue-deep);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 31, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
  font-weight: 800;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-phone {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--motion) ease-out, background var(--motion) ease-out, box-shadow var(--motion) ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(232, 122, 30, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  background: var(--blue-deep);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--pad-y);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 122, 30, 0.08), transparent),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  opacity: 0.9;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.hero h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
  max-width: 22ch;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.badge strong {
  color: var(--accent);
}

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--anthracite);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

.promo-banner {
  background: linear-gradient(90deg, var(--accent-alt), #8b1530);
  color: var(--white);
  padding: 0.85rem var(--pad-x);
  text-align: center;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.promo-banner span {
  opacity: 0.92;
  font-weight: 500;
}

.offers-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.offer-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.cert-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cert-block {
    grid-template-columns: 1fr 1fr;
  }
}

.cert-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.cert-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.gearbox-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .gearbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gearbox-card {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 31, 61, 0.08);
  align-items: center;
}

@media (max-width: 520px) {
  .gearbox-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }

  .gearbox-card {
    flex: 0 0 min(92vw, 420px);
    scroll-snap-align: start;
  }
}

.gearbox-card img {
  max-height: 140px;
  object-fit: contain;
  margin: auto;
}

.gearbox-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.gearbox-prices {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.35rem 0;
}

.gearbox-prices strong {
  color: var(--text);
}

.prose {
  max-width: 68ch;
}

.prose h3 {
  margin-top: 1.5rem;
}

.split-section {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split-section {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.tips-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tip-card {
  background: var(--white);
  padding: 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-hub {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--motion) ease-out;
}

.service-tile:hover {
  transform: translateY(-3px);
  color: inherit;
}

.service-tile img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.service-tile div {
  padding: 1rem 1.15rem 1.2rem;
}

.service-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.service-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.page-hero-img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.related-links a {
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  color: var(--blue-deep);
  border: 1px solid rgba(12, 31, 61, 0.1);
}

/* Marquee */
.marquee-wrap {
  background: var(--anthracite);
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding-block: 0.65rem;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  gap: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.marquee span {
  white-space: nowrap;
}

.marquee span::before {
  content: "◆";
  color: var(--accent);
  margin-right: 0.75rem;
  font-size: 0.55rem;
  vertical-align: middle;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 0.5rem var(--pad-x);
  }
}

/* Sections */
section {
  padding-block: var(--pad-y);
}

.section-dark {
  background: var(--anthracite);
  color: var(--white);
}

.section-light {
  background: var(--white);
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 62ch;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 31, 61, 0.06);
  transition: transform var(--motion) ease-out;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--white);
}

.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-dark .card p {
  color: rgba(255, 255, 255, 0.72);
}

.error-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent-alt);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  position: relative;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.35rem;
}

/* Price tabs */
.price-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.price-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 31, 61, 0.15);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background var(--motion), color var(--motion);
}

.price-tab.is-active {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}

.price-panel {
  display: none;
  animation: fadeIn 260ms ease-out;
}

.price-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(12, 31, 61, 0.08);
}

.price-table th {
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Forms */
.form-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.form-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

label .req {
  color: var(--accent-alt);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(12, 31, 61, 0.2);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.consent input {
  width: auto;
  margin-top: 0.2rem;
}

.consent a {
  color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-msg {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.form-msg.error {
  color: #ffb4b4;
}

.form-msg.ok {
  color: #9ee6b8;
}

/* Reviews carousel */
.reviews-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.review {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 31, 61, 0.06);
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.review-stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.review-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review p {
  margin: 0;
  font-size: 0.92rem;
}

.scroll-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .reviews-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .review {
    flex: none;
  }

  .scroll-hint {
    display: none;
  }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(12, 31, 61, 0.1);
  padding-block: 1rem;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-body {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.is-open .faq-body {
  display: block;
}

.faq-item.is-open button span:last-child {
  transform: rotate(45deg);
}

/* Map */
.map-frame {
  border: none;
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  filter: grayscale(20%);
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 2.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-grid a {
  color: var(--accent);
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 31, 61, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--pad-x);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 200ms ease-out;
}

.modal h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-wrap {
  position: relative;
  width: min(420px, 100%);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--anthracite);
  color: var(--white);
  padding: 1rem var(--pad-x);
  display: none;
  z-index: 1500;
  border-top: 1px solid var(--border);
}

.cookie-banner.is-visible {
  display: block;
  animation: fadeIn 200ms ease-out;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: auto;
  font-size: 0.85rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

/* Thank you / legal pages */
.page-simple {
  min-height: 60vh;
  padding-block: var(--pad-y);
}

.page-simple h1 {
  font-size: 1.75rem;
}

.messenger-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.messenger-links a {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
}

.messenger-links a:hover {
  background: rgba(232, 122, 30, 0.25);
}