:root {
  --bg: #faf9f7;
  --bg-elevated: rgba(255, 255, 255, 0.97);
  --bg-soft: #f3f0eb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --border: rgba(90, 70, 50, 0.1);
  --text: #4d3117;
  --muted: #8a6a4d;
  --accent: #e58a36;
  --accent-strong: #c8641f;
  --accent-warm: #ffe4c2;
  --shadow: 0 16px 40px rgba(60, 45, 30, 0.07);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  /* якоря не уезжают под липкую шапку */
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(229, 138, 54, 0.06), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(246, 197, 126, 0.08), transparent 28%),
    linear-gradient(180deg, #fdfcfb 0%, #faf9f7 45%, #f6f4f1 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(255, 233, 204, 0.95), rgba(255, 245, 231, 0.92));
  border-bottom: 1px solid rgba(200, 100, 31, 0.18);
  box-shadow: 0 10px 24px rgba(200, 100, 31, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__mark {
  display: block;
  line-height: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: 80px;
}

.header-phone {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--accent-strong);
  white-space: nowrap;
  min-width: 0;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: #8d5a2a;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ef9a43 0%, #d77023 100%);
  color: #fff7ee;
  box-shadow: 0 10px 22px rgba(200, 100, 31, 0.18);
}

.hero {
  padding: 64px 0 28px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 138, 54, 0.2), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(229, 138, 54, 0.14);
  color: #a05a1f;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-aside {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.hero-illustration {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(229, 138, 54, 0.12), rgba(240, 195, 136, 0.1));
  border: 1px solid rgba(229, 138, 54, 0.14);
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.wheel-ring,
.bike-line,
.mountain-line,
.snow-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wheel-ring,
.bike-line {
  stroke: url(#accentLine);
}

.wheel-ring {
  stroke-width: 8;
}

.bike-line {
  stroke-width: 7;
}

.mountain-line,
.snow-line {
  stroke: rgba(24, 49, 79, 0.28);
  stroke-width: 6;
}

.stat-card,
.info-card,
.service-card,
.price-section,
.notice-card,
.contact-strip,
.page-hero {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 22px;
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.stat-card__value {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
}

.section {
  padding: 28px 0;
}

.section--compact {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-grid {
  align-items: stretch;
}

.service-card {
  padding: 24px;
}

.info-card {
  padding: 24px;
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(229, 138, 54, 0.18), rgba(200, 100, 31, 0.12));
  color: #a85a1f;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.photo-card {
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-card__body {
  padding: 18px 20px 20px;
}

.photo-card__body h3 {
  margin: 0 0 8px;
}

.photo-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-card h3,
.info-card h3,
.price-section h2,
.notice-card h3,
.page-hero h1 {
  margin-top: 0;
}

.service-card p,
.info-card p,
.service-card li,
.notice-card li,
.footer,
.price-row__price {
  color: var(--muted);
}

.service-card ul,
.notice-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.contact-strip {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-strip__item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.contact-strip__item strong {
  font-size: 1.08rem;
  line-height: 1.55;
}

.page-main {
  padding: 32px 0 52px;
}

.page-hero {
  padding: 32px;
  margin-bottom: 24px;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(229, 138, 54, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-link {
  transition: 0.2s ease;
}

.tag-link:hover {
  background: rgba(229, 138, 54, 0.18);
  color: var(--text);
}

.price-layout {
  display: grid;
  gap: 18px;
}

.price-section {
  padding: 24px;
}

.price-section__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.price-section__top h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.price-table {
  display: grid;
  gap: 10px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 48, 78, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}

.price-row__service {
  font-weight: 600;
  line-height: 1.5;
}

.price-row__price {
  min-width: 110px;
  text-align: right;
  font-weight: 700;
  color: #b45a1f;
}

.price-row__note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.notice-card {
  padding: 24px;
}

.notice-card p {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 18px 0 42px;
  text-align: center;
  font-size: 0.95rem;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(200, 100, 31, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 11rem;
  }

  .hero__grid,
  .grid--3,
  .grid--2,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    min-height: auto;
    padding: 14px 0 12px;
  }

  .site-header__inner .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
  }

  .site-header__inner .header-phone {
    grid-column: 2;
    grid-row: 1;
    flex: unset;
    width: auto;
    max-width: 100%;
    text-align: right;
    align-self: center;
    justify-self: end;
    font-size: clamp(1.12rem, 3.2vw, 1.32rem);
  }

  .site-header__inner .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .site-header__inner .nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: clamp(0.84rem, 3.1vw, 0.95rem);
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, var(--container));
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card,
  .hero-aside,
  .page-hero,
  .price-section,
  .service-card,
  .notice-card,
  .contact-strip {
    padding: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .brand__logo {
    height: 64px;
  }

  .site-header__inner .header-phone {
    font-size: clamp(1.2rem, 5vw, 1.48rem);
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .price-row__price {
    text-align: left;
    min-width: 0;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}
