/* Нев 2000 – основни стилове (mobile-first, breakpoint 768px) */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cyrillic-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Цветове (от мокъпите) */
  --blue: #0b4aa2;
  --blue-hover: #083c87;
  --blue-soft: #1b5bb3;
  --navy: #0a3274;
  --ink: #1f3d6c;
  --muted: #4d6b97;
  --white: #fff;
  --page: #f3f9fe;
  --sky-50: #f6fbff;
  --sky-100: #eaf5fe;
  --sky-200: #dcebf9;
  --line: #d9e8f7;
  --line-strong: #c3d9f1;
  --focus: #f0a400;

  --shadow-card: 0 4px 18px rgba(11, 74, 162, 0.07);
  --shadow-lift: 0 10px 28px rgba(11, 74, 162, 0.13);
  --shadow-circle: 0 2px 6px rgba(11, 74, 162, 0.08);

  --radius: 8px;
  --radius-sm: 6px;
  --container: 1416px;
  --gutter: clamp(16px, 3.86vw, 26px);
  --header-height: clamp(64px, 12.16vw, 82px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: clamp(24px, 4vw, 60px); }
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 13px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  /* Montserrat има „български“ курсивни форми (locl), мокъпите са с класическа кирилица */
  font-feature-settings: "locl" 0;
}
button, input { font-feature-settings: inherit; }
body.no-scroll { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 0;
  padding: 13px 22px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(11, 74, 162, 0.22);
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 6px 16px rgba(11, 74, 162, 0.3); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 8px 14px 8px 18px;
  font-size: 14px;
  min-height: 38px;
}
.btn-outline:hover { background: var(--sky-100); }
.btn-outline .icon { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 0.25s var(--ease); }

/* ---------- Хедър ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3vw, 20px);
  min-height: var(--header-height);
}
.logo { display: block; min-width: 0; margin-right: auto; }
.logo picture { display: block; }
.logo img { width: clamp(220px, 72vw, 300px); height: auto; }

.burger {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(40px, 7.12vw, 48px);
  height: 48px;
  margin-right: 0;
  background: none;
  border: 0;
  color: var(--blue);
  border-radius: var(--radius-sm);
}
.burger .icon { width: clamp(28px, 4.9vw, 33px); height: clamp(28px, 4.9vw, 33px); stroke-width: 2; }
.burger .icon-close,
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(11, 74, 162, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
}
.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.main-nav ul { padding: 8px var(--gutter) 16px; }
.main-nav a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--sky-200);
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a.is-active { color: var(--blue); font-weight: 700; }

@media (min-width: 560px) and (max-width: 959.98px) {
  .logo { margin-left: clamp(8px, 3.26vw, 22px); }
  .logo img { width: clamp(360px, 64vw, 460px); }
  .burger { margin-right: 8px; }
}

@media (min-width: 960px) {
  .header-inner { height: 82px; min-height: 82px; gap: 20px; }
  .logo { flex: none; margin-right: 0; }
  .logo img { width: 300px; }
  .burger { display: none; }
  .main-nav {
    position: static;
    flex: 1;
    display: flex;
    justify-content: center;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .main-nav ul { display: flex; gap: clamp(12px, 1.3vw, 20px); padding: 0; }
  .main-nav a {
    position: relative;
    padding: 29px 8px 28px;
    border: 0;
    font-size: 15.5px;
    color: #17407e;
    transition: color 0.2s;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }
  .main-nav a:hover { color: var(--blue); }
  .main-nav a:hover::after { transform: scaleX(0.5); }
  .main-nav a.is-active::after { transform: scaleX(1); }

}
@media (min-width: 1280px) {
  .header-inner { gap: 0; }
  .logo { margin-left: 34px; margin-right: clamp(28px, calc((100vw - 1200px) * 0.3), 100px); }
  .logo img { width: 355px; }
  .main-nav { flex: none; margin-left: auto; }
  .card-title .br-desktop { display: inline; }
}

/* ---------- Hero ---------- */
.services { background: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--sky-100) 0%, #eef7ff 55%, #e3f0fc 100%);
  border-bottom: 1px solid var(--line);
  min-height: clamp(166px, 31.45vw, 212px);
}
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 35%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 35%, #000 80%);
}
.hero-content {
  position: relative;
  padding-block: clamp(20px, 4.45vw, 30px) 20px;
}
.eyebrow {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero h1 {
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-size: clamp(28px, 5.94vw, 39px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: normal;
  color: var(--navy);
}
.hero-text {
  margin-top: 8px;
  max-width: 60%;
  font-size: clamp(14px, 2.67vw, 18px);
  line-height: 1.25;
  color: #1d4a8c;
  text-shadow: 0 0 12px rgba(234, 245, 254, 0.9);
}

@media (min-width: 768px) {
  .hero { min-height: 0; }
  .hero-media { width: 46%; }
  .hero-media img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
  .hero-content { padding-block: 22px 11px; }
  .eyebrow { font-size: 14px; line-height: 18px; letter-spacing: 0.07em; font-weight: 500; color: var(--blue); }
  .hero h1 { margin-top: 4px; font-size: 42px; line-height: 48px; }
  .hero-text { margin-top: 4px; max-width: min(650px, 58%); font-size: 16px; line-height: 22px; }
}

/* ---------- Карти на услугите ---------- */
.cards {
  display: grid;
  gap: 16px;
  padding-block: 20px 24px;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-lift); }
.card.is-active { border-color: var(--line-strong); box-shadow: var(--shadow-card); }

.card-media { position: relative; min-width: 0; }
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(14px, 2.37vw, 16px) 12px clamp(12px, 2.37vw, 16px) clamp(28px, 10.6vw, 72px);
}
.icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1659b5, var(--blue) 60%, #093f8d);
  color: var(--white);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-circle);
}
.icon-circle .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.card .icon-circle {
  position: absolute;
  left: clamp(-22px, -3.26vw, -14px);
  top: 4px;
  width: clamp(54px, 13.1vw, 88px);
  height: clamp(54px, 13.1vw, 88px);
  border-width: clamp(4px, 1.2vw, 8px);
}
.card .icon-circle .icon { width: 58%; height: 58%; }
.card-title {
  font-family: Arial, sans-serif;
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.br-desktop { display: inline; }
.card-text {
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: clamp(13.5px, 2.37vw, 16px);
  line-height: 1.35;
  color: var(--ink);
}
.card .more { margin-top: auto; }
.card-text + .more { margin-top: 10px; }
.card .more { font-size: clamp(13px, 2.3vw, 15.5px); min-height: clamp(35px, 5.94vw, 40px); }
.more-down { display: none; }
.more[aria-expanded="true"] .more-right { transform: rotate(90deg); }

/* Keep the reference badge clear of the title on the narrowest phone screens. */
@media (max-width: 379.98px) {
  .card-body { padding-left: clamp(18px, calc(40vw - 110px), 42px); }
  .card .icon-circle { left: clamp(-40px, calc(43.333vw - 178.666px), -14px); }
  .card .more { max-width: 100%; padding-inline: 12px; gap: 8px; }
  .contacts .contact-item { gap: 12px; padding-inline: 14px; }
  .contacts .contact-item .icon-circle { width: 44px; height: 44px; }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.82vw, 28px);
    padding-block: 22px 28px;
  }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: var(--radius); }
  .card:hover { transform: translateY(-2px); }
  .card-media { aspect-ratio: 454 / 120; }
  .card-media img { position: absolute; aspect-ratio: auto; height: 100%; }
  .card-body {
    display: block;
    padding: 8px clamp(14px, 1.5vw, 20px) 6px;
  }
  .card .icon-circle {
    position: absolute;
    left: 13px;
    top: -24px;
    width: clamp(62px, 5.6vw, 82px);
    height: clamp(62px, 5.6vw, 82px);
    margin: 0;
    border-width: 5px;
  }
  .card .icon-circle .icon { width: 58%; height: 58%; }
  .card-title {
    min-height: 44px;
    margin-left: clamp(68px, 5.35vw, 82px);
    padding-top: 0;
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 22px;
  }
  .card-text {
    margin-top: 10px;
    font-size: clamp(13.5px, 1vw, 14.5px);
    font-family: var(--font);
    line-height: 20px;
  }
  .card .more, .card-text + .more { min-height: 35px; margin-top: 10px; padding-block: 7px; font-size: 13px; }
  .more-down { display: block; }
  .more-right { display: none; }
  .more[aria-expanded="true"] .more-down { transform: rotate(180deg); }
}

/* ---------- Панел „Виж повече“ ---------- */
.panel {
  margin-bottom: 28px;
  background: linear-gradient(180deg, #eef7ff 0%, var(--white) 120px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
  scroll-margin-top: 12px;
}
.panel.is-open { opacity: 1; transform: none; }

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  background: rgba(234, 245, 254, 0.75);
  border-bottom: 1px solid var(--line);
}
.panel-back, .panel-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 8px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.panel-back .icon { width: 18px; height: 18px; stroke-width: 2.4; color: var(--blue); }
.panel-x { width: 36px; justify-content: center; color: var(--blue); }
.panel-x .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.panel-back:hover, .panel-x:hover { background: var(--sky-200); color: var(--blue); }

.panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 18px 16px 20px;
}
.panel-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.panel-head { margin-top: 6px; }
.panel .panel-head .icon-circle { display: none; }
.panel-title {
  font-family: Arial, sans-serif;
  font-size: clamp(24px, 4.45vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
.panel-sub {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: var(--blue);
}
.panel-text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.benefits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--blue-soft);
}
@media (max-width: 399.98px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .benefits li { flex-direction: row; gap: 8px; text-align: left; font-size: 12.5px; }
  .benefits li:nth-child(3) { border-left: 0; }
  .benefits .icon { width: 28px; height: 28px; }
}
.benefits li + li { border-left: 1px solid var(--line-strong); }
.benefits .icon { width: 34px; height: 34px; stroke-width: 1.5; color: var(--blue); }
.benefits span { text-wrap: balance; }

.panel-cta { width: 100%; padding-block: 15px; font-size: 16px; font-weight: 500; }
.panel-cta .icon { width: 22px; height: 22px; stroke-width: 1.7; }
.panel-cta .cta-chevron { width: 18px; height: 18px; stroke-width: 2.2; }

@media (min-width: 560px) {
  .panel { position: relative; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; }
  .panel-bar { border: 0; background: transparent; }
  .panel-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 18px;
    padding: 8px 32px 20px;
  }
  .panel-info { grid-column: 1; grid-row: 1; }
  .panel .gallery { grid-column: 2; grid-row: 1; align-self: start; margin-top: -10px; }
  .benefits, .panel-cta { grid-column: 1 / -1; }
  .panel-text { font-size: 15.5px; line-height: 1.4; }
  .benefits li { font-size: 15.5px; gap: 10px; }
  .benefits .icon { width: 42px; height: 42px; }
  .panel-cta { min-height: 58px; font-size: 20px; border-radius: 14px; }
}

@media (min-width: 560px) and (max-width: 959.98px) {
  .hero-content { padding-inline: 8px; padding-bottom: 18px; }
  .panel-body { padding-top: 4px; }
  .panel-sub { font-size: 14.75px; line-height: 20px; }
  .panel-text { font-family: Arial, sans-serif; font-size: 16px; line-height: 1.3; }
  .benefits li { font-family: Arial, sans-serif; font-size: 15.5px; line-height: 1.2; gap: 4px; }
  .benefits .icon { width: 40px; height: 40px; }
}

@media (min-width: 960px) {
  .panel { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 40px; }
  .panel-bar { padding: 2px 4px; border-bottom: 1px solid var(--line); background: #f4faff; }
  .panel-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(674px, 52%));
    grid-template-rows: auto auto 1fr;
    column-gap: 20px;
    row-gap: 0;
    padding: 18px 12px 14px 19px;
  }
  .panel-info { grid-column: 1; grid-row: 1; }
  .panel .gallery { grid-column: 2; grid-row: 1 / 4; align-self: start; margin-top: 0; }
  .benefits { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; margin-top: 20px; }
  .benefits li:nth-child(3) { border-left: 0; }
  .panel-cta { grid-column: 1; grid-row: 3; align-self: start; justify-self: start; min-height: 42px; width: auto; margin-top: 24px; padding: 10.5px 20px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); }
  .panel-cta .cta-chevron { display: none; }

  .panel-eyebrow { display: none; }
  .panel-head { display: flex; align-items: center; gap: 14px; margin: 0; }
  .panel .panel-head .icon-circle { display: grid; width: 82px; height: 82px; margin-left: -6px; border-width: 5px; }
  .panel .panel-head .icon-circle .icon { width: 42px; height: 42px; stroke-width: 1.5; }
  .panel-title { font-size: clamp(24px, 1.96vw, 30px); letter-spacing: normal; }
  .panel-sub { margin-top: 10px; font-size: clamp(15px, 1.2vw, 18px); color: var(--blue-soft); }
  .panel-text { margin-top: 14px; padding-left: 4px; font-size: clamp(14.5px, 1.05vw, 15.5px); line-height: 1.6; }

  .benefits li {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 6px clamp(6px, 0.9vw, 14px);
    text-align: left;
    font-size: 12.5px;
    line-height: 1.3;
    color: #1d4f99;
  }
  .benefits li:first-child { padding-left: 4px; }
  .benefits .icon { width: 32px; height: 32px; }
  .benefits span { min-width: 8em; }
}

/* четирите предимства в един ред (както в мокъпа) – само когато колоната е достатъчно широка */
@media (min-width: 1520px) {
  .benefits { grid-template-columns: repeat(4, auto); row-gap: 0; }
  .benefits li:nth-child(3) { border-left: 1px solid var(--line-strong); }
}

/* ---------- Галерия в панела ---------- */
.gallery { min-width: 0; }
.g-layout { display: grid; gap: 10px; }
.g-stage {
  position: relative;
  aspect-ratio: 513 / 274;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef3fa, #e2e9f4);
  overflow: hidden;
  touch-action: pan-y;
}
.g-open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}
.g-open:focus-visible { outline-offset: -3px; }
.g-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transition: opacity 0.25s;
}
.g-main.is-loading { opacity: 0.35; }

.g-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(10, 50, 116, 0.18);
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.g-arrow .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.g-prev { left: 8px; }
.g-next { right: 8px; }
.g-arrow:hover { opacity: 1; background: var(--white); transform: scale(1.06); }

.g-zoom {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.g-zoom .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.g-stage:hover .g-zoom, .g-open:focus-visible + .g-zoom { opacity: 1; }

.g-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 8px) / 3);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px;
}
.g-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--sky-100);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px transparent;
  transition: box-shadow 0.2s;
}
.g-thumb[aria-current="true"]::after { box-shadow: inset 0 0 0 3px var(--blue); }
.g-thumb:hover { opacity: 1; }
.g-thumb[aria-current="true"] { opacity: 1; }
.g-thumb[aria-current="true"] { display: none; }

.g-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.g-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
}
.g-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9d5e6;
  transition: background-color 0.2s, transform 0.2s;
}
.g-dot:hover::before { background: #9fb3d1; }
.g-dot.is-active::before { background: var(--blue); }

.gallery.is-single .g-arrow,
.gallery.is-single .g-thumbs,
.gallery.is-single .g-dots { display: none; }

@media (hover: hover) and (pointer: fine) {
  .g-arrow { opacity: 0; }
  .g-stage:hover .g-arrow, .g-stage:focus-within .g-arrow { opacity: 0.95; }
}

@media (min-width: 560px) and (max-width: 959.98px) {
  .g-stage { aspect-ratio: 1.6; }
}

@media (min-width: 960px) {
  .g-layout {
    grid-template-columns: 1fr 145px;
    grid-template-areas: "stage thumbs";
    gap: 12px;
  }
  .gallery.is-single .g-layout { grid-template-columns: 1fr; }
  .g-stage { grid-area: stage; border-radius: 10px; }
  .g-thumbs {
    grid-area: thumbs;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-auto-rows: calc((100% - 2 * 9px) / 3);
    gap: 9px;
    height: 0;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 3px 0 0;
  }
  .g-thumb { aspect-ratio: auto; border-radius: 6px; }
  .g-dots {
    grid-area: stage;
    align-self: end;
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
    pointer-events: none;
  }
  .g-dot { pointer-events: auto; }
  .g-dot::before { background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1.5px #b9c7dc; width: 8px; height: 8px; }
  .g-dot.is-active::before { background: var(--blue); box-shadow: none; }
}

/* ---------- Секции ---------- */
.section { padding-block: 44px; }
.section + .section { border-top: 1px solid var(--line); }
.section-title {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}
.section-sub {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 15.5px;
  color: #1d4a8c;
}
@media (min-width: 768px) {
  .section { padding-block: 64px; }
  .section-sub { font-size: 16.5px; }
}

.about { background: var(--page); }
.about-copy { max-width: 70ch; margin-top: 20px; }
.about-copy p + p { margin-top: 16px; }

/* Галерия (решетка) */
.gallery-section { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.gallery-grid button {
  display: block;
  width: 100%;
  padding: 0;
  background: linear-gradient(180deg, #eef3fa, #e2e9f4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.gallery-grid button:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: scale-down;
}
.gallery-grid .gg-label {
  display: block;
  padding: 8px 10px;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 32px; }
}

/* Контакти */
.contacts { background: linear-gradient(180deg, var(--page), var(--sky-100)); }
.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.contact-item .icon-circle { width: 52px; height: 52px; border-width: 3px; }
.contact-item .icon-circle .icon { width: 22px; height: 22px; }
.contact-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.phone-link {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}
.phone-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-link { display: inline-block; margin-top: 4px; font-size: 14.5px; font-weight: 600; }

@media (min-width: 768px) {
  .contact-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
  .contact-item { padding: 22px 22px; border-radius: var(--radius); }
}

/* ---------- Футър ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}
.footer-inner {
  display: grid;
  gap: 22px;
  padding-block: 28px 20px;
}
.footer-company p { line-height: 1.65; }
.footer-company a, .footer-links a { color: var(--blue); text-decoration: none; }
.footer-company a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links ul { display: grid; gap: 8px; }
.footer-links a { font-weight: 600; }
.footer-copy {
  padding-block: 14px 22px;
  border-top: 1px solid var(--sky-200);
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; padding-block: 36px 24px; }
  .footer-links ul { justify-items: end; }
}

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 56px 12px 24px;
  opacity: 0;
  transition: opacity 0.25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 52, 0.9);
}
.lightbox-figure {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 100%;
  pointer-events: none;
}
.lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
.lightbox-caption {
  max-width: 70ch;
  color: #dce8f7;
  font-size: 14px;
  text-align: center;
}
.lightbox-count { white-space: nowrap; opacity: 0.75; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-btn .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -23px; }
.lb-next { right: 10px; top: 50%; margin-top: -23px; }
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next,
.lightbox.is-single .lightbox-count { display: none; }
@media (min-width: 768px) {
  .lightbox { padding: 64px 80px 32px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-close { top: 16px; right: 20px; }
}

/* ---------- Правни страници и 404 ---------- */
.legal {
  padding-block: 36px 56px;
  background: var(--white);
}
.legal-inner { max-width: 820px; }
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.legal .back-link .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.legal .back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal h1 {
  margin-top: 16px;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}
.legal .updated { margin-top: 8px; font-size: 14px; color: var(--muted); }
.legal h2 {
  margin-top: 32px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}
.legal p, .legal ul { margin-top: 12px; font-size: 15.5px; line-height: 1.65; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--blue); }

.notfound { padding-block: 72px 96px; text-align: center; background: var(--white); }
.notfound .code { font-size: clamp(64px, 18vw, 120px); font-weight: 800; line-height: 1; color: #648fcb; }
.notfound h1 { margin-top: 8px; font-size: clamp(24px, 5vw, 32px); font-weight: 800; color: var(--navy); }
.notfound p { margin: 12px auto 28px; max-width: 46ch; color: var(--ink); }
