/* ==========================================================================
   ZHU Detailing — main stylesheet
   1. Tokens
   2. Base
   3. Layout helpers
   4. Components (buttons, pills, socials, forms)
   5. Sections (header, hero, about, pricing, projects, reviews, area,
      contacts, footer, modal)
   6. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: rgb(6, 12, 13);
  --bg-panel: rgb(10, 22, 27);
  --bg-panel-2: rgb(16, 33, 40);
  --bg-panel-3: rgb(21, 33, 40);
  --bg-field: rgb(30, 45, 54);
  --bg-btn: rgb(22, 55, 57);
  --bg-circle: rgb(28, 64, 70);
  --ink: #fff;
  --ink-dark: rgb(6, 9, 13);
  --ink-muted: rgb(96, 126, 138);
  --ink-soft: rgb(237, 241, 255);
  --accent: rgb(0, 255, 245);
  --accent-deep: rgb(0, 198, 190);
  --ring: rgba(13, 135, 132, 0.4);
  --card-carpet: rgba(15, 99, 105, 0.75);
  --card-upholstery: rgba(31, 49, 56, 0.75);
  --green: rgb(0, 182, 122);

  --font: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-alt: "Inter", var(--font);

  --gutter: 60px;
  --gutter-mobile: 20px;
  --container: 1320px;
  --r-pill: 500px;
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --section-y: 100px;
}

/* 2. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

button { font: inherit; }

::selection { background: rgba(0, 255, 245, 0.35); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 3. Layout helpers ------------------------------------------------------ */
.section { position: relative; padding: var(--section-y) var(--gutter); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }

.eyebrow {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-title {
  font-weight: 800;
  font-size: 50px;
  line-height: 1.28;
  color: var(--ink);
}

.lead {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
}

.divider { height: 1px; background: rgba(255, 255, 255, 0.4); }
.divider--dark { background: rgba(6, 9, 13, 0.4); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 4. Components ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 10px 10px 10px 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-btn);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn__label { font-weight: 600; font-size: 18px; white-space: nowrap; color: var(--ink); }
.btn__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  transition: background 0.25s ease;
}
.btn__circle img { width: 26px; height: 26px; }

.btn:hover { background: var(--accent); }
.btn:hover .btn__label { color: var(--ink-dark); }
.btn:hover .btn__circle { background: var(--bg-panel-2); }
.btn:hover .btn__circle img { filter: invert(1); }

/* white button on dark card */
.btn--light { background: #fff; }
.btn--light .btn__label { color: #000; }
.btn--light .btn__circle { background: #000; }
.btn--light .btn__circle img { filter: invert(1); }
.btn--light:hover { background: var(--accent); }
.btn--light:hover .btn__label { color: var(--ink-dark); }
.btn--light:hover .btn__circle { background: var(--bg-panel-2); }

/* dark button on accent card */
.btn--dark { background: var(--ink-dark); }
.btn--dark .btn__circle { background: #fff; }
.btn--dark .btn__circle img { filter: none; }
.btn--dark:hover { background: #fff; }
.btn--dark:hover .btn__label { color: var(--ink-dark); }
.btn--dark:hover .btn__circle { background: var(--bg-panel-2); }
.btn--dark:hover .btn__circle img { filter: invert(1); }

.btn--outline { box-shadow: inset 0 0 0 1px rgba(0, 255, 245, 0.4); }

.link { color: var(--ink); transition: color 0.2s ease; }
.link:hover,
.link.is-active { color: var(--accent); }

/* phone chip */
.phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.phone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.phone__icon img { width: 14px; height: 14px; filter: invert(1); }
.phone__number {
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.2s ease;
}
.phone:hover .phone__number { color: var(--accent); }

/* social pill */
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 5px 16px 5px 5px;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  transition: background 0.25s ease;
}
.social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-circle);
  transition: background 0.25s ease;
}
.social__icon img,
.social__icon svg { width: 20px; height: 20px; }
.social__label { font-weight: 500; font-size: 18px; color: var(--ink); transition: color 0.2s ease; }
.social:hover { background: var(--accent); }
.social:hover .social__icon { background: var(--bg-panel-2); }
.social:hover .social__label { color: var(--ink-dark); }

/* trustpilot */
.trustpilot { display: block; transition: filter 0.2s ease; }
.trustpilot:hover { filter: brightness(0.82); }

.trustpilot-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(244, 255, 251);
  transition: filter 0.2s ease;
}
.trustpilot-bar:hover { filter: brightness(0.94); }
.trustpilot-bar__star { color: var(--green); font-size: 20px; }
.trustpilot-bar__name { font-weight: 700; font-size: 15px; color: #000; white-space: nowrap; }
.trustpilot-bar__stars { display: flex; gap: 2px; }
.trustpilot-bar__stars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font-size: 8px;
}
.trustpilot-bar__score {
  padding-left: 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  font-weight: 500;
  font-size: 12px;
  color: #000;
  opacity: 0.6;
  white-space: nowrap;
}

/* form */
.field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.field__label { font-weight: 300; font-size: 12px; color: var(--ink); }
.field__input,
.field__textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--bg-field);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  height: 44px;
}
.field__textarea {
  height: 108px;
  padding: 14px 16px;
  border-radius: 14px;
  resize: none;
}
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 245, 0.25);
}
.field__input::placeholder,
.field__textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

/* 5. Sections ------------------------------------------------------------ */
/* Header ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 40px 0;
  padding: 10px 10px 10px 24px;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 38px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 30px; }
.header__nav a { font-size: 16px; font-weight: 400; }
.header__aside { display: flex; align-items: center; gap: 24px; }
.header__phone { display: flex; align-items: center; gap: 16px; }
.header__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}
.header__phone-icon img { width: 16px; height: 16px; }
.header__phone-number {
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-btn);
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; }

/* fullscreen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--ring);
  cursor: pointer;
}
.mobile-menu__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 0 32px;
}
.mobile-menu__links a { font-weight: 600; font-size: 32px; color: var(--ink); }
.mobile-menu__links a:hover { color: var(--accent); }
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 40px;
}
.mobile-menu__rule { height: 1px; background: rgba(255, 255, 255, 0.15); }
.mobile-menu__phone { display: flex; align-items: center; gap: 10px; }
.mobile-menu__phone img { width: 18px; height: 18px; filter: invert(1); }
.mobile-menu__phone a { font-weight: 600; font-size: 24px; color: var(--ink); }
.mobile-menu .btn { width: 100%; justify-content: space-between; padding: 12px 12px 12px 28px; }
.mobile-menu .btn__circle { width: 44px; height: 44px; }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 850px;
  margin-top: 24px;
  padding: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0 0 0 var(--r-lg);
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, rgba(6, 12, 13, 0) 38%, rgb(6, 12, 13) 100%),
    url("../images/hero-bg.png") center 45% / cover no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 60px;
}
.hero__col { display: flex; flex-direction: column; gap: 48px; max-width: 930px; }
.hero__place { display: flex; align-items: center; gap: 12px; }
.hero__place img { width: 20px; height: 20px; }
.hero__place span { font-size: 18px; letter-spacing: 0.01em; color: var(--ink-soft); }
.hero__title { font-weight: 800; font-size: 56px; line-height: 1.25; color: var(--ink); }
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, rgb(0, 198, 190), rgb(120, 255, 245));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__text { max-width: 719px; }
.hero__actions { display: flex; align-items: center; gap: 16px; }
.hero__trustpilot {
  position: absolute;
  right: 60px;
  bottom: 60px;
  width: 180px;
  overflow: hidden;
  border-radius: var(--r-sm);
}

/* About ----------------------------------------------------------------- */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  min-width: 320px;
  max-width: 640px;
  height: 640px;
}
.marquee {
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}
.marquee__track--down { animation: marquee-down 22s linear infinite; }
.marquee__track--up { animation: marquee-up 22s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { width: 100%; height: 300px; object-fit: cover; border-radius: 22px; }

@keyframes marquee-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
@keyframes marquee-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  flex: 1;
  min-width: 340px;
  max-width: 638px;
}
.about__copy { display: flex; flex-direction: column; gap: 32px; }
.checks { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; }
.checks span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-deep);
}
.checks img { width: 11px; height: 11px; }

/* Pricing --------------------------------------------------------------- */
.pricing {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 80px var(--gutter);
  background:
    linear-gradient(0deg, rgba(6, 12, 13, 0) 80%, rgb(6, 12, 13) 100%),
    url("../images/pricing-bg.png") center 75% / 120% no-repeat;
}
.pricing__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.custom-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 5px 5px 5px 24px;
  border-radius: var(--r-pill);
  background: rgb(40, 45, 52);
}
.custom-pill__label { font-weight: 500; font-size: 20px; color: var(--ink); }
.custom-pill__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 15px;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: filter 0.2s ease;
}
.custom-pill__phone:hover { filter: brightness(0.9); }
.custom-pill__phone img { width: 16px; height: 16px; }
.custom-pill__phone span { font-weight: 600; font-size: 20px; color: var(--ink-dark); white-space: nowrap; }

.pricing__grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.pricing__stack { display: flex; flex-direction: column; gap: 30px; flex: 2; min-width: 340px; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  padding: 24px;
  border-radius: var(--r-lg);
}
.plan--carpet { background: var(--card-carpet); }
.plan--upholstery { background: var(--card-upholstery); }
.plan--featured {
  flex: 1.4;
  min-width: 340px;
  justify-content: space-between;
  background: var(--accent);
  color: var(--ink-dark);
}
.plan__head { display: flex; flex-direction: column; gap: 14px; }
.plan__title-row { display: flex; align-items: center; gap: 14px; }
.plan__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px #000;
}
.plan__icon img,
.plan__icon svg { width: 44px; height: 44px; }
.plan__title { font-weight: 600; font-size: 32px; }
.plan__features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
.plan__features--stacked { flex-direction: column; gap: 12px; }
.plan__foot { display: flex; flex-direction: column; gap: 14px; }
.plan--featured .plan__foot { gap: 24px; }
.plan__price { font-weight: 800; font-size: 32px; }

/* Projects -------------------------------------------------------------- */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 0 var(--gutter) var(--section-y);
}
.projects__body { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; }
.tabs { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tab {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 10px 10px 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab__label { font-weight: 600; font-size: 18px; }
.tab__count {
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.tab:hover { background: rgba(255, 255, 255, 0.16); }
.tab.is-active { background: var(--accent); color: var(--ink-dark); }
.tab.is-active .tab__label { color: var(--ink-dark); }
.tab.is-active .tab__count { background: var(--ink-dark); color: var(--ink); }

.projects__viewport { position: relative; width: 100%; max-width: var(--container); }
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-height: 4000px;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
.projects__grid.is-collapsed { max-height: 600px; }
.projects__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: linear-gradient(180deg, rgba(6, 12, 13, 0), rgb(6, 12, 13) 85%);
  pointer-events: none;
}
.projects__fade[hidden] { display: none; }

.compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 650 / 488;
  border-radius: var(--r-md);
  cursor: ew-resize;
  user-select: none;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare__after img { width: 100%; height: 100%; object-fit: cover; }
.compare__line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-1.5px);
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.compare__label {
  position: absolute;
  top: 20px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink-dark);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s ease;
}
.compare__label--before { left: 20px; }
.compare__label--after { right: 20px; }
.compare__handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  touch-action: none;
}
.compare__handle img { width: 22px; height: 22px; }
.compare__handle img:first-child { transform: rotate(180deg); }

/* Reviews --------------------------------------------------------------- */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 140px var(--gutter) 98px;
  background:
    linear-gradient(180deg, rgba(6, 12, 13, 0) 19%, rgb(6, 12, 13) 97%),
    url("../images/hero-bg.png") center top / cover no-repeat;
}
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--container);
}
.reviews__viewport { width: 100%; max-width: var(--container); overflow: hidden; }
.reviews__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3);
  min-width: 0;
  padding: 24px 20px;
  border-radius: var(--r-sm);
  background: #fff;
}
.review__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review__who { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgb(210, 216, 220);
}
.review__meta { display: flex; flex-direction: column; gap: 6px; }
.review__name { font-weight: 700; font-size: 18px; color: #000; }
.review__stars-row { display: flex; align-items: center; gap: 6px; }
.review__stars { color: rgb(255, 180, 0); font-size: 13px; letter-spacing: 1px; }
.review__verified,
.review__date { font-size: 13px; color: #000; opacity: 0.6; }
.review__verified { font-weight: 300; }
.review__date { font-weight: 500; white-space: nowrap; }
.review__text { font-size: 14px; line-height: 1.5; color: #000; opacity: 0.75; }

.dots { display: none; align-items: center; gap: 10px; }
.dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.dot.is-active { width: 28px; background: var(--accent); }

.slider-nav { display: flex; align-items: center; gap: 14px; }
.slider-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease;
}
.slider-nav button img { width: 26px; height: 26px; }
.slider-nav__prev img { filter: invert(1); transform: rotate(180deg); }
.slider-nav__next { background: var(--accent) !important; }
.slider-nav button:hover { background: rgba(255, 255, 255, 0.28); }
.slider-nav__next:hover { filter: brightness(0.9); }

/* Service area ---------------------------------------------------------- */
.area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0;
  padding: 60px;
  border-radius: 48px;
  background:
    linear-gradient(rgba(21, 33, 40, 0.2), rgba(21, 33, 40, 0.2)),
    linear-gradient(0deg, rgb(21, 33, 40) 79%, rgb(6, 12, 13) 100%);
}
.area__col { display: flex; flex-direction: column; gap: 32px; flex: 1; min-width: 320px; }
.area__chat { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.area__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.area__bubble-wrap { display: flex; flex-direction: column; gap: 24px; flex: 1; min-width: 280px; }
.area__bubble {
  padding: 20px 16px;
  border-radius: var(--r-md);
  background: #fff;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: rgb(2, 60, 60);
}
.area__bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  font-weight: 500;
  font-size: 12px;
  color: rgb(2, 60, 60);
  opacity: 0.5;
}
.area__bubble-meta img { width: 10px; height: 10px; }
.area__bubble-meta img + img { margin-left: -6px; }
.area__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.area__map {
  width: 600px;
  max-width: 100%;
  height: 514px;
  object-fit: cover;
  border-radius: var(--r-lg);
  flex-shrink: 0;
}

/* Contacts -------------------------------------------------------------- */
.contacts {
  overflow: hidden;
  margin: var(--section-y) var(--gutter) 0;
  padding: 60px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/contact-bg.png") center / cover no-repeat;
}
.contacts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}
.contacts__col { display: flex; flex-direction: column; gap: 64px; flex: 1; min-width: 320px; }
.contacts__list { display: flex; flex-direction: column; gap: 36px; }
.contacts__lines { display: flex; flex-direction: column; gap: 16px; }
.contacts__line { display: flex; flex-direction: column; gap: 8px; }
.contacts__label { font-size: 18px; letter-spacing: -0.01em; color: var(--ink-muted); }
.contacts__value {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.contacts__value:hover { color: var(--accent); }
.contacts__value--email { font-weight: 600; text-transform: none; }
.contacts__socials { display: flex; flex-direction: column; gap: 10px; }

.form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 474px;
  max-width: 100%;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg-panel-3);
}
.form__title { font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--ink); }
.form__fields { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; gap: 10px; }
.form__counter { font-weight: 300; font-size: 12px; color: var(--ink); opacity: 0.4; text-align: right; }
.form__agree { display: flex; align-items: center; gap: 8px; }
.form__agree input {
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form__agree span {
  font-family: var(--font-alt);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}

/* Success modal --------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 8, 9, 0.78);
}
.modal.is-open { display: flex; }
.modal__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-radius: var(--r-lg);
  background: var(--bg-panel-2);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 245, 0.25), 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.modal__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 12px rgba(0, 255, 245, 0.12);
}
.modal__title { font-weight: 800; font-size: 26px; line-height: 1.25; }
.modal__text { font-weight: 300; font-size: 16px; line-height: 1.5; opacity: 0.75; }

/* Footer ---------------------------------------------------------------- */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: var(--section-y) var(--gutter) var(--gutter);
}
.footer__photo {
  height: 340px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: url("../images/footer-photo.png") center 28% / cover no-repeat;
}
.footer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: -40px;
  padding: 60px 60px 40px;
  border-radius: var(--r-lg);
  background: var(--bg-panel);
}
.footer__cols { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__logo { display: flex; align-items: center; flex-shrink: 0; }
.footer__logo img { height: 90px; width: auto; }
.footer__groups { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__group { display: flex; flex-direction: column; gap: 40px; min-width: 180px; }
.footer__group--contacts { min-width: 260px; }
.footer__group-title { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.footer__links { display: flex; flex-direction: column; gap: 16px; }
.footer__links a { font-size: 16px; color: var(--ink); opacity: 0.5; transition: color 0.2s ease, opacity 0.2s ease; }
.footer__links a:hover { color: var(--accent); opacity: 1; }
.footer__group .social__icon { width: 36px; height: 36px; }
.footer__group .social__icon img,
.footer__group .social__icon svg { width: 16px; height: 16px; }
.footer__group .social__label { font-size: 16px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(150, 170, 180, 0.2);
}
.footer__copy { font-weight: 300; font-size: 16px; color: rgb(181, 229, 249); opacity: 0.5; }
.footer__legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__legal a {
  font-weight: 500;
  font-size: 16px;
  color: rgb(181, 229, 249);
  opacity: 0.7;
  text-decoration: underline;
  text-decoration-color: rgba(181, 229, 249, 0.4);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer__legal a:hover { color: var(--accent); opacity: 1; }

/* 6. Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --section-y: 64px; }

  .header { margin: 16px 16px 0; }
  .header__nav,
  .header__aside { display: none; }
  .burger { display: flex; }

  .section,
  .pricing,
  .reviews { padding: var(--section-y) var(--gutter-mobile); }
  .projects { padding: var(--section-y) var(--gutter-mobile); }
  .hero { padding: 0; }

  .hero__title { font-size: 34px; }
  .section-title { font-size: 34px; }

  .about__gallery { height: 420px; }
  .about__gallery img { height: 190px; }

  .pricing__grid { flex-direction: column; }
  .pricing__stack,
  .plan--featured { min-width: 0; }

  .area {
    margin: 0;
    padding: var(--section-y) var(--gutter-mobile);
    border-radius: 0;
  }
  .area__map { width: 100%; height: auto; aspect-ratio: 1 / 1; }

  .contacts {
    margin: 0;
    padding: var(--section-y) var(--gutter-mobile);
    border-radius: 0;
  }
  .contacts__row { flex-direction: column; align-items: stretch; }
  .contacts__row > * { width: 100%; min-width: 0; }

  .footer { margin: var(--section-y) 0 0; }
  .footer__photo,
  .footer__panel { border-radius: 0; }
  .footer__cols { flex-direction: column; gap: 32px; }
}

@media (max-width: 900px) {
  .hero { min-height: 620px; }
  .hero__inner { justify-content: flex-end; padding: 30px var(--gutter-mobile); }
  .hero__col {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .hero__place { justify-content: center; }
  .hero__text { max-width: 100%; }

  .hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 12px;
    width: 100%;
  }
  .hero__actions .btn {
    grid-area: 1 / 1;
    justify-self: stretch;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 18px;
  }
  .hero__actions .phone { grid-area: 2 / 1; justify-self: start; }
  .hero__actions .phone__number { font-size: 17px; }
  .hero__trustpilot {
    position: static;
    grid-area: 1 / 2 / span 2 / auto;
    align-self: center;
    width: 122px;
    border-radius: 10px;
  }

  .custom-pill {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 5px 5px 16px;
  }
  .custom-pill__label { flex: 1; min-width: 0; font-size: 17px; }
  .custom-pill__phone { padding: 12px; }
  .custom-pill__phone span { font-size: 15px; }

  .pricing {
    background-size: auto, cover;
    background-position: center, center;
  }
  .plan { padding: 18px; }

  .projects__grid { grid-template-columns: 1fr; }
  .projects__grid.is-collapsed { max-height: 175vw; }

  .review { flex: 0 0 100%; width: 100%; }
  .dots { display: flex; }

  .trustpilot-bar { flex-wrap: wrap; max-width: 100%; }
  .trustpilot-bar__score { padding-left: 0; border-left: 0; white-space: normal; }

  .form__row { flex-direction: column; }
  .footer__panel { padding: 40px 20px 32px; }
}

@media (max-width: 560px) {
  .about__gallery { height: 360px; }
  .plan__title { font-size: 26px; }
  .plan__icon { width: 64px; height: 64px; }
  .plan__icon img,
  .plan__icon svg { width: 34px; height: 34px; }
}
