/* ==========================================================================
   Perspective Company — elektroinstalacije i slabostrujne instalacije, Crna Gora
   Bazni stilovi. Bez frameworka, bez gradijenta, bez sjena.
   ========================================================================== */

:root {
  /* Boje */
  --ink:        #0A1A26;
  --ink-2:      #14303D;
  --ink-3:      #1D4152;
  --paper:      #F4F5F2;
  --paper-2:    #E9ECE6;
  --white:      #FFFFFF;
  --accent:     #FFD400;
  --accent-ink: #0A1A26;
  --muted:      #5A6B75;
  --muted-dark: #A9BAC2;
  --line:       #DCE1DD;
  --line-dark:  rgba(255, 255, 255, .14);
  --ok:         #1E8E5A;
  --warn:       #B4451F;

  /* Тёмные поверхности — не зависят от темы */
  --dark-bg:    #0A1A26;
  --dark-bg-2:  #14303D;
  --dark-text:  #FFFFFF;
  --header-bg:  rgba(255, 255, 255, .96);

  /* Razmjere */
  --container: 1180px;
  --pad: clamp(18px, 4vw, 44px);
  --radius: 3px;
  --header-h: 70px;

  /* Tipografija */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------ Тёмная тема ------------------------------- */

[data-theme="dark"] {
  color-scheme: dark;
  --white:     #0E161C;
  --paper:     #131E25;
  --paper-2:   #18242C;
  --ink:       #E9F0F4;
  --ink-3:     #B9CCD8;
  --muted:     #98A9B4;
  --line:      #26333D;
  --header-bg: rgba(14, 22, 28, .94);
  --dark-bg:   #070C10;
  --dark-bg-2: #0F1A21;
  --dark-text: #F3F8FB;
}

@media (max-width: 620px) {
  .page-head__bg { opacity: .5; }
  .page-head--img::after {
    background:
      linear-gradient(180deg, rgba(7, 12, 16, .35) 0%, rgba(7, 12, 16, .75) 55%, var(--dark-bg) 100%),
      linear-gradient(100deg, rgba(7, 12, 16, .9) 0%, rgba(7, 12, 16, .6) 100%);
  }
}

[data-theme="dark"] .lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
/* Переключатель темы */
.theme-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5.2vw, 58px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); }

p { margin: 0; }
p + p { margin-top: 14px; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------ Layout ---------------------------------- */

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

.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.section--dark { background: var(--dark-bg); color: var(--dark-text); }

.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section--dark .section__head p { color: var(--muted-dark); }

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section--dark .kicker,
.hero .kicker { color: var(--accent); }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.section--dark .lead { color: var(--muted-dark); }

/* ------------------------------ Dugmad ---------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: #FFE044; --btn-bd: #FFE044; }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--dark-text);
  --btn-bd: rgba(255, 255, 255, .3);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-bd: rgba(255, 255, 255, .6); }

.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow svg { transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------ Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  flex: 0 0 auto;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
}
.brand__mark-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.brand__mark-img--dark { display: none; }
[data-theme="dark"] .brand__mark-img--light { display: none; }
[data-theme="dark"] .brand__mark-img--dark { display: block; }
.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { background: var(--paper); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
}

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Prekidač jezika */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  min-width: 38px;
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  background: var(--white);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { background: var(--paper); color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--dark-bg);
  color: var(--accent);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark-bg);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger span { position: relative; }
.burger span::before { content: ""; position: absolute; top: -6px; }
.burger span::after { content: ""; position: absolute; top: 6px; }
body.nav-open .burger span { transform: rotate(45deg); }
body.nav-open .burger span::before { transform: translateY(6px) rotate(-90deg); }
body.nav-open .burger span::after { opacity: 0; }

/* ------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  color: var(--dark-text);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark-bg) 0%, rgba(10, 26, 38, .92) 42%, rgba(10, 26, 38, .55) 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
}

.hero h1 { max-width: 19ch; }
.hero .lead { color: var(--muted-dark); max-width: 52ch; margin-top: 20px; }
.hero .btn-row { margin-top: 30px; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
}
.hero__points svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* Panel za brzi kontakt */
.panel {
  background: var(--dark-bg-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}
.panel__title { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(30, 142, 90, .22);
}
.panel__list { margin-top: 6px; }
.panel__list li + li { border-top: 1px solid var(--line-dark); }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--dark-text);
  transition: color .15s var(--ease);
}
.contact-row:hover { color: var(--accent); }
.contact-row__ico {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--accent);
}
.contact-row__ico svg { width: 19px; height: 19px; }
.contact-row__txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contact-row__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-row__value { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.panel .btn-row { margin-top: 18px; }
.panel .btn-row .btn { flex: 1 1 0; }
.panel__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-dark);
}

/* ---------------------------- Marquee (gradovi) -------------------------- */

.ticker {
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  border-block: 1px solid var(--accent-ink);
}
.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 11px 26px 11px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__sep { opacity: .45; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* --------------------------- Katalog usluga ------------------------------ */

.catalog { border-bottom: 1px solid var(--line); }

.catalog__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.05fr) 44px;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color .18s var(--ease), padding-left .18s var(--ease);
}
.catalog__thumb {
  position: relative;
  display: block;
  width: 128px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.catalog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.catalog__row:hover .catalog__thumb img { transform: scale(1.06); }
.catalog__num {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  background: rgba(10, 26, 38, .78);
  color: var(--dark-text);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}
.catalog__row:hover { background: var(--paper); padding-left: 10px; }
.catalog__title { font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.2; }
.catalog__title small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.catalog__desc { color: var(--muted); font-size: 15.5px; }
.catalog__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.catalog__row:hover .catalog__arrow { background: var(--accent); border-color: var(--accent); transform: translateX(2px); }

/* ------------------------------- Cards ----------------------------------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(20px, 2.4vw, 28px);
}
.card__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }

/* --------------------------- Split (tekst + slika) ----------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(24px, 4.5vw, 60px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
.split__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------ Liste ----------------------------------- */

.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15.5px;
}
.checklist svg { width: 18px; height: 18px; margin-top: 4px; color: var(--ink); flex: none; }
.checklist strong { font-weight: 800; }
.section--dark .checklist li { color: var(--muted-dark); }
.section--dark .checklist svg { color: var(--accent); }

.numbered { counter-reset: step; display: grid; gap: 0; }
.numbered li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--muted);
}
.numbered li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 3px;
}
.numbered strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }

/* ------------------------------ Koraci ---------------------------------- */

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--white); padding: 22px 18px; }
.steps__num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.steps h4 { font-size: 16px; margin: 10px 0 6px; }
.steps p { font-size: 14px; color: var(--muted); }

/* ------------------------------ Facts ----------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
}
.facts li { padding: clamp(18px, 2.4vw, 28px); border-right: 1px solid var(--line-dark); }
.facts li:last-child { border-right: 0; }
.facts__val { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.facts__lbl { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted-dark); }

/* ------------------------------ Page head -------------------------------- */

.page-head {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 68px);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
}
/* Шапка страницы с фотографией */
.page-head--img {
  position: relative;
  isolation: isolate;
  background-image: none;
}
.page-head__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .78;
  z-index: -2;
}
.page-head--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7, 12, 16, .15) 0%,
      rgba(7, 12, 16, .45) 55%,
      var(--dark-bg) 100%),
    linear-gradient(100deg,
      rgba(7, 12, 16, .92) 0%,
      rgba(7, 12, 16, .70) 42%,
      rgba(7, 12, 16, .28) 100%);
  z-index: -1;
}

.page-head h1 { max-width: 22ch; }
.page-head .lead { color: var(--muted-dark); margin-top: 16px; max-width: 62ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 20px;
}
.breadcrumb a { text-decoration: none; color: var(--muted-dark); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

/* ----------------------------- Accordion --------------------------------- */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: grid;
  grid-template-columns: 1fr 26px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  justify-self: end;
  color: var(--muted);
  transition: transform .18s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; max-width: 78ch; }

/* ------------------------------ Reviews ---------------------------------- */

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--white);
}
.review__stars { display: flex; gap: 3px; color: var(--accent); }
.review__stars svg { width: 15px; height: 15px; }
.review__stars--chars { font-size: 14px; letter-spacing: 3px; line-height: 1; }
.review__text { font-size: 15.5px; color: var(--ink); }
.review__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.review__name { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ------------------------------- Form ------------------------------------ */

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form { display: grid; gap: 16px; }
.hint { font-size: 12.5px; color: var(--muted); }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--ink);
}
.check-row label { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 26, 38, .1);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--warn); }
.field .error {
  font-size: 12.5px;
  color: var(--warn);
  min-height: 0;
}
.field .error:empty { display: none; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form__status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--ok);
  background: rgba(30, 142, 90, .07);
  color: #14603C;
}
.form__status:empty { display: none; }
.form__status[data-kind="error"] {
  border-color: var(--warn);
  background: rgba(180, 69, 31, .07);
  color: var(--warn);
}

.form__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0;
}
.form__divider::before,
.form__divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.contact-list__item:hover .contact-list__val { color: var(--ink-3); text-decoration: underline; }
.contact-list__ico {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.contact-list__ico svg { width: 19px; height: 19px; }
.contact-list__lbl {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list__val { font-weight: 700; overflow-wrap: anywhere; }

.info-block { margin-top: 26px; }
.info-block h3 { font-size: 16px; margin-bottom: 8px; }
.info-block p { color: var(--muted); font-size: 15px; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ------------------------------- CTA band -------------------------------- */

.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(36px, 5vw, 62px) 0; }
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.cta-band h2 { max-width: 26ch; }
.cta-band p { margin-top: 12px; font-size: 15.5px; max-width: 56ch; }
.cta-band .btn { --btn-bg: var(--dark-bg); --btn-fg: var(--dark-text); --btn-bd: var(--dark-bg); }

/* ------------------------------- Footer ---------------------------------- */

.site-footer { background: var(--dark-bg); color: var(--muted-dark); padding: clamp(40px, 5vw, 64px) 0 32px; font-size: 14.5px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.nav__link--light { color: var(--dark-text); }
.site-footer .brand__mark { background: transparent; }
.site-footer .brand__name { color: var(--dark-text); }
.site-footer .brand__tag { color: var(--muted-dark); }
.footer__about { margin-top: 16px; max-width: 34ch; line-height: 1.6; }
.footer__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 14px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { text-decoration: none; color: var(--muted-dark); }
.footer__links a:hover { color: var(--accent); }
.footer__contact { display: grid; gap: 10px; }
.footer__contact a { text-decoration: none; color: var(--dark-text); font-weight: 600; overflow-wrap: anywhere; }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal a { text-decoration: none; color: var(--muted-dark); }
.footer__legal a:hover { color: var(--accent); }

/* ------------------------------ Fab (kontakt) ---------------------------- */

.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 95; display: grid; justify-items: end; gap: 10px; }

.fab__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 26, 38, .22);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.fab__toggle:hover { transform: translateY(-2px); background: #FFE044; }
.fab__toggle svg { width: 24px; height: 24px; }
.fab__toggle .fab__close { display: none; }
body.fab-open .fab__toggle .fab__close { display: block; }
body.fab-open .fab__toggle .fab__open { display: none; }
body.fab-open .fab__toggle { background: var(--dark-bg); color: var(--accent); border-color: var(--ink); }

.fab__menu {
  display: grid;
  gap: 8px;
  justify-items: end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
body.fab-open .fab__menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 8px 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(10, 26, 38, .12);
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}
.fab__item:hover { transform: translateX(-3px); border-color: var(--ink); }
.fab__ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dark-text);
  flex: none;
}
.fab__ico svg { width: 16px; height: 16px; }
.fab__ico--wa { background: #25D366; }
.fab__ico--tg { background: #2AABEE; }
.fab__ico--vb { background: #7360F2; }
.fab__ico--ph { background: var(--dark-bg); }
.fab__ico--em { background: #B4451F; }

/* ------------------------------- Utils ----------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
}
.page-head .chip { border-color: rgba(255, 255, 255, .28); color: var(--muted-dark); background: transparent; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.mb-2 { margin-bottom: 22px; }

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

/* Коллаж в герое */
.hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(340px, 30vw, 440px);
  align-self: stretch;
}
.hero__shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: var(--dark-bg-2);
  height: 100%;
}
.hero__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shot--big { grid-row: span 2; }
.hero__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.hero__badge {
  position: absolute;
  left: -1px;
  bottom: -13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.hero__badge svg { width: 13px; height: 13px; }

/* Полоса контактов под героем */
.contact-strip {
  background: var(--dark-bg-2);
  color: var(--dark-text);
  border-top: 1px solid var(--line-dark);
}
.contact-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.contact-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  text-decoration: none;
  color: var(--dark-text);
  border-right: 1px solid var(--line-dark);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.contact-strip__item:first-child { padding-left: 0; }
.contact-strip__item:last-child { border-right: 0; }
.contact-strip__item:hover { color: var(--accent); background: rgba(255, 255, 255, .04); }
.contact-strip__ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--accent);
}
.contact-strip__ico svg { width: 17px; height: 17px; }
.contact-strip__lbl {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-strip__val {
  font-weight: 700;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .contact-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-strip__item:nth-child(2) { border-right: 0; }
  .contact-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .contact-strip__item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 620px) {
  .contact-strip__inner { grid-template-columns: minmax(0, 1fr); }
  .contact-strip__item { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-left: 0; }
  .contact-strip__item:last-child { border-bottom: 0; }
  .hero__badge { bottom: auto; top: 10px; left: 10px; }
  .hero__collage { height: 300px; }
}

/* ------------------------------ Dropdown (usluge) ------------------------ */

.nav__group { position: relative; }

.nav__toggle {
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.nav__toggle svg { transition: transform .18s var(--ease); opacity: .65; }
.nav__group.is-open .nav__toggle svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 96;
  min-width: 230px;
  display: none;
  gap: 1px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(10, 26, 38, .13);
}
.nav__group.is-open .nav__menu { display: grid; }
.nav__menu .nav__link { width: 100%; justify-content: flex-start; border-radius: 2px; }

.nav__group.is-current > .nav__toggle { position: relative; }
.nav__group.is-current > .nav__toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 26px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
}

/* ------------------------------ Portfolio -------------------------------- */

.work {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.work:hover { transform: translateY(-2px); border-color: var(--ink); }
.work__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.work__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(10, 26, 38, .2);
  border-radius: 2px;
}
.work__num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  opacity: .2;
}
.work__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.work__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.work h3 { font-size: 17px; line-height: 1.25; }
.work p { font-size: 14.5px; color: var(--muted); }

/* ------------------------------ Gallery ---------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.shot {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot > a { display: block; overflow: hidden; cursor: zoom-in; }
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.shot__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .55;
}

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------ Modal (callback) ------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(10, 26, 38, .58);
}
.modal.is-open { display: grid; }
body.modal-open { overflow: hidden; }

.modal__box {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 18px 50px rgba(10, 26, 38, .22);
}
.modal__box h2 { font-size: clamp(20px, 2.4vw, 24px); padding-right: 40px; }
.modal__lead { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.modal .form { margin-top: 16px; gap: 12px; }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.modal__close:hover { background: var(--paper); }
.modal__close svg { width: 16px; height: 16px; }

.fab__item { cursor: pointer; font-family: var(--font); text-align: left; }

/* ------------------------------ Responsive ------------------------------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .catalog__row { grid-template-columns: 112px minmax(0, 1fr) 44px; }
  .catalog__thumb { width: 112px; }
  .catalog__desc { display: none; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 1400px) {
  .header__actions .btn--header { display: none; }
}

@media (max-width: 1200px) {
  :root { --header-h: 64px; }
  .burger { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 14px var(--pad) 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { min-height: 52px; padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav__link[aria-current="page"]::after { left: 4px; right: auto; bottom: 10px; width: 26px; }
  .nav__link:hover { background: transparent; }

  .nav__group { display: block; }
  .nav__toggle { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav__toggle::after { display: none; }
  .nav__menu {
    position: static;
    min-width: 0;
    padding: 0 0 4px 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
    gap: 0;
  }
  .nav__menu .nav__link { border-bottom: 0; min-height: 44px; padding: 10px 4px; font-size: 15px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > *:first-child { order: 0; }
  .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .facts li:last-child { border-bottom: 0; }
  .catalog__row { grid-template-columns: 84px minmax(0, 1fr) 38px; gap: 14px; }
  .catalog__thumb { width: 84px; }
  .catalog__arrow { width: 38px; height: 38px; }
  .btn-row .btn { flex: 1 1 100%; }
  /* на телефоне оставляем подписи, но компактно */
  .fab__item { padding: 6px 8px 6px 12px; gap: 8px; min-height: 40px; font-size: 13px; }
  .fab__item > span:not(.fab__ico) { display: inline; font-size: 13px; }
  .fab__ico { width: 28px; height: 28px; }
  .fab__ico svg { width: 16px; height: 16px; }
  .brand__tag { display: none; }

  /* kompaktna zaglavlja na telefonu */
  .site-header__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__mark-img { width: 28px; height: 28px; }
  .brand__name { font-size: 16px; }
  .header__actions { gap: 8px; }
  .lang-switch button { min-width: 30px; min-height: 32px; padding: 4px 5px; font-size: 11px; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 15px; height: 15px; }
  .burger { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .fab, .ticker, .cta-band, .site-footer { display: none; }
  body { color: #000; background: #fff; }
}


/* ------------------------------ Radovi ---------------------------------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.works-grid a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.works-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.works-grid a:hover img { transform: scale(1.055); }

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}


/* Очень узкие экраны (iPhone SE 1st gen и подобные) */
@media (max-width: 340px) {
  .brand__name { display: none; }
  .lang-switch button { min-width: 26px; font-size: 10px; padding: 4px 3px; }
  .theme-toggle { width: 32px; height: 32px; }
  .burger { width: 36px; height: 36px; }
  .site-header__inner, .header__actions { gap: 6px; }
}


/* ------------------------------ Кейсы ----------------------------------- */

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.05); }
.case-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.case-card__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card h3 { font-size: 18px; line-height: 1.25; }
.case-card p { font-size: 14.5px; color: var(--muted); }

.review-cta {
  margin-top: 28px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.review-cta p { font-size: 14.5px; color: var(--muted); max-width: 52ch; }
