:root {
  --brand: #002d62;
  --brand-soft: #003a7a;
  --brand-muted: #3d5f85;
  --brand-light: #d4dce8;
  --header-bg: #e0e6f1;
  --bg: #e0e6f1;
  --bg-soft: #d8dfe8;
  --surface: #f0f3f7;
  --surface-strong: #ebeef3;
  --surface-muted: #dce3ec;
  --line: rgba(0, 45, 98, 0.2);
  --text: #1a2f47;
  --text-strong: #002147;
  --muted: #3f5369;
  --primary: #002d62;
  --primary-soft: #c8d4e4;
  --accent: #002d62;
  --accent-hover: #003f84;
  --accent-soft: rgba(0, 45, 98, 0.12);
  --shadow: 0 6px 18px rgba(0, 35, 70, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 35, 70, 0.11);
  --hero-image: url("./1.1-iupscaler.jpg");
  --interior-image: url("./assets/hero-interior-blue.png");
}

* { box-sizing: border-box; }
body.custom-cursor { cursor: auto; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--bg) 55%, #d8e0ea 100%);
  line-height: 1.65;
}

body::before {
  display: none;
}

.container { width: min(1200px, 92vw); margin: 0 auto; }
p { margin: 0 0 14px; max-width: 66ch; color: var(--text); }

body.theme-ocean,
body.theme-graphite,
body.theme-sand {
  --accent: #002d62;
  --accent-hover: #003f84;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 45, 98, 0.08);
  box-shadow: 0 2px 16px rgba(0, 35, 70, 0.06);
  overflow: visible;
}

.site-header::before,
.site-header::after {
  display: none;
}

.header-shell {
  position: relative;
  z-index: 2;
  padding: 0;
}

.header-main {
  display: flex;
  align-items: center;
  min-height: 100px;
  background: var(--header-bg);
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
  min-width: 0;
  padding: 0 clamp(12px, 2vw, 20px);
}

.brand { font-family: "Roboto Slab", serif; font-size: 1.2rem; }

.brand--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  padding: 8px 16px 8px 4px;
  background: var(--header-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.brand--header:hover {
  opacity: 0.88;
}

.brand--header .brand__full {
  display: block;
  width: auto;
  height: clamp(80px, 11vw, 104px);
  max-width: min(420px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.brand--logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__icon {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand__full {
  display: block;
  width: auto;
  height: 34px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.brand--logo-footer .brand__full {
  display: none;
}

.site-footer .brand--logo-footer .brand__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.header-aside {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
  padding-right: 16px;
  border-right: 1px solid rgba(0, 45, 98, 0.12);
}

.header-phone,
.header-email {
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-phone {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}

.header-email {
  font-size: 0.72rem;
  color: var(--muted);
}

.header-phone:hover,
.header-email:hover {
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: var(--text-strong);
  background: transparent;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--text-strong);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: auto 12px auto 0;
  border: 1px solid rgba(0, 45, 98, 0.15);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--brand);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn--nav {
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
  border-radius: 8px;
  background: var(--brand);
  border: none;
  box-shadow: none;
}

.btn--nav:hover {
  background: var(--brand-soft);
  box-shadow: none;
  transform: none;
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.18;
  color: var(--text-strong);
}
h1, h2 { font-family: "Roboto Slab", serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }


.hero.corporate,
.hero.corporate h1,
.hero.corporate h2,
.hero.corporate h3,
.hero.corporate p,
.hero.corporate .kicker {
  color: #f4f8ff;
}

.hero.corporate p {
  color: rgba(232, 241, 255, 0.88);
}

.hero.corporate .kicker {
  color: #9ac3ef;
}

.hero.corporate {
  position: relative;
  overflow: hidden;
  padding: 98px 0 156px;
  background:
    linear-gradient(110deg, rgba(4, 10, 18, 0.72), rgba(5, 11, 20, 0.64)),
    radial-gradient(circle at 82% 24%, rgba(61, 161, 255, 0.2), transparent 40%),
    var(--hero-image) center 68%/cover no-repeat;
  filter: saturate(1.12) contrast(1.05) brightness(0.98);
}

.hero.corporate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-liquid {
  display: none;
}

.hero-liquid::before,
.hero-liquid::after {
  display: none;
}

.hero-liquid::before {
  display: none;
}

.hero-liquid::after {
  display: none;
}

@keyframes liquidDrift {
  0%, 100% { transform: translateY(0) skewX(0deg) scaleY(1); }
  50% { transform: translateY(5px) skewX(-1.3deg) scaleY(1.04); }
}

@keyframes liquidWaves {
  from { transform: translateX(0); }
  to { transform: translateX(42px); }
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  opacity: 0.16;
  animation: drift 14s linear infinite;
  z-index: 0;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-44px); }
}

.hero__layout,
.section .container,
.site-footer .container {
  position: relative;
  z-index: 1;
}

.hero__layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; }
.kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.hero__actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero.corporate .btn {
  color: #fff;
}

.hero.corporate .btn--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn {
  border-radius: 12px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}
.btn--light { background: var(--surface); color: var(--text-strong); border: 1px solid var(--line); box-shadow: none; }

.btn--nav {
  padding: 9px 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.info-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.info-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.info-panel__head h3 {
  margin: 0;
  color: var(--text-strong);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.metric-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.metric-item span {
  color: var(--text);
  font-size: 0.82rem;
}

/* Метрики в hero — светлый текст на тёмном фоне */
.hero.corporate .info-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.hero.corporate .panel-kicker {
  color: rgba(255, 255, 255, 0.75);
}

.hero.corporate .info-panel__head h3 {
  color: #fff;
}

.hero.corporate .metric-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.hero.corporate .metric-item strong {
  color: #fff;
}

.hero.corporate .metric-item span {
  color: rgba(232, 241, 255, 0.9);
}

.metric-timeline {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.metric-timeline span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 45, 98, 0.15), rgba(90, 200, 255, 0.9));
  animation: pulseLine 2.4s ease-in-out infinite;
}

.metric-timeline span:nth-child(2) { animation-delay: 0.15s; }
.metric-timeline span:nth-child(3) { animation-delay: 0.3s; }
.metric-timeline span:nth-child(4) { animation-delay: 0.45s; }
.metric-timeline span:nth-child(5) { animation-delay: 0.6s; }

@keyframes pulseLine {
  50% { transform: scaleX(0.7); opacity: 0.7; }
}

.page-board {
  margin: 28px 0 36px;
}

.page-board.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.page-board .info-panel__head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.page-board .metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.page-board .metric-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.page-board .metric-item:last-child {
  border-right: none;
}

.page-board .metric-item strong {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.page-board .metric-item span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.section { padding: 48px 0; }
.section--gallery,
.section--alt { background: transparent; }

.section--brutal {
  background: transparent;
  padding-top: 8px;
}

.media-showcase {
  background:
    radial-gradient(circle at 18% 24%, var(--accent-soft), transparent 42%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.media-showcase__frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.media-showcase__head {
  margin-bottom: 14px;
}

.media-showcase__caption {
  margin: 14px 0 0;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.media-showcase__video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.media-showcase__video-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(6, 12, 21, 0), rgba(6, 12, 21, 0.55));
  pointer-events: none;
}

.media-showcase__video {
  width: 100%;
  display: block;
  max-height: min(76vh, 720px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.grid { display: grid; gap: 16px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(0, 45, 98, 0.25) 100%);
  opacity: 0.85;
}

.card h3,
.card p,
.card li {
  color: var(--text);
}

.card h3 {
  color: var(--text-strong);
  font-size: 1.05rem;
  margin-top: 4px;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.card:hover {
  border-color: rgba(0, 45, 98, 0.28);
  box-shadow: var(--shadow);
}

.icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 10px; }

.photo-wall { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; }
.photo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 260px;
  box-shadow: var(--shadow-lg);
}
.photo-card--wide { min-height: 340px; }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
  transition: transform 0.45s ease;
}
.photo-card:hover img { transform: scale(1.1); }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(3, 10, 19, 0.9) 100%);
}
.photo-card__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 1;
  color: #f2f8ff;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.team-spotlight {
  margin: 24px 0;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.team-spotlight h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.team-spotlight > p {
  margin: 0 0 20px;
  max-width: 68ch;
}

.team-spotlight__photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  box-shadow: var(--shadow-lg);
}

.team-spotlight__photo picture,
.team-spotlight__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.status-ribbon {
  margin-top: 26px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}
.status-ribbon__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  animation: pillGlow 2.6s ease-in-out infinite;
}
.status-pill:nth-child(2) { animation-delay: 0.2s; }
.status-pill:nth-child(3) { animation-delay: 0.4s; }
.status-pill:nth-child(4) { animation-delay: 0.6s; }
.status-pill:nth-child(5) { animation-delay: 0.8s; }
.status-pill:nth-child(6) { animation-delay: 1s; }
.status-pill:nth-child(7) { animation-delay: 1.2s; }
@keyframes pillGlow {
  50% { border-color: rgba(0, 45, 98, 0.45); }
}

.kicker--dark { color: var(--brand-muted); }
.logo-rail { margin: 12px 0 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.logo-rail span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section--prestige {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.split > div > p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.text-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.muted { color: var(--muted); }

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-badges span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-muted);
}

.profile-list {
  margin-bottom: 14px;
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.profile-strip div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-muted);
}

.profile-strip strong {
  display: block;
  font-size: 1rem;
  color: var(--text-strong);
}

.profile-strip span {
  font-size: 0.76rem;
  color: var(--muted);
}

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.kpi { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kpi strong { display: block; font-size: 1.2rem; color: var(--text-strong); }
.requisites p { margin: 6px 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
}

.section--contrast {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.motion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.motion-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-height: 120px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  animation: floaty 3.2s ease-in-out infinite;
}

.motion-card span {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}

.motion-card--a { background: #d4dce8; }
.motion-card--b { background: #cdd8d2; animation-delay: 0.2s; }
.motion-card--c { background: #d8d0c4; animation-delay: 0.4s; }
.motion-card--d { background: #d8ccd0; animation-delay: 0.6s; }
@keyframes floaty {
  50% { transform: translateY(-6px); }
}

.route-section {
  background: var(--bg-soft);
}
.route-visual {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  background: var(--surface);
  padding: 10px;
}
.route-visual svg { width: 100%; height: auto; }
.route-visual circle { fill: var(--accent); stroke: #0d2236; stroke-width: 2; }
.route-visual text { fill: var(--text-strong); font-size: 14px; font-weight: 700; }
.route-line {
  fill: none;
  stroke: url(#routeGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 16 12;
  animation: dashFlow 2.8s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -56; } }

.broken-title {
  display: block;
  text-transform: none;
  letter-spacing: -0.02em;
  border-left: none;
  padding-left: 0;
  margin-bottom: 6px;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.15;
}

.broken-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(0, 45, 98, 0.15));
}

.asym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.asym-grid .card:nth-child(1),
.asym-grid .card:nth-child(2),
.asym-grid .card:nth-child(3),
.asym-grid .card:nth-child(4) {
  grid-column: auto;
}

.section--brutal > .container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px clamp(18px, 3.5vw, 36px);
  box-shadow: var(--shadow);
}

.section--brutal .broken-title {
  margin-bottom: 20px;
}

.section--brutal .broken-title::after {
  margin-bottom: 0;
}
.site-footer {
  background: var(--brand);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  padding: 30px 0;
}
.footer-grid { display: flex; justify-content: space-between; gap: 16px; }
.site-footer .brand--logo {
  margin-bottom: 10px;
}
.site-footer p,
.site-footer strong {
  color: rgba(255, 255, 255, 0.88);
}
.footer-copy {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 166, 214, 0.2);
}

.footer-copy p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-modal.is-open .lead-modal__dialog {
  transform: translateY(0) scale(1);
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.78);
  backdrop-filter: blur(8px);
}

.lead-modal__dialog {
  position: relative;
  width: min(520px, 94vw);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 35, 70, 0.22);
  padding: 0;
  color: var(--text);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-modal__dialog--form {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lead-modal__dialog--form .lead-form {
  padding: 0 22px 22px;
  overflow: auto;
}

.lead-modal__dialog h3,
.lead-modal__dialog .kicker {
  color: var(--text-strong);
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 35, 70, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lead-modal__close:hover {
  transform: scale(1.05);
  background: #fff;
}

.lead-form-hero {
  padding: 24px 22px 18px;
  background: linear-gradient(135deg, rgba(0, 45, 98, 0.1) 0%, rgba(224, 230, 241, 0.95) 55%, var(--surface-strong) 100%);
  border-bottom: 1px solid var(--line);
}

.lead-form-hero--inline {
  padding: 0 0 16px;
  background: none;
  border-bottom: none;
}

.lead-form-hero .kicker {
  margin: 0 0 6px;
}

.lead-form-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

.lead-form-hero__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42ch;
}

.lead-form {
  gap: 16px;
}

.lead-form .form-field input,
.lead-form .form-field textarea {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(0, 45, 98, 0.18);
  background: var(--surface);
  font-size: 1rem;
}

.lead-form .form-field input:hover,
.lead-form .form-field textarea:hover {
  border-color: rgba(0, 45, 98, 0.28);
}

.lead-form .form-field textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.form-field__optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.lead-form__submit {
  position: relative;
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 45, 98, 0.28);
}

.lead-form__submit:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(0, 45, 98, 0.34);
}

.lead-form__submit:disabled {
  opacity: 0.85;
  cursor: wait;
  transform: none;
}

.lead-form__submit-loader {
  display: none;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: leadFormSpin 0.7s linear infinite;
}

.lead-form.is-submitting .lead-form__submit-text {
  display: none;
}

.lead-form.is-submitting .lead-form__submit-loader {
  display: block;
}

@keyframes leadFormSpin {
  to { transform: rotate(360deg); }
}

.lead-form__note {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.lead-form .form-status {
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.lead-form .form-status.is-success {
  background: rgba(26, 122, 74, 0.1);
  color: #1a7a4a;
}

.lead-form .form-status.is-error {
  background: rgba(180, 40, 40, 0.08);
  color: #b42828;
}

.lead-form .form-status:not(.is-success):not(.is-error):not(:empty) {
  background: var(--accent-soft);
  color: var(--text);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.table th,
.table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.process-table-wrap {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.process-table-head {
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--line);
}

.process-table-head h3 {
  margin: 0 0 4px;
}

.process-table-head p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.process-table thead th {
  background: var(--brand-light);
  color: var(--text-strong);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-table tbody tr:hover {
  background: var(--accent-soft);
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(0, 45, 98, 0.4);
  color: var(--text-strong);
  background: var(--brand-light);
  font-weight: 800;
  font-size: 0.8rem;
}

.time-badge {
  display: inline-block;
  border: 1px solid rgba(126, 166, 214, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.82rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.reviews-head h2 {
  margin: 0;
}

.reviews-note {
  margin: 14px 0 0;
}

.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.reviews-pagination__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-pagination .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.review-card strong {
  display: block;
  margin-top: 10px;
}

.admin-form-card {
  margin: 18px 0;
}

.admin-form-card h3 {
  margin-top: 0;
}

.admin-auth-card {
  margin: 18px 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.admin-tab {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.admin-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.admin-review-list {
  display: grid;
  gap: 14px;
}

.admin-review-card__meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-review-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cta-final {
  text-align: center;
  background: var(--brand-light);
  border: 1px solid rgba(126, 166, 214, 0.36);
}

.cta-final p {
  margin-inline: auto;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 45, 98, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.12);
  background: var(--surface-strong);
}

.lead-form-card {
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
  border-color: rgba(0, 45, 98, 0.16);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
}

.lead-form-card .lead-form-hero--inline h3 {
  margin: 0 0 8px;
}

.request-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field__label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-strong);
  font-weight: 700;
}

.form-field--phone input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.request-form__submit {
  margin-top: 4px;
  width: 100%;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.form-status.is-success {
  color: #1a7a4a;
}

.form-status.is-error {
  color: #ff9d9d;
}

.calc-pro {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.calc-result-card {
  background: var(--surface-muted);
}

.calc-breakdown p {
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(126, 166, 214, 0.2);
}

.calc-breakdown p:last-child {
  border-bottom: 0;
}

.calc-breakdown span {
  color: var(--muted);
}

.calc-breakdown strong {
  color: var(--text-strong);
}

.calc-total {
  margin-top: 4px;
}

.calc-total strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.lead-save-card {
  margin-top: 14px;
}

.catalog-live {
  margin-top: 14px;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-item .tag {
  margin-left: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cursor-ring,
.cursor-dot {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal,
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 1180px) and (min-width: 941px) {
  .header-email {
    display: none;
  }

  .nav a {
    font-size: 0.72rem;
    padding: 6px 7px;
  }

  .header-main {
    min-height: 88px;
  }

  .brand--header .brand__full {
    height: 76px;
    max-width: 260px;
  }

  .nav a {
    font-size: 0.74rem;
    padding: 7px 8px;
  }
}

@media (max-width: 940px) {
  body.custom-cursor { cursor: auto; }
  .cursor-ring, .cursor-dot { display: none; }

  .hero__layout,
  .asym-grid,
  .cols-3,
  .calc-layout,
  .catalog-filters,
  .faq-grid,
  .split,
  .logo-rail,
  .status-ribbon__row,
  .kpi-grid,
  .photo-wall,
  .motion-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .header-main {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand--header {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .header-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 4vw 20px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 35, 70, 0.1);
    border-radius: 0 0 12px 12px;
  }

  .header-panel.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    overflow: visible;
  }

  .nav a {
    font-size: 0.92rem;
    padding: 12px 14px;
    text-align: center;
    color: var(--text);
  }

  .nav a.active {
    color: var(--text-strong);
  }

  .header-aside {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
  }

  .header-contacts {
    align-items: center;
    text-align: center;
    padding-right: 0;
    border-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .btn--nav {
    width: 100%;
    text-align: center;
  }

  .brand--header {
    padding: 8px 12px 8px 4px;
  }

  .brand--header .brand__full {
    height: 68px;
    max-width: min(220px, 62vw);
  }

  .header-main {
    min-height: 76px;
  }

  .hero.corporate {
    padding: 72px 0 98px;
  }

  h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.35rem, 5.6vw, 1.8rem);
  }

  .section {
    padding: 42px 0;
  }

  .card {
    padding: 16px;
  }

  .team-spotlight {
    padding: 16px;
  }

  .asym-grid .card:nth-child(1),
  .asym-grid .card:nth-child(2),
  .asym-grid .card:nth-child(3),
  .asym-grid .card:nth-child(4) { grid-column: auto; }

  .profile-strip {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .container {
    width: min(1200px, 94vw);
  }

  .header-shell {
    padding: 8px 0 10px;
  }

  .btn {
    padding: 10px 14px;
  }

  .lead-modal__dialog--form .lead-form,
  .lead-form-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lead-modal__dialog--form .lead-form {
    padding-bottom: 16px;
  }

  .reviews-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Внутренние страницы — аккуратная подача */
main.section {
  padding-top: 36px;
}

main.section > .container > .grid,
main.section .split + .grid {
  gap: 20px;
}

main.section h2:not(.broken-title) {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 18px;
}

.panel-kicker {
  font-weight: 600;
  letter-spacing: 0.14em;
}

.profile-strip div {
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  padding: 14px 10px;
}

.profile-badges span {
  background: var(--brand-light);
  border-color: transparent;
  color: var(--text-strong);
  font-weight: 600;
}

.tag {
  margin-bottom: 8px;
}

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

  .page-board .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
  }

  .page-board .metric-item:nth-child(2),
  .page-board .metric-item:nth-child(4) {
    border-bottom: none;
  }

  .page-board .metric-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
}

/* Мягкая палитра: читаемость */
.section .container > p,
.team-spotlight > p,
.media-showcase__head p,
.split p,
.cta-final p {
  color: var(--text);
}

.list,
.muted {
  color: var(--muted);
}

.kicker {
  color: var(--brand-muted);
}

.table th,
.table td {
  color: var(--text);
}

.media-showcase__frame {
  background: var(--surface-strong);
}

.route-visual {
  box-shadow: var(--shadow);
}
