/* ========================================================================
   СМК ИП Пирожков — стили сайта-визитки
   Палитра взята из логотипа: тёмно-синий + оранжевый + голубой акцент.
   ======================================================================== */

/* --- Tokens / переменные ------------------------------------------------ */
:root {
  --c-navy: #1B3A5C;
  --c-navy-deep: #122740;
  --c-navy-soft: #24507F;
  --c-orange: #F58F2A;
  --c-orange-bright: #FFA94B;
  --c-blue: #3FA9F5;
  --c-bg: #F5F7FA;
  --c-bg-alt: #EDF1F6;
  --c-text: #1A1F2B;
  --c-muted: #5F6B7A;
  --c-line: #E1E7EE;
  --c-white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(20, 35, 60, .06);
  --shadow-md: 0 10px 28px rgba(20, 35, 60, .10);
  --shadow-lg: 0 22px 50px rgba(20, 35, 60, .16);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --container: 1200px;
  --gap: 24px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Inter", sans-serif;

  --transition: 280ms cubic-bezier(.2,.7,.2,1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-orange); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-navy-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

/* --- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); padding: 0 20px; margin: 0 auto; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-navy-deep); color: #d9e3f0; }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 12px;
}
.section__lead { font-size: 1.1rem; color: var(--c-muted); max-width: 700px; }
.section--dark .section__lead { color: #aab8c9; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--c-orange); color: #1a1208; box-shadow: 0 6px 20px rgba(245, 143, 42, .35); }
.btn--primary:hover { background: var(--c-orange-bright); color: #1a1208; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 143, 42, .45); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-2px); }
.btn--outline { color: var(--c-navy); border: 1.5px solid var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Header / Nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-navy-deep);
  font-size: 16px;
  line-height: 1.1;
}
.brand img { width: 56px; height: auto; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); }

.nav-list {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 15px;
  color: var(--c-navy-deep);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--c-orange); }

.nav-cta { display: inline-flex; align-items: center; gap: 16px; }
.tel-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--c-navy-deep);
  white-space: nowrap;
}
.tel-link span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); display: block; font-weight: 500; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  align-items: center;
  justify-content: center;
}
.burger span { position: relative; display: block; width: 22px; height: 2px; background: var(--c-navy-deep); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: inherit; border-radius: inherit; transition: transform var(--transition); }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); background: var(--c-navy-deep); }
.burger.is-open span::after  { transform: translateY(-7px) rotate(-45deg); background: var(--c-navy-deep); }

/* Mobile menu drawer — hidden by default on desktop */
.nav-mobile { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--c-navy-deep);
}
.hero__bg {
  position: absolute;
  inset: -10% -2% -5% -2%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: saturate(110%);
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(15,34,56,.92) 0%, rgba(15,34,56,.65) 40%, rgba(15,34,56,.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%);
}
.hero__content { max-width: 760px; padding: 80px 0; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245, 143, 42, .15);
  border: 1px solid rgba(245, 143, 42, .35);
  color: var(--c-orange-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--c-orange); }
.hero p.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: #cdd9e8; max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__scroll-hint::after {
  content: "";
  width: 1px; height: 30px;
  background: rgba(255,255,255,.55);
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* --- Sub-hero (для внутренних страниц) ---------------------------------- */
.subhero {
  position: relative;
  padding: clamp(120px, 18vh, 220px) 0 clamp(60px, 9vw, 120px);
  color: #fff;
  background: var(--c-navy-deep);
  isolation: isolate;
  overflow: hidden;
}
.subhero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .55;
}
.subhero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(15,34,56,.92), rgba(15,34,56,.6));
}
.subhero h1 { color: #fff; }
.subhero .crumbs { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 14px; }
.subhero .crumbs a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 4px; }
.subhero .crumbs a:hover { color: var(--c-orange); }

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-md);
  margin-top: -90px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.stats__item {
  padding: 36px 28px;
  border-right: 1px solid var(--c-line);
  text-align: left;
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stats__num span { font-size: 0.5em; color: var(--c-navy-deep); }
.stats__label { color: var(--c-muted); font-size: 14px; line-height: 1.4; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--c-white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(27, 58, 92, .85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: 1.15rem; margin-bottom: 8px; }
.card__excerpt { color: var(--c-muted); font-size: 14.5px; margin-bottom: 14px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--c-muted); }
.card__meta b { color: var(--c-navy-deep); font-weight: 600; }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* --- Service cards ------------------------------------------------------ */
.service-card {
  position: relative;
  padding: 30px;
  background: var(--c-white);
  border-radius: var(--radius-m);
  border: 1px solid var(--c-line);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-orange), var(--c-blue));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(63, 169, 245, .12);
  color: var(--c-navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-card__icon { background: var(--c-orange); color: #fff; }
.service-card__icon svg { width: 32px; height: 32px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--c-muted); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--c-text); }
.service-card ul li { padding-left: 22px; position: relative; }
.service-card ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--c-orange);
}

/* --- Trust block (clients) --------------------------------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: stretch;
}
.clients__item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}
.clients__item:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }
.clients__item img, .clients__item svg { max-width: 100%; height: auto; }

/* --- Highlight cards (главная — 3 объекта) ----------------------------- */
.highlight-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
  color: #fff;
  background: var(--c-navy);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.highlight-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
  z-index: -2;
}
.highlight-card:hover img { transform: scale(1.07); }
.highlight-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,34,56,0) 35%, rgba(15,34,56,.92) 100%);
}
.highlight-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.highlight-card__client {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
}
.highlight-card h3 { color: #fff; margin: 0 0 10px; font-size: 1.4rem; }
.highlight-card p { color: rgba(255,255,255,.85); font-size: 14.5px; margin: 0; }

/* --- About teaser ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: "";
  position: absolute;
  right: -28px; bottom: -28px;
  width: 140px; height: 140px;
  border: 6px solid var(--c-orange);
  border-radius: var(--radius-l);
  z-index: -1;
}
.split__media-wrap { position: relative; }
.split__body h2 { margin-top: 0; }
.split__bullets { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }
.split__bullets li { display: flex; gap: 14px; }
.split__bullets .check {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-orange);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

/* --- Process / preimushchestva (numbered list) -------------------------- */
.numbered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: num;
}
.numbered__item {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  counter-increment: num;
}
.numbered__item::before {
  content: "0" counter(num);
  position: absolute;
  top: -22px; left: 24px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-orange);
  background: var(--c-bg);
  padding: 0 10px;
  line-height: 1;
}
.numbered__item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.numbered__item p { color: var(--c-muted); font-size: 14.5px; margin: 0; }
.section--alt .numbered__item::before { background: var(--c-bg-alt); }

/* --- Quote / cta-banner ------------------------------------------------- */
.quote-banner {
  position: relative;
  padding: clamp(60px, 8vw, 96px);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.quote-banner::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(245,143,42,.4), transparent 60%);
  z-index: -1;
}
.quote-banner h2 { color: #fff; max-width: 720px; }
.quote-banner p { color: rgba(255,255,255,.8); max-width: 660px; font-size: 1.05rem; }
.quote-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* --- Filter tabs (portfolio) ------------------------------------------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter__btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-navy-deep);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}
.filter__btn:hover { border-color: var(--c-orange); color: var(--c-orange); }
.filter__btn.is-active { background: var(--c-navy-deep); border-color: var(--c-navy-deep); color: #fff; }
.filter__btn span { opacity: 0.55; margin-left: 6px; font-size: 12px; }

/* --- Portfolio item ---------------------------------------------------- */
.portfolio-item {
  display: flex; flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: zoom-in;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-item__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.portfolio-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.portfolio-item:hover .portfolio-item__media img { transform: scale(1.06); }
.portfolio-item__zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition);
}
.portfolio-item:hover .portfolio-item__zoom { opacity: 1; transform: translateY(0); }
.portfolio-item__body { padding: 18px 22px 22px; }
.portfolio-item__client { color: var(--c-orange); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.portfolio-item__title { font-size: 1.05rem; margin: 6px 0 4px; color: var(--c-navy-deep); font-family: var(--font-display); font-weight: 600; }
.portfolio-item__excerpt { color: var(--c-muted); font-size: 14px; margin: 0; }

/* --- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 16, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  animation: fadeIn 240ms ease both;
}
.lightbox.is-open { display: flex; }
.lightbox__inner { max-width: 1100px; max-height: 90vh; position: relative; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-m); box-shadow: var(--shadow-lg); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 12px; font-size: 14px; opacity: 0.85; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-orange); }
.lightbox__close { top: -56px; right: 0; }
.lightbox__prev { top: 50%; left: -64px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: -64px; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lightbox__close { top: 16px; right: 16px; }
  .lightbox__prev { left: 8px; top: auto; bottom: 16px; transform: none; }
  .lightbox__next { right: 8px; top: auto; bottom: 16px; transform: none; }
}

/* --- Vacancies ------------------------------------------------------------ */
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.vacancy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 32px 28px;
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--c-orange);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vacancy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vacancy-card__title { font-size: 1.3rem; margin-bottom: 10px; }
.vacancy-card__salary { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--c-navy-deep); }
.vacancy-card__salary span { color: var(--c-orange); }
.vacancy-card__note { color: var(--c-muted); font-size: 13.5px; margin: 6px 0 18px; }
.vacancy-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.vacancy-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  color: var(--c-navy-deep);
  font-size: 13px;
  font-weight: 500;
}
.vacancy-card__tag--accent { background: rgba(245,143,42,.14); color: var(--c-orange); }

.vacancy-perks {
  margin-top: 8px;
  background: var(--c-navy-deep);
  border-radius: var(--radius-m);
  padding: 34px 36px;
  color: #fff;
}
.vacancy-perks h3 { color: #fff; margin-bottom: 16px; font-size: 1.2rem; }
.vacancy-perks ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.vacancy-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #d9e3f0;
}
.vacancy-perks li .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(245,143,42,.18);
  color: var(--c-orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}

@media (max-width: 860px) {
  .vacancy-grid { grid-template-columns: 1fr; }
  .vacancy-perks ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .vacancy-perks ul { grid-template-columns: 1fr; }
}

/* --- Contacts ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 48px;
}
.contact-card {
  padding: 30px;
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(245,143,42,.14);
  color: var(--c-orange);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.contact-card__value { font-family: var(--font-display); font-size: 1.25rem; color: var(--c-navy-deep); font-weight: 600; }
.contact-card__sub { color: var(--c-muted); font-size: 14px; margin-top: 6px; }

.map {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  background: var(--c-bg-alt);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.requisites {
  margin-top: 48px;
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.requisites summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-navy-deep);
}
.requisites summary::-webkit-details-marker { display: none; }
.requisites summary::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 2px solid var(--c-navy-deep);
  border-bottom: 2px solid var(--c-navy-deep);
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-right: 4px;
}
.requisites[open] summary::after { transform: rotate(-135deg); }
.requisites__body { padding: 0 28px 28px; }
.requisites__body dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 24px;
  margin: 0;
}
.requisites__body dt { color: var(--c-muted); font-size: 14px; }
.requisites__body dd { margin: 0; color: var(--c-navy-deep); font-weight: 500; font-size: 14.5px; }
.requisites__body ul { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 14px; }
.requisites__body ul li { padding-left: 18px; position: relative; color: var(--c-text); }
.requisites__body ul li::before { content: "—"; position: absolute; left: 0; color: var(--c-orange); font-weight: 700; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--c-navy-deep);
  color: #aab8c9;
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.site-footer a { color: #aab8c9; }
.site-footer a:hover { color: var(--c-orange); }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__brand { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.site-footer__brand img { width: 64px; height: auto; }
.site-footer__brand b { color: #fff; font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1.2; margin-bottom: 4px; }
.site-footer__brand small { color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__about { font-size: 14px; line-height: 1.6; color: #aab8c9; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

/* --- Animations: fade-in on scroll ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
}

/* --- Mobile menu drawer ------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-list, .nav-cta .tel-link { display: none; }
  .burger { display: inline-flex; }
  .nav-mobile {
    display: block;
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    padding: 20px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .nav-mobile.is-open { transform: translateY(0); }
  .nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
  .nav-mobile a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-s);
    font-size: 16px;
    color: var(--c-navy-deep);
    font-weight: 500;
  }
  .nav-mobile a.is-active { background: var(--c-bg-alt); color: var(--c-orange); }
  .nav-mobile .tel-link { display: block; margin-top: 12px; padding: 14px 16px; }
}

/* --- Responsive grid breaks -------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .numbered { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .requisites__body dl { grid-template-columns: 1fr; gap: 4px; }
  .requisites__body dl dt { margin-top: 8px; }
  .requisites__body ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: 0 !important; border-bottom: 1px solid var(--c-line); }
  .stats__item:last-child { border-bottom: 0; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .numbered { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__content { padding: 60px 0; }
  .quote-banner { padding: 36px 24px; }
  .brand small { display: none; }
}

/* --- Skip-link for a11y ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px; top: 12px;
  z-index: 200;
  background: var(--c-orange);
  color: #1a1208;
  padding: 10px 18px;
  border-radius: 8px;
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__scroll-hint, .burger, .nav-mobile, .lightbox { display: none !important; }
  body { background: #fff; }
  .hero, .subhero { color: #000; background: #fff; padding-top: 30px; }
  .hero::before, .subhero::before, .hero__bg, .subhero__bg { display: none; }
  .hero h1, .subhero h1 { color: #000; }
}
