:root {
  --bg: #ffffff;
  --bg-soft: #f3f4f5;
  --surface: #ffffff;
  --text: #141414;
  --muted: #6b6a6a;
  --primary: #315470;
  --primary-dark: #213e55;
  --accent: #62b5e5;
  --accent-strong: #ce0058;
  --link: #5c88da;
  --border: #d9d9d9;
  --primary-hover: #af004b;
  --primary-click: #930040;
  --primary-disable: #e4cfd6;
  --secondary-dark: #213e55;
  --secondary-dark-hover: #172c3d;
  --secondary-dark-disable: #cad3da;
  --secondary-bright: #4f9fcd;
  --secondary-bright-hover: #3e85ae;
  --secondary-bright-disable: #d1e1ed;
  --error: #f20000;
  --warning: #e76303;
  --success: #059c02;
  --shadow: 0 12px 40px rgba(22, 48, 73, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 48, 73, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'HelveticaNeueCyr', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[href^="mailto:"], a[href^="tel:"] { color: var(--link); }
button { font: inherit; cursor: pointer; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-svg {
  height: 42px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.brand-tagline {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: 140px;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary-dark);
  background: rgba(98, 181, 229, 0.15);
}

.site-nav .btn {
  margin-left: 8px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.site-nav a.btn-accent,
.site-nav a.btn-accent:hover,
.site-nav a.btn-accent.is-active {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s;
  border: 0;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(49, 84, 112, 0.3);
}

.btn-primary:active { background: var(--primary-click); }

.btn-secondary {
  background: transparent;
  color: var(--secondary-dark);
  border: 1.5px solid var(--secondary-bright);
}

.btn-secondary:hover {
  border-color: var(--secondary-bright-hover);
  color: var(--secondary-bright-hover);
  background: #fff;
}

.btn-accent {
  background: var(--accent-strong);
  color: #fff;
}

.btn-accent:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(98, 181, 229, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-photo {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49, 84, 112, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(22, 48, 73, 0.2);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(5, 156, 2, 0.2);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(98, 181, 229, 0.15);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-strong);
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stats div strong {
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-stats div span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== SECTIONS ===== */
.section {
  padding: 72px 0;
}

.section-soft { background: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head .head-text { max-width: 640px; }

.section-head .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(49, 84, 112, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ===== ABOUT SPLIT ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-text .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(49, 84, 112, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  line-height: 1.15;
}

.about-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.about-features {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-feature .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-feature strong {
  display: block;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

.about-feature span {
  color: var(--muted);
  font-size: 14px;
}

/* ===== SERVICES GRID (как на vipservice.ru) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
  text-decoration: none;
  color: inherit;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.service:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
}

.service-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.service-arrow {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.service-arrow svg { transition: 0.2s; }
.service:hover .service-arrow svg { transform: translateX(4px); }

/* ===== HELPDESK (как Справка на vipservice) ===== */
.helpdesk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: 0.2s;
}

.help-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.help-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(98, 181, 229, 0.18), rgba(49, 84, 112, 0.10));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.help-icon img { width: 28px; height: 28px; }

.help-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
}

.help-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ===== ACCREDITATION ===== */
.accreditation {
  background: #eaeef1;
  border-radius: var(--radius-lg);
  padding: 48px;
}

.accreditation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.acc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.acc-card h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.acc-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.acc-card .row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  font-size: 14px;
  align-items: baseline;
}

.acc-card dt {
  color: var(--muted);
  font-weight: 500;
}

.acc-card dd {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 600;
  word-break: break-word;
}

.acc-card dd a { color: var(--primary); }

.acc-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
}

.acc-card ul li { margin-bottom: 6px; }

.acc-card p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.acc-card p:last-child { margin-bottom: 0; }

.doc-list {
  list-style: none;
  padding-left: 0 !important;
  margin-top: 12px !important;
}

.doc-list li {
  margin-bottom: 10px !important;
}

.doc-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acc-note {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted) !important;
  font-size: 13px !important;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stack-pill {
  padding: 6px 12px;
  background: rgba(49, 84, 112, 0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== PARTNERS ===== */
.partners {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 32px 48px;
}

.partners-row img {
  height: 42px;
  width: auto;
  max-width: 130px;
  opacity: 0.6;
  filter: grayscale(1);
  transition: 0.25s;
}

.partners-row img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ===== CTA STRIP ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  color: #fff;
}

.cta-strip h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.cta-strip .cta-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cta-strip .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cta-strip .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.cta-strip .btn-primary:hover { background: #f0f5fb; }

/* ===== CONTACTS PAGE ===== */
.page-header {
  padding: 64px 0 24px;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(98, 181, 229, 0.18), rgba(49, 84, 112, 0.10));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--primary-dark);
  font-weight: 800;
}

.contact-card a,
.contact-card p {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  display: block;
}

.contact-card a { color: var(--primary); font-weight: 600; }
.contact-card a:hover { color: var(--accent-strong); }

.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-col a:hover { color: #fff; }

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-top: 14px;
  max-width: 340px;
}

.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: rgba(255, 255, 255, 0.6); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .helpdesk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 560px; margin: 0 auto; width: 100%; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 560px; }
  .brand-divider, .brand-tagline { display: none; }
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .accreditation-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-strip { grid-template-columns: 1fr; padding: 32px; }
  .cta-strip .cta-actions { justify-content: flex-start; }
  .accreditation { padding: 32px 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 16px; }
  .site-nav .btn { margin: 8px 0 0; width: 100%; }

  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .helpdesk-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .acc-card .row { grid-template-columns: 1fr; gap: 2px; }
  .acc-card .row dt { font-size: 12px; }
  .hero-cta .btn { width: 100%; }
  .partners-row { gap: 24px; }
  .partners-row img { height: 32px; }
}

@media (max-width: 480px) {
  .accreditation { padding: 22px 16px; }
  .cta-strip { padding: 24px; }
  .cta-actions .btn { width: 100%; }
}
