:root {
  --red: #d3413f;
  --red-hot: #f34f4c;
  --red-deep: #b83230;
  --ink: #1f1f1f;
  --ink-soft: #434343;
  --muted: #5f5f5f;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --white: #ffffff;
  --focus: #1a6b9a;
  --shell: min(1100px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --font: "Open Sans", system-ui, sans-serif;
  --display: "Oswald", "Open Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 0;
}

img,
iframe {
  max-width: 100%;
  border: 0;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover:not(.btn) {
  color: var(--red-deep);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgb(31 31 31 / 8%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 2.65rem;
}

.nav-desktop {
  display: none;
  gap: 1.6rem;
}

.nav-desktop a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-desktop a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-phone {
  display: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-mobile {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem 1.25rem;
  width: var(--shell);
  margin-inline: auto;
}

.nav-mobile a:not(.btn) {
  padding: 0.8rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn {
  margin-top: 0.85rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

a.btn-primary,
.btn-primary {
  background: var(--red);
  color: var(--white);
}

a.btn-primary:hover,
a.btn-primary:focus-visible,
.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

a.btn-outline,
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red-hot);
}

a.btn-outline:hover,
a.btn-outline:focus-visible,
.btn-outline:hover {
  background: rgb(243 79 76 / 8%);
  color: var(--red-deep);
}

a.btn-on-dark,
.btn-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 55%);
}

a.btn-on-dark:hover,
a.btn-on-dark:focus-visible,
.btn-on-dark:hover {
  background: rgb(255 255 255 / 12%);
  color: var(--white);
}

.btn-icon {
  flex-shrink: 0;
}

a.btn-route,
.btn-route {
  gap: 0.5rem;
  background: rgb(255 255 255 / 12%);
  color: var(--white);
  border-color: rgb(255 255 255 / 55%);
  backdrop-filter: blur(6px);
}

a.btn-route:hover,
a.btn-route:focus-visible,
.btn-route:hover {
  background: rgb(255 255 255 / 22%);
  color: var(--white);
  border-color: var(--white);
}

a.btn-route-card,
.btn-route-card {
  width: 100%;
  margin-top: 0.85rem;
  background: transparent;
  color: var(--red);
  border-color: var(--red-hot);
  backdrop-filter: none;
}

a.btn-route-card:hover,
a.btn-route-card:focus-visible,
.btn-route-card:hover {
  background: rgb(243 79 76 / 8%);
  color: var(--red-deep);
  border-color: var(--red-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 680px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: hero-zoom 12s var(--ease) both;
}

.hero-veil {
  background:
    linear-gradient(180deg, rgb(20 20 20 / 62%) 0%, rgb(20 20 20 / 48%) 42%, rgb(20 20 20 / 82%) 100%),
    linear-gradient(90deg, rgb(211 65 63 / 28%) 0%, transparent 55%);
}

.hero-inner {
  padding: 4.5rem 0 3.5rem;
  max-width: 40rem;
  animation: hero-in 0.85s var(--ease) both;
}

/* на мобілці лого вже в хедері — в hero не дублюємо */
.hero-logo {
  display: none;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.12;
  text-shadow: 0 2px 18px rgb(0 0 0 / 45%);
}

.hero-lead {
  margin: 0 0 1.7rem;
  max-width: 28rem;
  font-size: 1.08rem;
  color: rgb(255 255 255 / 92%);
  text-shadow: 0 1px 12px rgb(0 0 0 / 55%);
}

.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  max-width: 26rem;
}

.hero-cta .btn-route {
  grid-column: 1 / -1;
}

.section {
  padding: 4.75rem 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.section-head {
  max-width: 36rem;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head-left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.about-grid h2,
.contact-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.section-head h2::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 0.45rem;
  margin: 0 auto 0.85rem;
  background: var(--red-hot);
}

.section-head-left h2::before {
  margin-left: 0;
}

.section-head-light h2::before {
  background: var(--white);
}

.section-head p,
.about-grid .section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head-light p {
  color: rgb(255 255 255 / 82%);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.why-list li {
  display: grid;
  gap: 0.3rem;
  padding-left: 1rem;
  border-left: 3px solid rgb(255 255 255 / 75%);
}

.why-list strong {
  font-size: 1.12rem;
}

.why-list span {
  color: rgb(255 255 255 / 82%);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-text {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about-aside {
  background: var(--bg-soft);
  border-top: 4px solid var(--red);
  padding: 1.75rem 1.5rem;
}

.about-aside dl {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.about-aside dt {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.about-aside dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.85rem 1.55rem;
}

.contact-card h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.contact-card h3:first-child {
  margin-top: 0;
}

.contact-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.contact-card a:not(.btn) {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:not(.btn):hover {
  color: var(--red);
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.map-wrap {
  min-height: 280px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 72%);
  padding: 2.75rem 0 2.75rem;
}

.footer-inner {
  display: grid;
  gap: 0.55rem;
}

.footer-logo {
  width: min(180px, 55vw);
  height: auto;
  margin-bottom: 0.35rem;
}

.footer-meta,
.footer-copy {
  margin: 0;
  font-size: 0.92rem;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgb(31 31 31 / 94%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgb(255 255 255 / 10%);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

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

.sticky-cta .btn {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

@media (min-width: 640px) {
  .header-phone {
    display: inline;
  }

  .logo img {
    height: 2.7rem;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.25rem;
  }

  .why-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .about-aside dl {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile,
  .sticky-cta {
    display: none;
  }

  .header-actions .btn-outline {
    display: inline-flex;
  }

  .hero-inner {
    padding: 7.5rem 0 5.5rem;
  }

  /* на десктопі лого в hero — brand-first */
  .hero-logo {
    display: block;
    width: min(340px, 36vw);
    height: auto;
    margin: 0 0 1.1rem;
    filter: drop-shadow(0 8px 24px rgb(0 0 0 / 35%));
  }

  .about-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
    gap: 3rem;
  }

  .about-aside dl {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 100%;
    height: 100%;
  }
}

@media (max-width: 899px) {
  body:has(.sticky-cta.is-visible) {
    padding-bottom: 4.75rem;
  }

  body:has(.sticky-cta.is-visible) .site-footer {
    padding-bottom: 5.75rem;
  }
}

@media (max-width: 639px) {
  .header-actions .btn-outline {
    display: none;
  }
}

