:root {
  --bg: #f6f9ff;
  --bg2: #eaf2ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface2: rgba(255, 255, 255, 0.96);
  --text: #0f172a;
  --muted: #52627a;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 24px 70px rgba(31, 48, 91, 0.14);
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --green: #10b981;
  --gold: #f59e0b;
  --beam: #38bdf8;
  --blue-rgb: 37, 99, 235;
  --cyan-rgb: 14, 165, 233;
  --green-rgb: 16, 185, 129;
  --container: 1180px;
}

:root[data-theme='dark'] {
  --bg: #06101f;
  --bg2: #0a1930;
  --surface: rgba(11, 23, 42, 0.78);
  --surface2: rgba(13, 27, 49, 0.96);
  --text: #eff6ff;
  --muted: #9fb2cf;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --green: #34d399;
  --gold: #fbbf24;
  --beam: #7dd3fc;
  --blue-rgb: 96, 165, 250;
  --cyan-rgb: 34, 211, 238;
  --green-rgb: 52, 211, 153;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--blue-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(var(--green-rgb), 0.13), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(var(--cyan-rgb), 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-shell { min-height: 100vh; position: relative; overflow: hidden; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.section { padding: 96px 0; }

.ambient { position: fixed; z-index: 0; border-radius: 999px; filter: blur(80px); opacity: 0.44; pointer-events: none; }
.ambient-one { width: 300px; height: 300px; left: -90px; top: 160px; background: rgba(var(--blue-rgb), 0.36); }
.ambient-two { width: 360px; height: 360px; right: -140px; top: 340px; background: rgba(var(--green-rgb), 0.28); }
.ambient-three { width: 280px; height: 280px; left: 44%; bottom: -140px; background: rgba(var(--cyan-rgb), 0.22); }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 249, 255, 0.78);
  backdrop-filter: blur(18px);
}
:root[data-theme='dark'] .header { background: rgba(6, 16, 31, 0.78); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-icon { width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(var(--blue-rgb), 0.16), rgba(var(--green-rgb), 0.1)), var(--surface2); color: var(--cyan); box-shadow: var(--shadow); overflow: hidden; }
.nav { display: flex; gap: 22px; align-items: center; justify-content: center; flex: 1; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 700; transition: color 0.2s ease, transform 0.2s ease; }
.nav a:hover { color: var(--text); transform: translateY(-1px); }
.theme-toggle { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s ease; }
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle strong { font-size: 0.9rem; }

.hero { padding-top: 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr); gap: 42px; align-items: center; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 20px; }
.lead, .section-head p, .contact-card p { color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.lead { max-width: 660px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 16px; border: 1px solid transparent; font-weight: 850; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--blue), var(--green)); box-shadow: 0 18px 46px rgba(var(--blue-rgb), 0.28); }
.button-secondary { color: var(--text); border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 430px; }
.stats div { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 22px; padding: 18px; }
.stats strong { display: block; font-size: 1.28rem; margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: 0.92rem; }

.hero-scene { position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, rgba(var(--blue-rgb), 0.1), rgba(var(--green-rgb), 0.05)), var(--surface); box-shadow: var(--shadow); isolation: isolate; }
.scene-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(var(--cyan-rgb), 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(var(--cyan-rgb), 0.08) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 85%); }
.star { position: absolute; width: 10px; height: 10px; border-radius: 999px; background: var(--beam); box-shadow: 0 0 22px var(--beam); animation: pulseStar 2.4s ease-in-out infinite; }
.star-one { top: 68px; left: 70px; }
.star-two { top: 106px; right: 90px; animation-delay: 0.5s; }
.star-three { top: 180px; right: 170px; animation-delay: 1s; }
.beam { position: absolute; left: 47%; top: 138px; width: 55%; height: 168px; transform-origin: left center; clip-path: polygon(0 48%, 100% 0, 100% 100%); background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.55), rgba(var(--cyan-rgb), 0.13), transparent); filter: blur(1px); z-index: 2; animation: sweep 6.5s ease-in-out infinite alternate; }
.beam-left { left: auto; right: 49%; transform-origin: right center; clip-path: polygon(100% 48%, 0 0, 0 100%); opacity: 0.52; animation-delay: 0.5s; }
.binary { position: absolute; z-index: 3; color: var(--cyan); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.16em; opacity: 0.68; white-space: nowrap; animation: drift 9s linear infinite; }
.binary-one { top: 118px; left: 28%; }
.binary-two { top: 194px; right: 26%; animation-direction: reverse; opacity: 0.48; }
.wifi { position: absolute; left: 47%; top: 137px; z-index: 4; border: 2px solid rgba(var(--cyan-rgb), 0.36); border-radius: 999px; transform: translate(-50%, -50%); animation: wifiPulse 2.8s ease-out infinite; }
.wifi-one { width: 48px; height: 48px; }
.wifi-two { width: 82px; height: 82px; animation-delay: 0.35s; }
.wifi-three { width: 118px; height: 118px; animation-delay: 0.7s; }
.sea { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(90deg, rgba(var(--blue-rgb), 0.18), rgba(var(--green-rgb), 0.22)); }
.sea-back { width: 92%; height: 66px; bottom: 62px; }
.sea-front { width: 76%; height: 46px; bottom: 31px; opacity: 0.86; }
.rock { position: absolute; left: 35%; bottom: 84px; width: 31%; height: 92px; background: linear-gradient(180deg, rgba(75, 85, 99, 0.82), rgba(20, 27, 39, 0.95)); clip-path: polygon(15% 100%, 0 65%, 18% 42%, 35% 36%, 56% 0, 75% 22%, 100% 54%, 86% 100%); z-index: 2; }
.tower-art { position: absolute; left: 45%; bottom: 128px; width: 96px; height: 260px; transform: translateX(-50%); z-index: 5; }
.tower-antenna { position: absolute; left: 45px; top: -16px; width: 6px; height: 22px; border-radius: 99px; background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.55); }
.tower-lamp { position: absolute; left: 30px; top: 5px; width: 36px; height: 22px; border-radius: 12px; background: #fff7b0; box-shadow: 0 0 32px rgba(255, 247, 176, 0.95); z-index: 2; }
.tower-roof { position: absolute; left: 18px; top: 0; width: 60px; height: 40px; border-radius: 12px 12px 4px 4px; background: linear-gradient(135deg, var(--blue), var(--green)); }
.tower-body { position: absolute; left: 11px; top: 34px; width: 74px; height: 198px; border-radius: 20px 20px 10px 10px; overflow: hidden; background: linear-gradient(180deg, #ffffff, #deebff); border: 1px solid rgba(var(--blue-rgb), 0.18); }
.tower-body i { display: block; height: 25%; }
.tower-body i:nth-child(2) { background: rgba(var(--blue-rgb), 0.88); }
.tower-body i:nth-child(3) { background: rgba(var(--green-rgb), 0.8); }
.tower-four { position: absolute; left: 34px; top: 103px; color: rgba(255,255,255,0.92); font-size: 42px; font-weight: 950; text-shadow: 0 3px 10px rgba(0,0,0,0.22); }
.tower-door { position: absolute; left: 34px; bottom: 0; width: 28px; height: 42px; border-radius: 15px 15px 6px 6px; background: #1d4ed8; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2, .contact-card h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 15px; }
.concept-grid, .services-grid, .timeline { display: grid; gap: 18px; }
.concept-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.card, .service-card, .timeline-item, .contact-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 28px; }
.card, .service-card, .timeline-item { padding: 24px; transition: transform 0.24s ease, border-color 0.24s ease; }
.card:hover, .service-card:hover, .timeline-item:hover { transform: translateY(-5px); border-color: rgba(var(--cyan-rgb), 0.34); }
.card-icon { width: 48px; height: 48px; display: inline-grid; place-items: center; margin-bottom: 16px; border-radius: 16px; color: var(--cyan); background: linear-gradient(135deg, rgba(var(--blue-rgb),0.14), rgba(var(--green-rgb),0.12)); font-size: 1.2rem; }
.card h3, .service-card h3, .timeline-item h3 { margin-bottom: 12px; font-size: 1.24rem; }
.card p, .service-card p, .timeline-item p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.service-card span, .timeline-item span { display: inline-block; color: var(--cyan); font-weight: 950; letter-spacing: 0.08em; margin-bottom: 14px; }
.service-card a { display: inline-block; margin-top: 18px; color: var(--cyan); font-weight: 850; }


.timeline { grid-template-columns: repeat(4, 1fr); }
.contact { padding-top: 60px; }
.contact-card { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; align-items: center; padding: 30px; }
.contact-actions { display: grid; gap: 14px; }
.footer { padding: 24px 0 38px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 20px; }
.footer p { color: var(--muted); margin: 0; }

.reveal { animation: revealUp 0.72s ease both; }
.reveal-delay { animation-delay: 0.14s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sweep { 0% { transform: rotate(-12deg) scaleX(0.94); } 100% { transform: rotate(18deg) scaleX(1.04); } }
@keyframes wifiPulse { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.76); } 30% { opacity: 0.72; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); } }
@keyframes drift { from { transform: translateX(-22px); } to { transform: translateX(22px); } }
@keyframes pulseStar { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.18); } }

@media (max-width: 1060px) {
  .hero-grid, .contact-card { grid-template-columns: 1fr; }
  .concept-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero-scene { min-height: 480px; }
}

@media (max-width: 820px) {
  .section { padding: 76px 0; }
  .header-inner { align-items: flex-start; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; gap: 14px; padding-bottom: 4px; }
  .theme-toggle strong { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .stats, .services-grid, .concept-grid, .timeline { grid-template-columns: 1fr; }
  .hero-scene { min-height: 430px; border-radius: 26px; }
  .tower-art { transform: translateX(-50%) scale(0.86); bottom: 105px; }
  .rock { bottom: 66px; }
  .sea-back { bottom: 48px; }
  .sea-front { bottom: 23px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 22px)); }
  .hero-actions, .contact-actions { grid-template-columns: 1fr; display: grid; }
  .button { width: 100%; }
  
.hero-scene { min-height: 390px; }
  .tower-art { transform: translateX(-50%) scale(0.72); bottom: 92px; }
  .beam { width: 50%; top: 132px; }
  .binary { display: none; }
  
.contact-card, .card, .service-card, .timeline-item { border-radius: 22px; }
}

/* Расширение каталога услуг и форматов работ */
.services-grid-three { grid-template-columns: repeat(3, 1fr); }
.service-card-featured { min-height: 270px; position: relative; overflow: hidden; }
.service-card-featured::after { content: ''; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 999px; background: radial-gradient(circle, rgba(var(--cyan-rgb),0.22), transparent 70%); pointer-events: none; }

.catalog-section, .formats-section, .plans-section, .offers-section { position: relative; }
.catalog-grid, .work-grid, .plans-grid, .offers-grid { display: grid; gap: 18px; }
.catalog-grid { grid-template-columns: repeat(3, 1fr); }
.work-grid { grid-template-columns: repeat(3, 1fr); }
.plans-grid { grid-template-columns: repeat(3, 1fr); }
.offers-grid { grid-template-columns: repeat(3, 1fr); }

.catalog-card, .work-card, .plan-card, .offer-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 28px; padding: 24px; transition: transform 0.24s ease, border-color 0.24s ease; }
.catalog-card:hover, .work-card:hover, .plan-card:hover, .offer-card:hover { transform: translateY(-5px); border-color: rgba(var(--cyan-rgb), 0.34); }
.catalog-card h3, .work-card h3, .offer-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.catalog-card p, .work-card p, .plan-card p, .offer-card p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.work-card { position: relative; padding-left: 58px; }
.work-dot { position: absolute; left: 24px; top: 30px; width: 16px; height: 16px; border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--green)); box-shadow: 0 0 22px rgba(var(--cyan-rgb),0.58); }
.work-dot::after { content: ''; position: absolute; inset: -7px; border-radius: inherit; border: 1px solid rgba(var(--cyan-rgb),0.28); }

.pricing-panel { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(var(--blue-rgb),0.11), rgba(var(--green-rgb),0.06)), var(--surface); border-radius: 34px; box-shadow: var(--shadow); padding: 30px; }
.pricing-head { margin-bottom: 24px; }
.plan-card { background: var(--surface2); }
.plan-card span, .offer-card span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; margin-bottom: 14px; border-radius: 999px; color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb),0.25); background: rgba(var(--cyan-rgb),0.08); font-weight: 900; }
.plan-card strong { display: block; font-size: clamp(1.45rem, 2vw, 2rem); margin-bottom: 12px; letter-spacing: -0.03em; }
.offer-card { background: linear-gradient(180deg, rgba(var(--blue-rgb),0.07), rgba(var(--green-rgb),0.04)), var(--surface); }

.timeline-five { grid-template-columns: repeat(5, 1fr); }
.contact-mini { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.contact-mini span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface2); font-size: 0.9rem; font-weight: 800; }

@media (max-width: 1120px) {
  .services-grid-three, .catalog-grid, .work-grid, .plans-grid, .offers-grid, .timeline-five { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .services-grid-three, .catalog-grid, .work-grid, .plans-grid, .offers-grid, .timeline-five { grid-template-columns: 1fr; }
  .pricing-panel { padding: 22px; border-radius: 24px; }
  .work-card { padding-left: 50px; }
  .work-dot { left: 20px; }
}

/* Детальная секция тарифов IT-аутсорсинга */
.tariffs-section { position: relative; }
.tariff-panel { overflow: hidden; }
.tariff-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.tariff-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.tariff-table th, .tariff-table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tariff-table th { color: var(--text); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(var(--blue-rgb),0.08); }
.tariff-table tbody tr:last-child td { border-bottom: 0; }
.tariff-table td:first-child { width: 52%; }
.tariff-table td:not(:first-child) { font-weight: 950; color: var(--text); white-space: nowrap; }
.tariff-table td strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.tariff-table td span { display: block; color: var(--muted); line-height: 1.55; }
.tariff-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.tariff-summary-card { border: 1px solid var(--line); background: var(--surface2); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.tariff-summary-card-accent { background: linear-gradient(135deg, rgba(var(--blue-rgb),0.12), rgba(var(--green-rgb),0.08)), var(--surface2); }
.tariff-summary-card span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; margin-bottom: 12px; border-radius: 999px; color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb),0.25); background: rgba(var(--cyan-rgb),0.08); font-weight: 900; }
.tariff-summary-card strong { display: block; font-size: clamp(1.35rem, 2.5vw, 2rem); margin-bottom: 10px; letter-spacing: -0.03em; }
.tariff-summary-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.tariff-calculator-head { margin-top: 34px; }

@media (max-width: 760px) {
  .tariff-table-wrap { overflow: visible; border: 0; background: transparent; }
  .tariff-table { min-width: 0; }
  .tariff-table thead { display: none; }
  .tariff-table, .tariff-table tbody, .tariff-table tr, .tariff-table td { display: block; width: 100%; }
  .tariff-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface2); overflow: hidden; box-shadow: var(--shadow); }
  .tariff-table th, .tariff-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tariff-table td:first-child { width: 100%; }
  .tariff-table td:not(:first-child) { display: flex; justify-content: space-between; gap: 14px; white-space: normal; }
  .tariff-table td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-weight: 800; }
  .tariff-summary-grid { grid-template-columns: 1fr; }
}

/* v6: закреплённая шапка + более глубокая тёмная тема с фиолетовыми акцентами */
:root {
  --purple: #7c3aed;
  --purple-rgb: 124, 58, 237;
}

:root[data-theme='dark'] {
  --bg: #02030a;
  --bg2: #080018;
  --surface: rgba(7, 8, 20, 0.86);
  --surface2: rgba(10, 12, 28, 0.98);
  --text: #f7f3ff;
  --muted: #a99bc8;
  --line: rgba(196, 181, 253, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  --blue: #818cf8;
  --cyan: #67e8f9;
  --green: #34d399;
  --gold: #f0abfc;
  --beam: #c084fc;
  --blue-rgb: 129, 140, 248;
  --cyan-rgb: 103, 232, 249;
  --green-rgb: 52, 211, 153;
  --purple: #a855f7;
  --purple-rgb: 168, 85, 247;
}

html {
  scroll-padding-top: 104px;
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--blue-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(var(--purple-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 92% 42%, rgba(var(--green-rgb), 0.10), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(var(--cyan-rgb), 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

:root[data-theme='dark'] body {
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--blue-rgb), 0.14), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(var(--purple-rgb), 0.24), transparent 32%),
    radial-gradient(circle at 50% 98%, rgba(var(--cyan-rgb), 0.09), transparent 36%),
    linear-gradient(180deg, #02030a 0%, #050010 44%, #090016 100%);
}

.site-shell {
  padding-top: 79px;
  overflow-x: hidden;
  overflow-y: visible;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: rgba(246, 249, 255, 0.86);
  box-shadow: 0 14px 42px rgba(31, 48, 91, 0.10);
}

:root[data-theme='dark'] .header {
  background: rgba(3, 4, 14, 0.88);
  border-bottom-color: rgba(196, 181, 253, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.54), 0 0 42px rgba(var(--purple-rgb), 0.10);
}

.ambient-two {
  background: rgba(var(--purple-rgb), 0.26);
}

.ambient-three {
  background: rgba(var(--purple-rgb), 0.22);
}

.card-icon {
  background: linear-gradient(145deg, rgba(var(--blue-rgb), 0.15), rgba(var(--purple-rgb), 0.14), rgba(var(--cyan-rgb), 0.08)), var(--surface2);
}

.button-primary,
.tower-roof {
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
}

.hero-scene,
.pricing-panel,
.offer-card,
.tariff-summary-card-accent {
  background:
    linear-gradient(135deg, rgba(var(--blue-rgb), 0.09), rgba(var(--purple-rgb), 0.10), rgba(var(--cyan-rgb), 0.05)),
    var(--surface);
}

.card:hover,
.service-card:hover,
.timeline-item:hover,
.catalog-card:hover,
.work-card:hover,
.plan-card:hover,
.offer-card:hover {
  border-color: rgba(var(--purple-rgb), 0.38);
}

:root[data-theme='dark'] .tower-body {
  background: linear-gradient(180deg, #f7f3ff, #ddd6fe);
}

:root[data-theme='dark'] .tower-door {
  background: #6d28d9;
}

section[id] {
  scroll-margin-top: 104px;
}

@media (max-width: 820px) {
  html { scroll-padding-top: 148px; }
  .site-shell { padding-top: 126px; }
  section[id] { scroll-margin-top: 148px; }
}

@media (max-width: 560px) {
  .site-shell { padding-top: 126px; }
  .header { background: rgba(246, 249, 255, 0.92); }
  :root[data-theme='dark'] .header { background: rgba(3, 4, 14, 0.94); }
}

/* v7: мягкая маркировка секций и активный пункт меню */
.nav {
  gap: 8px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav a:hover {
  background: rgba(var(--purple-rgb), 0.08);
  border-color: rgba(var(--purple-rgb), 0.16);
}

.nav a.is-active {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(var(--blue-rgb), 0.12), rgba(var(--purple-rgb), 0.14), rgba(var(--cyan-rgb), 0.08));
  border-color: rgba(var(--purple-rgb), 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(var(--purple-rgb), 0.12);
}

.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  box-shadow: 0 0 12px rgba(var(--purple-rgb), 0.45);
}



@media (max-width: 1320px) {
}

@media (max-width: 1060px) {
  .nav {
    gap: 6px;
  }

  .nav a {
    padding: 0 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 820px) {
  .nav {
    gap: 8px;
    scrollbar-width: none;
  }

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

/* v10: точная настройка hero-заголовка, якорей и цвета цифры 4 в шапке */
.brand-four {
  color: #67e8f9;
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.35);
}

.hero h1 {
  font-size: clamp(1.95rem, 3.65vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  max-width: 760px;
}

html {
  scroll-padding-top: 84px;
}

section[id] {
  scroll-margin-top: 84px;
}

@media (max-width: 820px) {
  html { scroll-padding-top: 132px; }
  section[id] { scroll-margin-top: 132px; }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.5rem);
    line-height: 1.12;
  }
}

/* v11: случайный маяк из парного пула 10 светлых + 10 тёмных изображений */
.hero-scene-random {
  position: relative;
  min-height: 520px;
  background: var(--surface);
  overflow: hidden;
}

.hero-lighthouse-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0;
  transition: opacity 0.28s ease;
  transform: scale(1.002);
}

:root[data-theme='light'] .hero-lighthouse-light { opacity: 1; }
:root[data-theme='light'] .hero-lighthouse-dark { opacity: 0; }
:root[data-theme='dark'] .hero-lighthouse-light { opacity: 0; }
:root[data-theme='dark'] .hero-lighthouse-dark { opacity: 1; }

@media (max-width: 820px) {
  .hero-scene-random { min-height: 430px; }
  .hero-lighthouse-image { object-position: 50% 46%; }
}

@media (max-width: 560px) {
  .hero-scene-random { min-height: 390px; }
  .hero-lighthouse-image { object-position: 50% 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lighthouse-image { transition: none; }
}

/* v12: многостраничная архитектура React Router */
main { min-height: 68vh; }

.page-hero {
  padding-top: 74px;
  padding-bottom: 64px;
}
.page-hero-inner {
  max-width: 900px;
}
.page-hero h1,
.not-found h1 {
  margin: 0 0 20px;
  max-width: 900px;
  font-size: clamp(2.15rem, 4.2vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
}
.page-hero .lead { max-width: 790px; }

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

.split-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.info-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(var(--blue-rgb), 0.07), rgba(var(--purple-rgb), 0.08), rgba(var(--cyan-rgb), 0.04)),
    var(--surface);
  box-shadow: var(--shadow);
}
.info-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.info-panel p { margin-bottom: 0; color: var(--muted); line-height: 1.75; }

.inline-page-link { margin-top: 28px; }
.inline-page-link a { color: var(--cyan); font-weight: 900; }

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-channel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.contact-channel > span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.contact-channel a,
.contact-channel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.contact-channel p { margin: 0; color: var(--muted); line-height: 1.7; }

.brief-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.brief-list span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
  font-weight: 750;
}

.compact-contact { padding-top: 56px; }
.not-found { padding-top: 120px; padding-bottom: 140px; }
.not-found .lead { margin-bottom: 28px; }

.footer-router-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.footer-router-grid > p { color: var(--muted); margin: 0; text-align: right; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 750; transition: color .2s ease; }
.footer-links a:hover { color: var(--cyan); }


@media (max-width: 1120px) {
  .feature-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-router-grid { grid-template-columns: auto 1fr; }
  .footer-router-grid > p { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 820px) {
  .page-hero { padding-top: 50px; padding-bottom: 46px; }
  .page-hero h1, .not-found h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .feature-detail-grid,
  .split-info-grid,
  .contact-page-grid { grid-template-columns: 1fr; }
  .info-panel, .contact-channel { border-radius: 22px; padding: 22px; }
  .footer-router-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-router-grid > p { grid-column: auto; }
}

@media (max-width: 560px) {
  .page-hero { padding-top: 42px; }
  .page-hero h1, .not-found h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .contact-channel { padding: 20px; }
}

/* v14: reference lighthouse brand icon in header/footer */
.brand-icon {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 48, 91, 0.14);
}
:root[data-theme='dark'] .brand-icon {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 20px rgba(var(--cyan-rgb), 0.08);
}
.brand-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


/* v15: standalone reference brand icon */
.brand-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  line-height: 0;
}
.brand-icon {
  width: 52px;
  height: 52px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
:root[data-theme='dark'] .brand-icon { box-shadow: none; }
.brand-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
@media (max-width: 620px) {
  .brand-icon { width: 46px; height: 46px; border-radius: 13px; }
}


/* v16: restore lockup text and clean dark icon edges */
.brand-lockup {
  gap: 12px;
  min-width: 0;
  line-height: 1;
}
.brand-copy {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-icon-link,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-icon {
  width: 52px;
  height: 52px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
:root[data-theme='dark'] .brand-icon {
  background: #020814;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.06);
}
@media (max-width: 820px) {
  .brand-title {
    font-size: 1.2rem;
  }
  .brand-tagline {
    font-size: 0.8rem;
  }
}
@media (max-width: 620px) {
  .brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  .brand-title {
    font-size: 1.08rem;
  }
  .brand-tagline {
    font-size: 0.75rem;
  }
}

/* v17: dark brand icon without any visible edge */
:root[data-theme='dark'] .brand-icon {
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* v18: полноценная мобильная версия */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }
  section[id] { scroll-margin-top: 80px; }

  .site-shell { padding-top: 71px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section { padding: 62px 0; }

  .header {
    background: rgba(246, 249, 255, 0.94);
    backdrop-filter: blur(22px);
  }
  :root[data-theme='dark'] .header { background: rgba(3, 4, 14, 0.95); }

  .header-inner {
    min-height: 71px;
    padding: 9px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    align-items: center;
  }

  .brand-lockup { gap: 10px; }
  .brand-icon { width: 44px; height: 44px; border-radius: 13px; }
  .brand-title { font-size: 1.08rem; }
  .brand-tagline { font-size: 0.72rem; }

  .header-actions { grid-column: 2; grid-row: 1; }
  .theme-toggle,
  .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
    box-shadow: none;
  }
  .theme-toggle { padding: 0; justify-content: center; }
  .theme-toggle strong { display: none; }
  .menu-toggle { display: inline-flex; }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease, padding .25s ease;
  }

  .header.menu-open .nav {
    max-height: 360px;
    padding: 10px 0 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    justify-content: flex-start;
    border-radius: 14px;
    font-size: .94rem;
    background: color-mix(in srgb, var(--surface2) 72%, transparent);
    border-color: var(--line);
  }
  .nav a.is-active::after { display: none; }

  .header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 42px; }
  .hero-grid { gap: 30px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(2rem, 8.8vw, 3.05rem); }
  .lead, .section-head p, .contact-card p { font-size: 1rem; line-height: 1.68; }
  .hero-actions { margin: 26px 0; }
  .hero-scene-random { min-height: min(74vw, 500px); }

  .stats { max-width: none; }
  .stats div { padding: 16px; border-radius: 18px; }

  .card, .service-card, .timeline-item,
  .catalog-card, .work-card, .plan-card, .offer-card,
  .info-panel, .contact-channel {
    padding: 21px;
    border-radius: 22px;
  }

  .contact-card {
    padding: 22px;
    border-radius: 24px;
    gap: 22px;
  }

  .page-hero { padding-top: 46px; padding-bottom: 34px; }
  .page-hero h1, .not-found h1 { font-size: clamp(2rem, 8.4vw, 3rem); }
  .compact-contact { padding-top: 36px; }

  .pricing-panel { padding: 18px; border-radius: 22px; }
  .tariff-table tr { border-radius: 18px; }
  .tariff-table td:not(:first-child) { align-items: baseline; }

  .footer { padding-top: 8px; padding-bottom: 26px; }
  .footer-router-grid { gap: 18px; padding-top: 20px; }
  .footer-links { gap: 12px 18px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  section[id] { scroll-margin-top: 76px; }
  .site-shell { padding-top: 67px; }
  .container { width: min(var(--container), calc(100% - 22px)); }
  .section { padding: 52px 0; }

  .header-inner { min-height: 67px; padding: 8px 0; }
  .brand-icon { width: 42px; height: 42px; border-radius: 12px; }
  .brand-title { font-size: 1.02rem; }
  .brand-tagline { font-size: .69rem; }
  .header-actions { gap: 7px; }
  .theme-toggle,
  .menu-toggle { width: 42px; min-width: 42px; height: 42px; min-height: 42px; border-radius: 13px; }

  .nav { grid-template-columns: 1fr; gap: 7px; }
  .header.menu-open .nav { max-height: 520px; padding-top: 9px; }
  .nav a { min-height: 44px; }

  .hero { padding-top: 34px; }
  .hero-grid { gap: 24px; }
  .hero h1 { font-size: clamp(1.92rem, 9.6vw, 2.55rem); }
  .hero-actions, .contact-actions { gap: 10px; margin-top: 24px; }
  .button { min-height: 50px; padding: 0 17px; border-radius: 14px; }

  .stats { gap: 10px; }
  .stats div { padding: 15px; }
  .hero-scene,
  .hero-scene-random { min-height: 112vw; max-height: 470px; border-radius: 22px; }
  .hero-lighthouse-image { object-position: 50% 46%; }

  .section-head { margin-bottom: 24px; }
  .section-head h2, .contact-card h2 { font-size: clamp(1.75rem, 8vw, 2.35rem); }

  .card, .service-card, .timeline-item,
  .catalog-card, .work-card, .plan-card, .offer-card,
  .info-panel, .contact-channel { padding: 19px; border-radius: 20px; }
  .work-card { padding-left: 48px; }
  .work-dot { left: 19px; top: 26px; }

  .pricing-panel { padding: 12px; }
  .tariff-table tr { margin-bottom: 10px; }
  .tariff-table th, .tariff-table td { padding: 13px 14px; }
  .tariff-table td:not(:first-child) { gap: 10px; }

  .contact-card { padding: 19px; border-radius: 21px; }
  .page-hero { padding-top: 36px; padding-bottom: 28px; }
  .page-hero h1, .not-found h1 { font-size: clamp(1.86rem, 9.2vw, 2.5rem); }
  .not-found { padding-top: 72px; padding-bottom: 88px; }

  .footer-router-grid { grid-template-columns: 1fr; }
  .footer-links { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 11px 22px; }
  .footer-router-grid > p { font-size: .9rem; }
}

@media (max-width: 380px) {
  .brand-tagline { display: none; }
  .brand-lockup { gap: 8px; }
  .brand-icon { width: 40px; height: 40px; }
  .brand-title { font-size: 1rem; }
  .theme-toggle,
  .menu-toggle { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
  .hero h1 { font-size: clamp(1.75rem, 9.8vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .menu-toggle span { transition: none; }
}

/* v19: mobile production hardening */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
.button,
.nav a,
.theme-toggle,
.menu-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.button:focus-visible,
.nav a:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.brand-lockup:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 68%, white);
  outline-offset: 3px;
}
.header {
  -webkit-backdrop-filter: blur(22px);
}

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .theme-toggle:hover,
  .nav a:hover,
  .card:hover,
  .service-card:hover,
  .timeline-item:hover,
  .catalog-card:hover,
  .work-card:hover,
  .plan-card:hover,
  .offer-card:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }
  .footer-links {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-links a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}


/* v19 price list refresh — source: IT4Y unified price 2026 */
/* 19.002: tariff cards reflowed to prevent cramped labels and text overflow. */
.subscription-plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}
.subscription-plan-card {
  display: flex;
  flex: 0 1 calc((100% - 36px) / 3);
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 26px;
}
.subscription-plan-card > span:first-child {
  width: 100%;
  justify-content: flex-start;
}
.subscription-plan-card > strong {
  font-size: clamp(1.65rem, 2.35vw, 2.05rem);
  line-height: 1.15;
  white-space: nowrap;
  margin-bottom: 14px;
}
.subscription-plan-card .plan-audience {
  min-height: 3.2em;
  margin-bottom: 20px;
  line-height: 1.55;
}
.subscription-plan-card .plan-value {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.62;
}
.plan-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.plan-facts div {
  min-width: 0;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  background: rgba(var(--blue-rgb), 0.05);
  overflow: hidden;
}
.plan-facts small,
.plan-facts b {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}
.plan-facts small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.plan-facts b {
  font-size: 0.96rem;
  line-height: 1.32;
}
.price-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface2);
  box-shadow: var(--shadow);
}
.price-matrix,
.service-price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-matrix { min-width: 1180px; }
.service-price-table { min-width: 820px; }
.price-matrix th,
.price-matrix td,
.service-price-table th,
.service-price-table td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
.price-matrix th,
.service-price-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface2);
}
.price-matrix tbody tr:last-child td,
.service-price-table tbody tr:last-child td { border-bottom: 0; }
.price-matrix td:nth-child(n+3):nth-child(-n+7) {
  text-align: center;
  font-weight: 900;
  white-space: nowrap;
}
.price-matrix td:nth-child(2),
.price-matrix td:last-child,
.service-price-table td:last-child {
  color: var(--muted);
}
.service-price-table th:nth-child(2),
.service-price-table td:nth-child(2),
.service-price-table th:nth-child(3),
.service-price-table td:nth-child(3) {
  white-space: nowrap;
}
.service-price-table td:nth-child(2) { font-weight: 950; }
.price-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.price-option-card {
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.price-option-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.price-option-card strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.price-option-card > span {
  display: inline-flex;
  color: var(--cyan);
  font-weight: 850;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.price-option-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.price-groups {
  display: grid;
  gap: 12px;
}
.price-group {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 900;
}
.price-group[open] summary::after { content: '−'; }
.price-group summary strong {
  font-size: 1.02rem;
  line-height: 1.35;
}
.price-group summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}
.price-group > .price-table-scroll {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .price-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .subscription-plan-card { flex-basis: calc((100% - 18px) / 2); }
  .price-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-plan-card .plan-audience { min-height: 0; }
}
@media (max-width: 560px) {
  .subscription-plan-card { flex-basis: 100%; padding: 22px; }
  .price-option-grid { grid-template-columns: 1fr; }
  .plan-facts { grid-template-columns: 1fr 1fr; }
  .subscription-plan-card > strong { white-space: normal; }
  .price-group summary { padding: 15px 16px; }
  .price-group summary span { display: none; }
  .price-matrix th, .price-matrix td,
  .service-price-table th, .service-price-table td { padding: 12px 13px; }
}


@media (max-width: 390px) {
  .plan-facts { grid-template-columns: 1fr; }
  .plan-facts div { min-height: 0; }
}

/* IT4Y 19.002 */
.footer-links a[href^="tel:"],
.footer-links a[href^="mailto:"] {
  color: var(--text);
}
.footer-router-grid small {
  color: var(--muted);
  font-weight: 750;
}
@media (max-width: 560px) {
  .footer-links a[href^="tel:"],
  .footer-links a[href^="mailto:"] {
    grid-column: 1 / -1;
  }
}
