/* ===========================================================================
   Автосервиз Тандем — modern visual refresh
   Loaded LAST on every page (after app.css / service.css), so it is the
   final word on shared, purely cosmetic details: buttons, badges, card
   shadows/radius and small polish touches. It does not touch layout,
   markup or page-specific logic — only how the existing components look.
   =========================================================================== */

:root {
  --t-radius-md: 18px;
  --t-radius-pill: 999px;
  --t-shadow-sm: 0 6px 18px rgba(24, 32, 31, 0.07);
  --t-shadow-md: 0 18px 38px rgba(24, 32, 31, 0.12);
  --t-shadow-orange: 0 14px 30px rgba(226, 83, 3, 0.24);
  --t-shadow-orange-hover: 0 20px 42px rgba(200, 69, 0, 0.32);
}

/* ---------------------------------------------------------------------
   Buttons — one consistent pill language across the whole site instead
   of the mix of 4px / 8px / 14px radii the separate stylesheets used.
   --------------------------------------------------------------------- */
.button,
.primary,
.ghost,
.home-primary,
.home-secondary,
.home-editorial .home-primary,
.home-editorial .home-secondary,
.site-button,
.site-button-light,
.booking-action {
  border-radius: var(--t-radius-pill) !important;
}

.button.primary,
a.primary,
.primary,
.home-primary,
.home-editorial .home-primary,
.site-button,
.booking-action {
  box-shadow: var(--t-shadow-orange) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

.button.primary:hover,
a.primary:hover,
.primary:hover,
.home-primary:hover,
.home-editorial .home-primary:hover,
.site-button:hover,
.booking-action:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--t-shadow-orange-hover) !important;
}

.ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  transition: border-color 0.2s ease, transform 0.2s ease !important;
}
.ghost:hover {
  border-color: #fff !important;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   Eyebrow labels ("ТЕХНИЧЕСКИ ПРЕГЛЕДИ", "ГАЛЕРИЯ" …) become soft pill
   badges instead of plain small caps text — the single change that
   reads as "modern" fastest since it repeats on every section.
   --------------------------------------------------------------------- */
.eyebrow,
.home-eyebrow,
.section-head .eyebrow {
  display: inline-flex !important;
  align-items: center;
  padding: 7px 16px 7px 12px;
  border-radius: var(--t-radius-pill);
  background: rgba(226, 83, 3, 0.1);
  color: #c84500 !important;
}
.eyebrow.orange {
  color: #c84500 !important;
}
.home-eyebrow > span {
  background: currentColor;
}

/* ---------------------------------------------------------------------
   Cards — one shared radius + resting shadow + hover lift, applied to
   every card-like block across the home page, price lists, gallery,
   certificates and contact info (previously: some had radius and no
   shadow, some had shadow and no radius, most had neither).
   --------------------------------------------------------------------- */
.home-service-card,
.certificate-card,
.contact-info-card,
.contact-cards article,
.price-grid > article,
.news-grid > article,
.vehicle-grid .vehicle,
.related-grid a,
.site-loader-card {
  border-radius: var(--t-radius-md) !important;
  box-shadow: var(--t-shadow-sm) !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}
.home-service-card:hover,
.certificate-card:hover,
.contact-info-card:hover,
.contact-cards article:hover,
.price-grid > article:hover,
.news-grid > article:hover,
.related-grid a:hover {
  transform: translateY(-5px);
  box-shadow: var(--t-shadow-md) !important;
}

.gallery-grid img,
.home-gallery-grid img {
  border-radius: var(--t-radius-md) !important;
  box-shadow: var(--t-shadow-sm) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}
.gallery-grid img:hover,
.home-gallery-grid img:hover {
  box-shadow: var(--t-shadow-md) !important;
  transform: translateY(-4px);
}

/* ---------------------------------------------------------------------
   Footer — round the top corners so it reads as an intentional closing
   panel rather than the page just stopping.
   --------------------------------------------------------------------- */
footer.site-footer,
.site-footer {
  border-radius: 32px 32px 0 0 !important;
}

/* ---------------------------------------------------------------------
   Form fields — rounded corners with a soft orange focus ring instead
   of the browser-default blue outline (booking form, contact form).
   --------------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-radius: 10px !important;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #e25303 !important;
  box-shadow: 0 0 0 3px rgba(226, 83, 3, 0.22) !important;
}

/* ---------------------------------------------------------------------
   Home page heading font — a more distinctive display face for h1 only,
   so the homepage doesn't read as "just Manrope, like every template".
   Falls back to Manrope/sans-serif if the network can't fetch it.
   --------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

/* ---------------------------------------------------------------------
   HOME HERO — full-bleed cinematic redesign (desktop/tablet only).
   Before: a light card on the left, a separate rounded photo on the
   right — a static "brochure" layout. Now: one full-width photo with a
   dark gradient wash and the headline set directly over it, the way a
   premium automotive brand site is built. Mobile keeps the simpler
   stacked layout untouched (less image space, easier to read there).
   --------------------------------------------------------------------- */
@media (min-width: 761px) {
  .home-editorial .home-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    max-width: none !important;
    min-height: 88vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #15110e !important;
    gap: 0 !important;
  }
  .home-hero-text {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 0 6% !important;
  }
  .home-hero-visual {
    grid-column: 1 !important;
    grid-row: 1 !important;
    z-index: 1;
    border-radius: 0 !important;
    min-height: 88vh !important;
  }
  .home-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      100deg,
      rgba(15, 12, 10, 0.96) 8%,
      rgba(15, 12, 10, 0.74) 40%,
      rgba(15, 12, 10, 0.28) 68%,
      rgba(15, 12, 10, 0.05) 100%
    );
  }
  .home-editorial .home-hero h1 {
    color: #fff !important;
    font-family: "Space Grotesk", "Manrope", sans-serif !important;
    letter-spacing: -0.03em !important;
  }
  .home-hero h1 em {
    color: #ff8a3d !important;
  }
  .home-editorial .home-hero-description {
    color: #d9d4cd !important;
  }
  .home-editorial .home-eyebrow {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffb27a !important;
  }
  .home-eyebrow > span {
    background: #ff8a3d !important;
  }
  .home-editorial .home-secondary {
    color: #fff !important;
  }
  .home-editorial .home-secondary:hover {
    color: #ff8a3d !important;
  }
  .home-hero-assurance {
    color: #cfc9c2 !important;
  }
  .home-hero-assurance svg {
    color: #ff8a3d !important;
  }
  .home-hero-assurance small {
    color: #a49d95 !important;
  }
  .home-photo-caption {
    left: auto !important;
    right: 28px !important;
    bottom: 92px !important;
    width: min(320px, 34vw) !important;
  }
  .home-hero-assurance small {
    font-size: 12px !important;
    color: #b8b1a8 !important;
  }
  .home-hero-assurance strong {
    font-size: 12px !important;
  }
}
@media (min-width: 1441px) {
  .home-editorial .home-hero {
    border-radius: 0 !important;
  }
}

/* ---------------------------------------------------------------------
   Hero slider controls — was a row of numbered pills ("01","02","03…"),
   which stops making sense the moment there are more than 3-4 photos.
   Replaced with compact dots that scale to any number of slides; the
   number is kept for screen readers via aria-label, just not shown.
   --------------------------------------------------------------------- */
.home-slider-controls {
  display: flex !important;
  gap: 8px !important;
  left: 6% !important;
  right: auto !important;
  bottom: 28px !important;
}
.home-slider-controls button {
  width: 9px !important;
  height: 9px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.45) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  transition: background 0.2s ease, width 0.2s ease !important;
}
.home-slider-controls button.active {
  width: 22px !important;
  background: #ff8a3d !important;
}

/* ---------------------------------------------------------------------
   Header nav — tablet gap fix. Between the phone breakpoint (850px) and
   desktop, the full nav (8 links) had no room and started overlapping
   itself. Collapse to the same hamburger dropdown already used on
   mobile, just starting earlier.
   --------------------------------------------------------------------- */
@media (min-width: 851px) and (max-width: 1180px) {
  header .header-actions .menu {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(226, 83, 3, 0.25) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #18201f !important;
  }
  header nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    padding: 8px !important;
    border: 1px solid rgba(226, 83, 3, 0.16) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(88, 47, 22, 0.16) !important;
    z-index: 20;
  }
  header nav.open {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }
  header nav a {
    display: flex !important;
    width: 100% !important;
    min-height: 43px !important;
    padding: 0 13px !important;
    align-items: center !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }
}

/* The hero text layer sits above the photo; let clicks reach the slider dots underneath. */
.home-editorial .home-hero-text {
  pointer-events: none;
}
.home-editorial .home-hero-text :is(a, button) {
  pointer-events: auto;
}
