/* ================================================================
   DESIGN TOKENS — усі кольори тут, більше ніде
   ================================================================ */
:root {
  /* Фони */
  --bg:        #ffffff;   /* legacy alias: white canvas */
  --silver:    #ffffff;   /* legacy alias: white canvas */
  --white:     #ffffff;   /* картки поверх срібла */

  /* Navy-палітра (від темного до світлого) */
  --navy-900:  #0a1522;   /* майже чорний */
  --navy-800:  #111d2e;   /* dark navy — MODEL — основний темний */
  --navy-600:  #1a2e46;   /* середній navy */
  --navy-400:  #2a4e78;   /* whiten navy — LAB — акцент */
  --navy-300:  #3a6494;   /* світліший акцент */
  --navy-200:  #6a90b8;   /* приглушений */
  --navy-100:  #a8c4d8;   /* дуже світлий */

  /* Семантичні псевдоніми */
  --dark:      var(--navy-800);
  --dark2:     var(--navy-600);
  --accent:    var(--navy-400);
  --accent2:   var(--navy-600);
  --muted:     #5b6472;

  /* Текст */
  --text:       var(--navy-800);
  --text-light: var(--navy-200);

  /* UI */
  --border:     #c8d4e0;
  --line:          rgba(17, 29, 46, 0.10);
  --line-strong:   rgba(17, 29, 46, 0.30);
  --line-selected: rgba(17, 29, 46, 0.70);
  --radius:     3px;
  --shadow:     0 2px 16px rgba(17,29,46,0.10);
  --transition: 0.2s ease-out;

  /* Fonts */
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --mono:         var(--font-mono);

  /* Type scale: 12 / 14 / 16 / 20 / 32 / 40 px */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.25rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.5rem;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--white); }
body { font-family: var(--font-body); font-size: var(--fs-base); color: var(--text); background: var(--white); line-height: 1.6; }
main { background: var(--silver); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Page frame: 1280px of content, centred, with a 24px gutter on both sides at every width
   (16px on phones); follows the viewport below 1328px */
.frame { width: 1280px; margin: 0 auto; }
.frame--page { width: 1328px; padding: 0 24px; }
.header, .footer { padding: 0 24px; }
@media (max-width: 1327.98px) {
  .frame, .frame--page { width: auto; }
}

/* ================================================================
   LOGO — shared by header and footer
   ================================================================ */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.footer .logo__mark { width: 36px; height: 36px; }
.logo__text { display: flex; flex-direction: column; gap: 4px; line-height: 1; white-space: nowrap; }
.logo__name { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.logo__tagline { font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; color: var(--muted); }

/* ================================================================
   HEADER — світлий, текст темний
   ================================================================ */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); }
.header__inner { display: flex; align-items: center; height: 72px; border-bottom: 1px solid var(--line); }
/* Equal side columns keep the nav on the page axis */
.header__brand, .header__right { flex: 1 1 0; }

.header__nav { display: flex; align-items: center; gap: 40px; }
.header__nav > a,
.header__nav .dropdown > a {
  position: relative; padding: 4px 0;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.header__nav > a::after,
.header__nav .dropdown > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--text);
  transform: scaleX(0); transition: transform var(--transition);
}
.header__nav > a:hover::after,
.header__nav .dropdown > a:hover::after { transform: scaleX(1); }

.header__nav .dropdown { position: relative; }
.header__nav .chevron { margin-left: 4px; font-size: 0.625rem; }
.header__nav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 240px; margin-top: 16px; padding: 8px 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
}
.header__nav .dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.header__nav .dropdown:hover .dropdown-menu,
.header__nav .dropdown:focus-within .dropdown-menu { display: block; }
.header__nav .dropdown-menu a {
  display: block; padding: 8px 24px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  transition: color var(--transition);
}
.header__nav .dropdown-menu a:hover { color: var(--text); }

.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.header__lang { display: flex; gap: 16px; }
.header__lang a {
  padding: 4px 0; border-bottom: 1px solid transparent;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted);
  transition: color var(--transition);
}
.header__lang a:hover { color: var(--text); }
.header__lang a.is-active { color: var(--text); border-bottom-color: var(--text); }

.header__phone { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; white-space: nowrap; color: var(--text); }
.header__burger { display: none; flex-direction: column; gap: 6px; padding: 8px 0; background: none; border: none; cursor: pointer; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--text); }

/* ================================================================
   MOBILE NAV
   ================================================================ */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  flex-direction: column; padding: 0 24px; overflow-y: auto;
  background: var(--white);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  height: 72px; border-bottom: 1px solid var(--line);
}
.mobile-nav__close { background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--text); }
.mobile-nav > a {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.mobile-nav > a.mobile-nav__phone {
  padding: 24px 0; border-bottom: none;
  font-family: var(--font-mono); font-weight: 700; letter-spacing: normal;
}

/* ================================================================
   HERO
   ================================================================ */
/* Banner sits in the page frame: fixed 1280px wide, follows the viewport below 1328px */
.hero__banner { position: relative; width: 100%; height: 640px; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; background: center / cover no-repeat; }
.hero__slide:not(:first-child) { transform: translateX(100%); }
.hero__banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 21, 34, 0.55) 0%, rgba(10, 21, 34, 0.30) 55%, rgba(10, 21, 34, 0.20) 100%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 1; padding: 0 80px; /* keeps text clear of the arrows on tablets */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
}
.hero__title {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3em;
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 600; line-height: 1.1;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__label { margin-top: 8px; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.hero__cta { display: flex; gap: 16px; margin-top: 32px; }
.hero__arrow {
  position: absolute; top: 50%; z-index: 1; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); background: none; color: var(--white); cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.hero__arrow:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.85); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }
/* Dots: 8px vertical padding enlarges the click area; the visible line sits 16px above the banner edge */
.hero__dots { position: absolute; bottom: 8px; left: 50%; z-index: 1; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dot { width: 16px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.hero__dot::before { content: ''; display: block; height: 2px; background: rgba(255, 255, 255, 0.4); }
.hero__dot.is-active { width: 24px; }
.hero__dot.is-active::before { background: var(--white); }
.hero__desc { padding: 24px 0 48px; text-align: center; color: var(--muted); letter-spacing: 0.03em; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px; border-radius: 6px; white-space: nowrap;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn--accent { background: var(--text); color: var(--white); }
.btn--accent:hover { background: var(--accent); }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, 0.85); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost { border: 1px solid rgba(17, 29, 46, 0.25); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

.text-link {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--text); padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.page-head__crumbs { margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); text-align: center; }
.section__title { margin-top: 27px; } /* space of the removed section number, keeps section heights */
.section__title, .page-head__title {
  margin-bottom: 32px; text-align: center; color: var(--text);
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase;
}

/* ================================================================
   PAGE HEAD (внутрішні сторінки): крихти + заголовок у мові головної
   ================================================================ */
.page-head { padding-top: 48px; text-align: center; }
.page-head__crumbs a { transition: color var(--transition); }
.page-head__crumbs a:hover { color: var(--text); }
.page-body { padding-bottom: 48px; }

/* ================================================================
   SERVICES ACCORDION
   ================================================================ */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__head { display: flex; align-items: center; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; }
.service__head::-webkit-details-marker { display: none; }
.service__title {
  flex: 1; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color var(--transition);
}
.service__head:hover .service__title, .service[open] .service__title { color: var(--accent); }
.service__icon { font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--muted); transition: transform var(--transition), color var(--transition); }
.service[open] .service__icon { transform: rotate(45deg); color: var(--accent); }
/* Open/close animation: grid rows 0fr -> 1fr; JS adds .is-closing before closing */
.service__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.service[open] .service__body { grid-template-rows: 1fr; }
.service.is-closing .service__body { grid-template-rows: 0fr; }
.service__inner { overflow: hidden; }
.service__cols { display: flex; gap: 48px; padding: 0 0 40px; }
.service__text, .service__img { flex: 1 1 50%; min-width: 0; }
.service__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service__desc { margin-bottom: 24px; font-size: 0.875rem; line-height: 1.75; color: var(--muted); }
.service__link { font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.service__link:hover { text-decoration: underline; }
.service__img { height: 256px; object-fit: cover; border-radius: 6px; }
/* Додаткові послуги: фото 300×300, тому квадрат 256px без розтягування, без посилання під текстом */
.services--extra .service__img { flex: 0 0 256px; }
.services--extra .service__desc { margin-bottom: 0; }

/* ================================================================
   WORKS (tabs + selected work; phone: tiles)
   ================================================================ */
.tabs { display: flex; justify-content: center; gap: 32px; margin: -8px 0 32px; }
.tab {
  font: inherit; background: none; border: 0; cursor: pointer;
  padding-bottom: 4px; border-bottom: 1px solid transparent; white-space: nowrap;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--text); }

.works { display: flex; gap: 40px; }
.work-main { flex: 0 0 60%; min-width: 0; }
.work-main__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.work-main__title { margin-top: 24px; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.work-main__meta { margin-top: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.work-main__more { margin-top: 24px; }

/* As tall as the selected work; the list scrolls inside */
.works__side { flex: 1 1 0; min-width: 0; position: relative; }
.works__side-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.works__list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.work-item {
  font: inherit; color: inherit; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px; flex-shrink: 0; padding: 8px; text-align: left;
  border: 1px solid var(--line); border-radius: 6px; transition: border-color var(--transition);
}
.work-item:hover { border-color: var(--line-strong); }
.work-item.is-selected { border-color: var(--line-selected); }
.work-item__img { flex: 0 0 28%; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.work-item__title { display: block; font-size: 0.875rem; font-weight: 700; line-height: 1.4; }
.work-item__meta { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.works__single { flex: 1; font-size: 0.875rem; color: var(--muted); }
.works__single a { color: var(--text); border-bottom: 1px solid var(--text); }
.works__all { margin-top: 24px; }

.work-tiles { display: none; }
.work-tile { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.work-tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-tile__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 16px 16px; color: var(--white);
  background: linear-gradient(to top, rgba(10, 21, 34, 0.80) 0%, rgba(10, 21, 34, 0.45) 50%, rgba(10, 21, 34, 0) 100%);
}
.work-tile__title { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.work-tile__meta { margin-top: 4px; font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.85; }
.works__all-mobile { display: none; }

/* ================================================================
   WORK GRID (сторінки робіт): 3 картки в ряд, ширини у % від рамки
   ================================================================ */
.work-grid { display: flex; flex-wrap: wrap; gap: 40px 2%; }
.work-card { flex: 0 0 32%; min-width: 0; }
.work-card__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: 6px; transition: border-color var(--transition);
}
.work-card:hover .work-card__img { border-color: var(--line-strong); }
.work-card__title { margin-top: 16px; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.work-card__meta { margin-top: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

/* ================================================================
   ADVANTAGES
   ================================================================ */
.advantages { display: flex; }
.advantage { flex: 1 1 25%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 24px; text-align: center; }
.advantage + .advantage { border-left: 1px solid var(--line); }
.advantage__icon { width: 40px; height: 40px; margin-bottom: 8px; }
.advantage__title { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.advantage__text { font-size: 0.875rem; color: var(--muted); }

/* ================================================================
   FACTS (підпис + значення): мета проєкту, контакти
   ================================================================ */
.fact dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); }
.fact dd { margin-top: 8px; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.fact a { transition: color var(--transition); }
.fact a:hover { color: var(--accent); }

/* ================================================================
   CONTACTS: факти 37.5% + карта
   ================================================================ */
.contacts { display: flex; gap: 40px; }
.contacts__info { flex: 0 0 37.5%; min-width: 0; }
.contacts__facts { display: flex; flex-direction: column; gap: 24px; }
.contacts__phone { font-family: var(--font-mono); }
.contacts__cta { margin-top: 32px; }
.contacts__map { flex: 1 1 0; min-width: 0; }
.contacts__map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 6px; }

/* ================================================================
   PROJECT (сторінка роботи): факти, галерея 3 в ряд, опис вузькою колонкою
   ================================================================ */
.project__meta { display: flex; justify-content: center; margin-bottom: 40px; }
.project__meta .fact { padding: 0 32px; text-align: center; }
.project__meta .fact + .fact { border-left: 1px solid var(--line); }
.project__video { width: 66%; margin: 0 auto 40px; }
.project__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.project__video-file { display: block; width: 100%; max-height: 70vh; border-radius: 6px; background: var(--dark); }
.project__desc { max-width: 720px; margin: 40px auto 0; text-align: center; color: var(--muted); line-height: 1.7; }
.project__all { margin-top: 40px; text-align: center; }

/* ================================================================
   GALLERY (layouts/partials/gallery.html): грід 3 в ряд, клік — лайтбокс з навігацією
   ================================================================ */
.gallery { display: flex; flex-wrap: wrap; gap: 24px 2%; }
.gallery__item {
  flex: 0 0 32%; min-width: 0; padding: 0; overflow: hidden; cursor: zoom-in;
  background: none; border: 1px solid var(--line); border-radius: 6px; transition: border-color var(--transition);
}
.gallery__item:hover { border-color: var(--line-strong); }
.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ================================================================
   404
   ================================================================ */
.not-found { padding-top: 64px; padding-bottom: 96px; text-align: center; }
.not-found__code { font-family: var(--font-mono); font-size: 6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--navy-100); }
.not-found__title { margin: 16px 0; }
.not-found__text { max-width: 480px; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.not-found__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ================================================================
   STATS
   ================================================================ */
.stats { display: flex; justify-content: center; text-align: center; }
.stat { flex: 0 0 16.25%; padding: 0 32px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__number { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.stat__label { margin-top: 8px; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* ================================================================
   CLIENTS
   ================================================================ */
.clients { display: flex; flex-direction: column; gap: 32px; }
.clients__row { display: flex; justify-content: center; align-items: center; gap: 40px; }
.clients__logo { height: 40px; width: auto; filter: grayscale(1) opacity(0.5); transition: filter var(--transition); }
.clients__logo:hover { filter: none; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--white); font-size: 0.875rem; }
.footer__inner { padding-top: 48px; border-top: 1px solid var(--line); }
.footer__cols { display: flex; gap: 48px; margin-bottom: 48px; }
.footer__col { flex: 1 1 25%; min-width: 0; }
.footer__col--wide { flex-basis: 37.5%; }
.footer__desc { max-width: 240px; margin-top: 16px; color: var(--muted); line-height: 1.7; }
.footer__heading { margin-bottom: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__list a { transition: color var(--transition); }
.footer__list a:hover { color: var(--accent); }
.footer__phone { font-family: var(--font-mono); font-weight: 700; }
.footer__cta { margin-top: 24px; }
.footer__copy { padding: 24px 0; border-top: 1px solid var(--line); text-align: center; font-size: 0.75rem; color: var(--muted); }

/* ================================================================
   MODAL
   ================================================================ */
.modal { display: none; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 29, 46, 0.55); }
.modal__box {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  padding: 48px 40px 40px; background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 6px; text-align: center;
}
.modal__close {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: none; border: 0; color: var(--muted); cursor: pointer; transition: color var(--transition);
}
.modal__close:hover { color: var(--text); }
.modal__title { margin-bottom: 24px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.modal__links { display: flex; flex-direction: column; gap: 8px; }
.modal__link { width: 100%; gap: 12px; text-transform: none; letter-spacing: normal; }
.modal__link--phone { font-family: var(--font-mono); font-weight: 700; }

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox { display: none; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 21, 34, 0.96); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: default; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: none; border: 0; color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: color var(--transition);
}
.lightbox__close:hover { color: var(--white); }
.lightbox__img { max-height: calc(100% - 48px); }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: none;
  color: rgba(255, 255, 255, 0.8); cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.lightbox__arrow:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.8); }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }
.lightbox__counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7);
}
.lightbox--single .lightbox__arrow, .lightbox--single .lightbox__counter { display: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* Below 1100px the desktop nav no longer fits next to the logo and phone */
@media (max-width: 1099.98px) {
  .header__nav, .header__phone { display: none; }
  .header__burger { display: flex; }
}

@media (max-width: 900px) {
  .contacts { flex-direction: column; gap: 32px; }
  .contacts__info { flex-basis: auto; }
  .work-card { flex-basis: 49%; }

  /* Tablet: brand column on its own row, so the CTA button fits the contacts column */
  .footer__cols { flex-wrap: wrap; }
  .footer__col--wide:first-child { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .frame--page { padding: 0 16px; }
  .hero__banner { height: 420px; }
  .hero__content { padding: 0 16px; }
  .hero__title { flex-direction: column; gap: 0; font-size: 2rem; letter-spacing: 0.08em; line-height: 1.05; }
  .hero__label { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero__cta { flex-direction: column; gap: 8px; width: 100%; margin-top: 24px; }
  .hero__cta .btn { width: 100%; }
  .hero__arrow { display: none; }
  .hero__desc { padding: 16px 0 32px; font-size: 0.875rem; }

  .section { padding: 32px 0; }
  .section__title, .page-head__title { font-size: 1.5rem; margin-bottom: 24px; }
  .page-head { padding-top: 32px; }
  .page-body { padding-bottom: 32px; }

  .service__head { gap: 16px; }
  .service__cols { flex-direction: column; gap: 24px; padding: 0 0 32px; }
  .service__img { flex: none; width: 100%; }

  .tabs { justify-content: flex-start; gap: 16px; margin-top: 0; overflow-x: auto; }
  .works { display: none; }
  .work-tiles { display: flex; flex-direction: column; gap: 16px; }
  .works__all-mobile { display: block; margin-top: 24px; text-align: center; }

  .header, .footer, .mobile-nav { padding: 0 16px; }

  .work-grid { gap: 24px; }
  .work-card { flex-basis: 100%; }

  .project__meta { margin-bottom: 32px; }
  .project__meta .fact { padding: 0 16px; }
  .project__video { width: 100%; margin-bottom: 32px; }
  .gallery { gap: 16px 2%; }
  .gallery__item { flex-basis: 49%; }
  .lightbox__arrow { display: none; }
  .project__desc, .project__all { margin-top: 32px; }

  .advantages { flex-wrap: wrap; row-gap: 32px; }
  .advantage { flex-basis: 50%; padding: 0 8px; }
  .advantage:nth-child(odd) { border-left: 0; }

  .clients { gap: 16px; }
  .clients__row { flex-wrap: wrap; gap: 16px 24px; }
  .clients__logo { height: 32px; }

  .stats { flex-wrap: wrap; row-gap: 24px; }
  .stat { flex-basis: 50%; padding: 0 8px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat__number { font-size: 2rem; }

  .footer__inner { padding-top: 32px; }
  .footer__cols { flex-direction: column; gap: 24px; margin-bottom: 32px; }

  .modal__box { padding: 40px 24px 32px; }

  .not-found { padding-top: 32px; padding-bottom: 48px; }
  .not-found__code { font-size: 4.5rem; }
  .not-found__actions { flex-direction: column; }
}
