/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --clr-dark:         #1e1e1e;
  --clr-dark-alt:     #111111;
  --clr-green:        #49bf00;
  --clr-green-hover:  #3da600;
  --clr-white:        #ffffff;
  --clr-gray-bg:      #f5f5f5;
  --clr-gray-line:    #d9d9d9;
  --clr-text-dark:    #282828;
  --clr-text-mid:     #5a5a5a;
  --clr-text-light:   rgba(255, 255, 255, 0.55);
  --clr-overlay:      rgba(17, 17, 17, 0.75);

  /* Typography */
  --font:             'Manrope', sans-serif;
  --fw-regular:       400;
  --fw-medium:        500;
  --fw-semibold:      600;
  --fw-bold:          700;
  --fw-extrabold:     800;

  /* Spacing */
  --page-max:         1440px;
  --page-pad:         40px;
  --block-gap:        16px;
  --card-pad:         80px;
  --card-pad-sm:      64px;

  /* Radii */
  --r-xl:             32px;
  --r-lg:             24px;
  --r-md:             16px;
  --r-sm:             8px;

  /* Transitions */
  --t-fast:           0.15s ease;
  --t-mid:            0.25s ease;
  --t-slow:           0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--clr-white);
  color: var(--clr-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font-family: var(--font);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

ul, ol { list-style: none; }

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

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
.header {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background-color: var(--clr-dark);
  display: flex;
  flex-direction: column;
  padding: 56px 80px 80px;
  isolation: isolate;
}

/* Background image layer */
.header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right,  rgba(17,17,17,0.97) 0%,  rgba(17,17,17,0.55) 45%, rgba(17,17,17,0.0) 70%),
    linear-gradient(to bottom, rgba(17,17,17,0.6)  0%, rgba(17,17,17,0.0) 40%),
    url('https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?w=1600&auto=format&fit=crop&q=80')
    right center / cover no-repeat;
  filter: saturate(0.15) brightness(0.9);
}

.header > *:not(.header__bg) {
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__logo {
  flex-shrink: 0;
  line-height: 0;
  transition: opacity var(--t-fast);
}
.navbar__logo:hover { opacity: 0.85; }

/* Услуги dropdown button */
.navbar__services-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-white);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  padding: 9px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.navbar__services-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
}

.navbar__services-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 18px;
}
.navbar__services-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--clr-white);
  border-radius: 2px;
}

/* Right nav links */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-left: auto;
}

.navbar__link {
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--clr-white);
  line-height: 1.4;
  position: relative;
  transition: opacity var(--t-fast);
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--clr-green);
  border-radius: 2px;
  transition: width var(--t-mid);
}
.navbar__link:hover { opacity: 0.75; }
.navbar__link:hover::after { width: 100%; }

.navbar__phone {
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--clr-white);
  white-space: nowrap;
  transition: opacity var(--t-fast);
}
.navbar__phone:hover { opacity: 0.75; }

/* Burger (hidden on desktop) */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,0.18);
  align-items: center;
  transition: background var(--t-fast);
}
.navbar__burger:hover { background: rgba(255,255,255,0.08); }
.navbar__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--clr-white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--t-mid), opacity var(--t-mid);
}
.navbar__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Divider under nav */
.navbar__divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 22px 0;
}

/* ============================================================
   HERO CONTENT
   ============================================================ */
.header__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}

.header__title {
  font-size: 64px;
  font-weight: var(--fw-medium);
  color: var(--clr-white);
  line-height: 1.1;
  max-width: 640px;
  letter-spacing: 0;
}

.header__buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  padding: 22px 40px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--green {
  background: var(--clr-green);
  color: var(--clr-white);
  padding-left: 48px;
}
.btn--green:hover { background: var(--clr-green-hover); }

.btn--outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.20);
  padding: 22px 48px;
}
.btn--outline-white:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); }

.btn--outline-dark {
  background: transparent;
  color: var(--clr-text-dark);
  border-color: rgba(0,0,0,0.16);
  padding: 22px 48px;
}
.btn--outline-dark:hover { border-color: rgba(0,0,0,0.35); background: rgba(0,0,0,0.03); }

.btn--sm {
  font-size: 16px;
  padding: 16px 32px;
}
.btn--sm.btn--green  { padding-left: 36px; }
.btn--sm.btn--outline-dark { padding: 16px 32px; }

/* ============================================================
   BLOCKS AREA
   ============================================================ */
.blocks {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
}

.card {
  border-radius: var(--r-xl);
  overflow: hidden;
}
.card--white { background: var(--clr-white); }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: 40px;
  font-weight: var(--fw-bold);
  color: var(--clr-text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ============================================================
   WORKS SECTION
   ============================================================ */
.works-section {
  padding: var(--card-pad-sm) var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.works-section__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.works-section__arrows {
  display: flex;
  align-items: center;
  gap: 16px;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-gray-bg);
  color: var(--clr-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.arrow-btn:hover:not(:disabled) {
  background: var(--clr-dark);
  color: var(--clr-white);
  transform: scale(1.06);
}
.arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Carousel */
.works-carousel {
  overflow: hidden;
  cursor: grab;
}
.works-carousel.is-dragging { cursor: grabbing; }

.works-track {
  display: flex;
  gap: 16px;
  transition: transform var(--t-slow);
  will-change: transform;
  user-select: none;
}

/* ── Work card shell ──
   JSON: GROUP Work · 264×312 · no fill (transparent, sits on white card bg)
   Image: 264×204 · radius=24 (own rounded corners, NOT clipped by card)
   Gap image→text: 24px
   Text frame: 264×84
*/
.work-card {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  background: var(--clr-white);
  display: flex;
  flex-direction: column;
  gap: 24px;            /* JSON: 228 - 204 = 24px gap between image and text */
}

/* ── Image — JSON: RECTANGLE 264×204 · radius=24 · IMAGE fill ── */
.work-card__img {
  position: relative;
  height: 204px;
  background-color: #d9d9d9;  /* JSON: solid:217,217,217 placeholder */
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border-radius: 24px;        /* JSON: r=24 on the image rectangle itself */
  overflow: hidden;
}
/* Work card images — replace with your own */
/* .work-card__img--1 { background-image: url('your-image.jpg'); } */
/* .work-card__img--2 { background-image: url('your-image.jpg'); } */
/* .work-card__img--3 { background-image: url('your-image.jpg'); } */
/* .work-card__img--4 { background-image: url('your-image.jpg'); } */
/* .work-card__img--5 { background-image: url('your-image.jpg'); } */

/* ── Badge — JSON: Frame 406 · x=185 y=24 · w=55 h=25
   right = 264 - 185 - 55 = 24px from right
   top   = 24px
   fill  = solid:20,20,20 (#141414) · radius=30 ── */
.work-card__badge {
  position: absolute;
  top:   24px;
  right: 24px;            /* JSON: right edge = 264-185-55 = 24px */
  background: #141414;    /* JSON: solid:20,20,20 */
  color: var(--clr-white);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  padding: 0 10px;
  height: 25px;
  line-height: 25px;
  border-radius: 30px;    /* JSON: r=30 */
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Text body — JSON: Frame 432 · 264×84 · no bg ── */
.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

/* ── Title — JSON: TEXT · x=0 y=0 · w=237 h=38 · fill=solid:40,40,40 ── */
.work-card__title {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: #282828;         /* JSON: solid:40,40,40 */
  line-height: 1.4;
  margin: 0 0 auto;
  padding-bottom: 22px;   /* space before the link row (y=60 in 84px frame) */
}

/* ── Link row — JSON: Group 405 · y=60 within frame · w=264 h=24
   Text "Подробнее" at x=0, Arrow at x=240 (right edge of 264px frame) ── */
.work-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* text left, arrow right */
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: #282828;         /* JSON: solid:40,40,40 */
  transition: color var(--t-fast);
}
.work-card__link:hover { color: var(--clr-green); }
.work-card__link svg { flex-shrink: 0; }

/* ============================================================
   SOCIAL BAR
   ============================================================ */
.social-bar {
  background: var(--clr-gray-bg);
  border-radius: var(--r-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.social-bar__label {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  color: var(--clr-text-dark);
  max-width: 220px;
  line-height: 1.4;
}

.social-bar__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--clr-text-dark);
  background: var(--clr-white);
  padding: 18px 40px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  border-color: var(--clr-gray-line);
}

/* ============================================================
   ABOUT SECTION
   JSON: About frame · fill #49BF00 (green) · 1360×532
   Left: white title + white text + buttons
   Right: 4 advantage groups (no card bg, white text on green)
   ============================================================ */
.about-section {
  background: #49bf00 !important; /* JSON: r=0.284 g=0.749 b=0 */
  padding: var(--card-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left column: all text white */
.about-section__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-section__left .section-title {
  color: var(--clr-white);
}

.about-section__text {
  font-size: 18px;
  font-weight: var(--fw-regular);
  color: var(--clr-white);
  line-height: 1.65;
  max-width: 420px;
}

.about-section__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* JSON: Frame 424 — white fill, dark text */
.btn--about-primary {
  background: var(--clr-white);
  color: #141414;
  border-color: transparent;
  font-size: 16px;
  padding: 16px 32px;
}
.btn--about-primary:hover { background: rgba(255,255,255,0.88); }

/* JSON: Frame 425 — no fill, white stroke 50% opacity, white text */
.btn--about-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.50);
  font-size: 16px;
  padding: 16px 32px;
}
.btn--about-outline:hover { border-color: rgba(255,255,255,0.85); }

/* ============================================================
   ADVANTAGES GRID
   JSON: GROUP "Advantages" — no background fills on child groups.
   White text directly on the green About background.
   ============================================================ */
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

.advantage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Icon wrapper — white tinted */
.advantage__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.advantage__title {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  letter-spacing: 0.08em;
}

.advantage__text {
  font-size: 14px;
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

/* ============================================================
   SERVICES SECTION
   JSON: GROUP "Service block" · 2 rows × 3 cards
   Each card: 443×243px · rounded 32 · ABSOLUTE layout
     - Title:  x=40  y=40  (top-left)
     - Price:  x=40  y=186 (bottom-left, ~40px from bottom)
     - Badge:  x=345 y=40  → right:40 top:40
     - Arrow:  x=379 y=179 → right:40 bottom:40
     - Image:  x=189 y=29  w=539 h=229 overflows right, clipped
   ============================================================ */
.services-section {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
}

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--block-gap);
}

/* ── Card shell ── */
.service-card {
  position: relative;
  height: 243px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #1e1e1e;         /* JSON: r=0.118 → #1e1e1e */
  cursor: pointer;
  outline-offset: 4px;
  transition: transform var(--t-mid);
}
.service-card:hover         { transform: translateY(-4px); }
.service-card:focus-visible { outline: 2px solid var(--clr-green); }

/* ── Image layer (absolutely placed, overflows right) ──
   JSON: RECTANGLE image · x=189 y=29 w=539 h=229
   As % of card (443×243):
     left  = 189/443 = 42.7%
     top   =  29/243 = 11.9%
     width = 539/443 = 121.7%  (overflows, clipped by overflow:hidden)
     height= 229/243 = 94.2%
*/
.service-card__img {
  position: absolute;
  left:   42.7%;
  top:    11.9%;
  width:  121.7%;
  height: 94.2%;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: left center;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__img { transform: scale(1.04); }

/* Card 3 (Покраска дисков): image top overflows — x=174 y=-9
   left = 174/443 = 39.3%  top = -9/243 = -3.7%  */
.service-card__img--overflow-top {
  left: 39.3%;
  top:  -3.7%;
  height: 110%;
}

/* Card 4 (Тюнинг выхлопной): image starts lower — x=183 y=85
   left = 183/443 = 41.3%  top = 85/243 = 35%  w=306/443=69%  h=204/243=84% */
.service-card__img--center-y {
  left:   41.3%;
  top:    35%;
  width:  69%;
  height: 84%;
}

/* Card 6 (Мойка авто): image starts further left — x=85 y=35
   left = 85/443 = 19.2%  top = 35/243 = 14.4%  w=696/443=157%  h=208/243=85.6% */
.service-card__img--left {
  left:   19.2%;
  top:    14.4%;
  width:  157%;
  height: 85.6%;
}

/* Image placeholder URLs — replace with your own */
/* .service-card__img--1 { background-image: url('your-image.jpg'); } */
/* .service-card__img--2 { background-image: url('your-image.jpg'); } */
/* .service-card__img--3 { background-image: url('your-image.jpg'); } */
/* .service-card__img--4 { background-image: url('your-image.jpg'); } */
/* .service-card__img--5 { background-image: url('your-image.jpg'); } */
/* .service-card__img--6 { background-image: url('your-image.jpg'); } */

/* ── Title — JSON: x=40 y=40 · white · 20px SemiBold ── */
.service-card__title {
  position: absolute;
  left: 40px;
  top:  40px;
  /* max-width keeps text from reaching the image area */
  max-width: 48%;
  color: var(--clr-white);
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  margin: 0;
  z-index: 1;
}

/* ── Price — JSON: x=40 y=186 · white 55% opacity ── */
.service-card__price {
  position: absolute;
  left:   40px;
  bottom: 40px;          /* 243 - 186 - 17(height) ≈ 40px */
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  font-weight: var(--fw-medium);
  margin: 0;
  z-index: 1;
}

/* ── Badge — JSON: Frame 430 · x=345 y=40 · w=58 h=25 · r=40 ── */
.badge {
  position: absolute;
  right: 40px;           /* 443 - 345 - 58 = 40px */
  top:   40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  z-index: 2;
}
.badge--promo {
  background: var(--clr-green);   /* #49BF00 */
  color: var(--clr-white);
}
/* Card 5: badge fill solid:20,20,20 → near-black */
.badge--dark {
  background: #141414;
  color: var(--clr-white);
}

/* ── Arrow button — JSON: x=379 y=179 · 24×24 · white fill ──
   right = 443 - 379 - 24 = 40px
   bottom= 243 - 179 - 24 = 40px  */
.service-card__arrow {
  position: absolute;
  right:  40px;
  bottom: 40px;
  width:  32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--t-fast), transform var(--t-fast);
}
.service-card:hover .service-card__arrow {
  background: var(--clr-green);
  transform: scale(1.08);
}

/* ── Card 5: GREEN background — JSON: fill rgb(73,191,0) = #49BF00 ── */
.service-card--green {
  background: #49bf00;
}
.service-card--green .service-card__img {
  background-color: rgba(0,0,0,0.08);
}
.service-card--green .service-card__price {
  color: rgba(255,255,255,0.75);
}
.service-card--green .service-card__arrow {
  background: rgba(255,255,255,0.25);
}
.service-card--green:hover .service-card__arrow {
  background: rgba(255,255,255,0.5);
  transform: scale(1.08);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delay for grid items */
.animate-in:nth-child(2) { transition-delay: 0.08s; }
.animate-in:nth-child(3) { transition-delay: 0.16s; }
.animate-in:nth-child(4) { transition-delay: 0.24s; }
.animate-in:nth-child(5) { transition-delay: 0.32s; }
.animate-in:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   MOBILE OVERLAY MENU
   ============================================================ */
@media (max-width: 960px) {
  .navbar__menu {
    /* Fullscreen overlay when open */
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 40px;
  }
  .navbar__menu.is-open {
    display: flex;
  }
  .navbar__link {
    font-size: 28px;
    font-weight: var(--fw-semibold);
  }
  .navbar__phone {
    font-size: 22px;
    font-weight: var(--fw-semibold);
    color: var(--clr-green);
  }
  .navbar__link::after { display: none; }

  /* Close button inside overlay */
  .navbar__menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: -1;
  }
}

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --card-pad:    56px;
    --card-pad-sm: 48px;
  }
  .header__title { font-size: 52px; }
  .navbar__menu  { gap: 40px; }
  .about-section { gap: 48px; }
  .work-card     { flex: 0 0 calc(33.333% - 11px); }
}

/* ============================================================
   RESPONSIVE — 960px
   ============================================================ */
@media (max-width: 960px) {
  :root {
    --page-pad:    24px;
    --card-pad:    40px;
    --card-pad-sm: 40px;
  }

  .navbar__services-btn { display: none; }
  .navbar__burger { display: flex; }

  .header {
    height: auto;
    min-height: 540px;
    padding: 32px 40px 56px;
    border-radius: var(--r-lg);
  }
  .header__title { font-size: 42px; max-width: 100%; }
  .header__br { display: none; }

  .about-section {
    grid-template-columns: 1fr;
    padding: 48px 40px;
    gap: 40px;
  }
  .about-section__text  { max-width: 100%; }
  .advantages           { grid-template-columns: 1fr 1fr; }

  .services-row  { grid-template-columns: repeat(2, 1fr); }
  .service-card  { height: 200px; }

  .work-card { flex: 0 0 calc(50% - 8px); }

  .social-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
  }
  .social-bar__label { max-width: none; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --page-pad:    16px;
    --card-pad:    32px;
    --card-pad-sm: 32px;
    --block-gap:   12px;
  }

  .header {
    padding: 24px 28px 40px;
    min-height: 500px;
    border-radius: var(--r-lg);
  }
  .header__title { font-size: 32px; }
  .header__content { gap: 28px; }

  .btn {
    font-size: 15px;
    padding: 18px 28px;
  }
  .btn--green { padding-left: 28px; }
  .btn--outline-white { padding: 18px 28px; }
  .btn--outline-dark  { padding: 18px 28px; }

  .section-title { font-size: 28px; }

  .works-section { padding: 32px 28px; gap: 28px; }
  .work-card     { flex: 0 0 calc(75% - 8px); }

  .about-section { padding: 32px 28px; }
  .advantages    { grid-template-columns: 1fr; gap: 24px; }

  .services-row  { grid-template-columns: 1fr; }
  .service-card  { height: 180px; }
  .service-card__title { font-size: 17px; max-width: 44%; }

  .social-bar__buttons { flex-direction: column; width: 100%; }
  .social-btn { width: 100%; justify-content: flex-start; padding: 16px 28px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .header__title { font-size: 26px; line-height: 1.15; }

  .header__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn { justify-content: center; width: 100%; }
  .btn--green { padding-left: 28px; }

  .work-card { flex: 0 0 calc(88% - 8px); }

  .about-section__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .about-section__buttons .btn { width: 100%; text-align: center; }

  .works-section__top { gap: 16px; }
  .section-title      { font-size: 24px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar__burger, .navbar__services-btn,
  .works-section__arrows, .social-bar { display: none; }
  .header__bg { filter: none; }
  .page-wrapper { padding: 0; }
}
