@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700&family=PT+Sans:wght@400;700&display=swap');

:root {
  --bg: #f5f7fb;
  --bg-strong: #e8edf5;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #111317;
  --text: #111317;
  --text-soft: #556070;
  --line: rgba(17, 19, 23, 0.12);
  --line-strong: rgba(17, 19, 23, 0.22);
  --brand-blue: #1f67c7;
  --brand-red: #db2c32;
  --brand-black: #17171b;
  --accent: #f1b84b;
  --shadow: 0 24px 60px rgba(17, 19, 23, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1200px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'PT Sans', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 103, 199, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(219, 44, 50, 0.18), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fb 52%, #ecf1f6 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-blue);
}

a:hover {
  color: var(--brand-red);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid rgba(17, 19, 23, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: clamp(124px, 18vw, 170px);
  filter: drop-shadow(0 16px 30px rgba(17, 19, 23, 0.14));
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name,
.section-title,
.hero-title,
.service-card h3,
.panel-header h2,
.info-card h2,
.footer-title,
.result-card h1 {
  font-family: 'Exo 2', Arial, sans-serif;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.top-nav a,
.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 19, 23, 0.09);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover,
.nav-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 103, 199, 0.32);
  background: rgba(31, 103, 199, 0.08);
}

.section {
  padding: 34px 0;
}

.hero {
  padding: 48px 0 24px;
}

.hero-grid,
.content-grid,
.location-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  align-items: stretch;
}

.hero-main,
.hero-side,
.details-shell,
.info-card,
.result-card,
.hero-highlight {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-main,
.hero-side,
.details-shell,
.info-card,
.result-card {
  padding: 28px;
}

.hero-main::before,
.details-shell::before,
.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(31, 103, 199, 0.08), transparent 42%),
    linear-gradient(300deg, rgba(219, 44, 50, 0.08), transparent 36%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-red);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

.hero-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-lead,
.section-lead,
.panel-copy,
.info-card p,
.status-intro,
.result-text,
.result-hint {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-lead {
  max-width: 60ch;
  margin: 18px 0 0;
}

.hero-pills,
.hero-stats,
.service-grid,
.news-list,
.feature-list,
.footer-meta {
  display: grid;
  gap: 14px;
}

.hero-pills {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.hero-pill,
.stat-card,
.service-card,
.news-item,
.feature-list li,
.partner-box,
.status-note {
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 19, 23, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.hero-pill {
  padding: 16px 18px;
  min-height: 88px;
  background:
    linear-gradient(140deg, rgba(31, 103, 199, 0.08), rgba(255, 255, 255, 0.86));
}

.hero-pill:nth-child(2) {
  background:
    linear-gradient(140deg, rgba(219, 44, 50, 0.08), rgba(255, 255, 255, 0.86));
}

.hero-pill:nth-child(3) {
  background:
    linear-gradient(140deg, rgba(17, 23, 27, 0.08), rgba(255, 255, 255, 0.86));
}

.hero-pill strong,
.stat-card strong,
.news-date strong,
.footer-title {
  display: block;
  font-size: 1rem;
}

.hero-pill span,
.stat-card span,
.feature-list span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.stat-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.stat-value {
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand-black);
}

.stat-accent {
  color: var(--brand-red);
}

.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-stack {
  display: grid;
  gap: 14px;
}

.contact-row {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 19, 23, 0.08);
}

.contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value,
.contact-row a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.08rem;
}

.status-card {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.status-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.status-card input[type="text"] {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(17, 19, 23, 0.12);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.status-card input[type="text"]:focus {
  outline: none;
  border-color: rgba(31, 103, 199, 0.48);
  box-shadow: 0 0 0 4px rgba(31, 103, 199, 0.12);
}

.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  box-shadow: 0 16px 28px rgba(31, 103, 199, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(31, 103, 199, 0.26);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(17, 19, 23, 0.12);
  box-shadow: none;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-lead {
  margin: 0;
  max-width: 68ch;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover,
.service-card.is-active {
  transform: translateY(-5px);
  border-color: rgba(31, 103, 199, 0.32);
  box-shadow: 0 18px 34px rgba(17, 19, 23, 0.08);
}

.service-card.is-active {
  background:
    linear-gradient(160deg, rgba(31, 103, 199, 0.08), rgba(219, 44, 50, 0.07) 55%, rgba(255, 255, 255, 0.96));
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.service-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.8fr);
  align-items: start;
}

.details-shell {
  min-height: 100%;
}

.category-switcher,
.subtabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-switcher {
  margin-bottom: 20px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 19, 23, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-button:hover,
.tab-button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
}

.category-panel,
.subtab-panel {
  display: none;
}

.category-panel.is-active,
.subtab-panel.is-active {
  display: block;
}

.panel-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.panel-copy {
  margin: 0;
}

.subtabs {
  margin-bottom: 18px;
}

.content-flow {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 19, 23, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.98));
}

.content-flow p,
.content-flow li,
.content-flow td,
.content-flow th {
  color: var(--text);
  line-height: 1.72;
}

.content-flow p:first-child {
  margin-top: 0;
}

.content-flow p:last-child {
  margin-bottom: 0;
}

.content-flow img {
  margin: 20px auto;
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(17, 19, 23, 0.14);
}

.content-flow a {
  font-weight: 700;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.info-card > * {
  position: relative;
  z-index: 1;
}

.info-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.news-list {
  margin: 0;
}

.news-item {
  padding: 16px 18px;
}

.news-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.news-date time {
  color: var(--brand-red);
  font-weight: 700;
}

.news-item p {
  margin: 0;
}

.empty-note {
  margin: 0;
  color: var(--text-soft);
}

.partner-box {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.partner-box img {
  width: 130px;
}

.location-grid {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.72fr);
  align-items: start;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px;
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer {
  padding: 24px 0 38px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(17, 23, 27, 0.94), rgba(31, 103, 199, 0.92) 58%, rgba(219, 44, 50, 0.9));
  color: #fff;
  box-shadow: 0 28px 48px rgba(17, 19, 23, 0.2);
}

.footer-grid a {
  color: #fff;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.footer-meta {
  grid-template-columns: repeat(3, minmax(0, auto));
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.scrollup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  box-shadow: 0 18px 30px rgba(31, 103, 199, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scrollup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: rise-in 0.7s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.08s;
}

.reveal-delay-2 {
  animation-delay: 0.16s;
}

.reveal-delay-3 {
  animation-delay: 0.24s;
}

.reveal-delay-4 {
  animation-delay: 0.32s;
}

.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.result-wrap {
  width: min(680px, 100%);
}

.result-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.result-card .status-note {
  margin-top: 20px;
  padding: 16px 18px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.result-card.error {
  border-color: rgba(219, 44, 50, 0.18);
}

.result-card.success {
  border-color: rgba(31, 103, 199, 0.18);
}

.map-container {
  width: 100%;
  margin: 18px 0;
  border-radius: 24px;
  overflow: hidden;
}

.map-container > div,
.map-container iframe {
  width: 100% !important;
  max-width: 100% !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 19, 23, 0.1);
  text-align: left;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .content-grid,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }

  .footer-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-pills,
  .hero-stats,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side,
  .details-shell,
  .info-card,
  .result-card {
    padding: 22px;
  }

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

  .top-nav {
    gap: 8px;
    padding-bottom: 4px;
  }

  .top-nav a,
  .nav-chip,
  .tab-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .content-flow {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 20px, 100%);
  }

  .site-header {
    position: static;
  }

  .header-bar {
    gap: 12px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 96px;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-subtitle,
  .header-contact span,
  .hero-lead,
  .section-lead,
  .panel-copy,
  .info-card p,
  .status-intro,
  .result-text,
  .result-hint {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .section-title,
  .result-card h1 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .hero-main,
  .hero-side,
  .details-shell,
  .info-card,
  .result-card,
  .footer-grid {
    border-radius: 24px;
    padding: 18px;
  }

  .service-card img {
    height: 156px;
  }

  .scrollup {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.brand-name {
  font-size: calc(1.2rem + 4px); /* было 1.2rem → стало +4px */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  display: inline-block;

  /* Градиент */
  background: linear-gradient(
    90deg,
    #0066cc,
    #ff0000,
    #000000,
    #0066cc
  );
  background-size: 300% 100%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Анимация */
  animation: trikom-gradient 5s linear infinite;

  /* Лёгкое свечение */
  text-shadow:
    0 0 6px rgba(0, 102, 204, 0.4),
    0 0 12px rgba(255, 0, 0, 0.25);
}

@keyframes trikom-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}