body { min-height: 100%; width: 100vw; background: #080b14; overflow-x: hidden; margin: 0; padding: 0; }
[data-theme="light"] body { background: #fafbff; }
.grid-bg, .glow-orb { display: none; }

main.page-frame {
  background: rgba(10,14,28,.48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme="light"] main.page-frame {
  background: transparent !important;
}
[data-theme="light"] .about-side-rack { opacity: .18; }

/* Accent text — purple in light */
[data-theme="light"] .ct-heading-tag { color: var(--accent-text); }
[data-theme="light"] .ct-heading-tag::before,
[data-theme="light"] .ct-heading-tag::after { background: var(--accent-text); }
[data-theme="light"] .ct-heading h1 .grad {
  background: linear-gradient(90deg, #6132f2, #733cfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .ct-info-title { color: var(--accent-text); }
[data-theme="light"] .ct-info-title::before { background: var(--accent-text); }
[data-theme="light"] .ct-info-icon { color: var(--accent-text); }
[data-theme="light"] .ct-form-sub { color: var(--accent-text); }
[data-theme="light"] .hf-consent a { color: var(--accent-text); }
[data-theme="light"] .hf-status.ok { color: var(--accent-text); }

/* ── Contact light theme overrides ── */
[data-theme="light"] .ct-info-card,
[data-theme="light"] .ct-form-card {
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(0,20,60,.12) !important;
}
[data-theme="light"] .ct-info-item {
  border-bottom-color: rgba(0,0,0,.06);
}
[data-theme="light"] .ct-soc {
  border-color: rgba(115, 60, 252, 0.5);
  background: rgba(115, 60, 252, 0.1);
  color: #733cfc;
  box-shadow: 0 0 12px rgba(115, 60, 252, 0.25), inset 0 0 10px rgba(115, 60, 252, 0.05);
}
[data-theme="light"] .ct-soc svg {
  filter: drop-shadow(0 0 5px rgba(115, 60, 252, 0.7));
}
[data-theme="light"] .ct-soc:hover {
  border-color: rgba(115, 60, 252, 0.8);
  background: rgba(115, 60, 252, 0.2);
  box-shadow: 0 0 20px rgba(115, 60, 252, 0.42), inset 0 0 12px rgba(115, 60, 252, 0.1);
}
[data-theme="light"] .hf-input,
[data-theme="light"] .hf-select,
[data-theme="light"] .hf-textarea {
  background: rgba(255,255,255,.9);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="light"] .hf-input::placeholder,
[data-theme="light"] .hf-textarea::placeholder { color: var(--muted); }
[data-theme="light"] .hf-select { color: var(--muted); }
[data-theme="light"] .hf-select.filled { color: var(--text); }
main.page-frame::before { left: 0 !important; right: 0 !important; }

#hero-nav {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* ── Page heading ── */
.ct-heading {
  text-align: center;
  padding: 16px 40px 10px !important;
  position: relative; z-index: 1;
  width: 100%; box-sizing: border-box;
}
.ct-heading-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ct-heading-tag::before,
.ct-heading-tag::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--accent);
}
.ct-heading h1 {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; margin: 0 0 14px;
}
.ct-heading h1 .grad {
  background: linear-gradient(90deg, #00bcef, #00dbfd, #733cfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ct-heading-sub {
  font-size: 16px; color: var(--muted); max-width: 480px;
  margin: 0 auto; line-height: 1.6;
}

/* ── Cost calculator (lives inside .ct-cols; full-width strip below desktop) ── */
.ct-cols .calc-card { grid-column: 1 / -1; }
.calc-card {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(14,19,36,.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: 20px;
  padding: 32px;
}
.calc-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.calc-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px;
  align-items: end;
}
.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.calc-field label output {
  font-size: 16px; font-weight: 800; color: var(--accent);
  letter-spacing: 0; text-transform: none;
}
.calc-field input[type="range"] {
  width: 100%; accent-color: #00d4ff; cursor: pointer;
}
[data-theme="light"] .calc-field input[type="range"] { accent-color: #6132f2; }
[data-theme="light"] .calc-field label output { color: var(--accent-text); }
.calc-result {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
[data-theme="light"] .calc-result { border-top-color: rgba(0,0,0,.08); }
.calc-price-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.calc-price {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 900;
  background: linear-gradient(90deg, #00bcef, #00dbfd, #733cfc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .calc-price {
  background: linear-gradient(90deg, #0099cc, #6132f2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.calc-price-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
.calc-cta {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px; border-radius: 12px; border: 1px solid var(--cta-border);
  background: var(--cta-bg);
  color: #fff; font-weight: 800; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: .2s;
  box-shadow: var(--cta-shadow);
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.calc-cta:hover { background: var(--cta-bg-hover); transform: translateY(-1px); box-shadow: var(--cta-shadow-hover); }
[data-theme="light"] .calc-card { background: rgba(255,255,255,.88); border-color: rgba(0,20,60,.12); }
@media (max-width: 900px) {
  .calc-card { padding: 24px 20px; }
  .calc-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-result { flex-direction: column; align-items: stretch; text-align: center; }
}


/* ── Two-column layout ── */
.ct-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 18px 40px 80px !important;
  width: 100%; box-sizing: border-box;
  position: relative; z-index: 1;
  align-items: stretch;
}

/* ── Left: Contact info card ── */
.ct-info-card {
  position: relative; overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(14,19,36,.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: 20px;
  padding: 36px 32px;
}
.ct-info-inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.ct-info-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
}
.ct-info-title::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--accent);
}

.ct-info-list { display: flex; flex-direction: column; }
.ct-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ct-info-item:last-of-type { border-bottom: none; }
.ct-info-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.ct-info-body { flex: 1; min-width: 0; }
.ct-info-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.ct-info-value {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45;
}
.ct-info-value a {
  color: var(--text); text-decoration: none; transition: color .2s;
}
.ct-info-value a:hover { color: var(--accent); }

.ct-socials { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.ct-soc {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.1);
  color: #00dbfd;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.28), inset 0 0 10px rgba(0, 212, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  transition: .25s; text-decoration: none;
}
.ct-soc svg {
  display: block;
  filter: drop-shadow(0 0 5px rgba(0, 219, 253, 0.75));
}
.ct-soc:hover {
  border-color: rgba(0, 212, 255, 0.8);
  background: rgba(0, 212, 255, 0.18);
  color: #00dbfd;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.45), inset 0 0 12px rgba(0, 212, 255, 0.1);
}
.ct-soc-note {
  font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5;
}

/* ── Right: Form card ── */
.ct-form-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(14,19,36,.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 36px 32px;
}
.ct-form-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.ct-form-sub   { font-size: 13px; color: var(--accent); margin-bottom: 24px; }

/* Form fields — same design as hero form */
.hf-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; margin-top: 14px;
}
.hf-label:first-of-type { margin-top: 0; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hf-input, .hf-select, .hf-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 14px;
  color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.hf-input::placeholder, .hf-textarea::placeholder { color: #4a5568; }
.hf-input:focus, .hf-select:focus, .hf-textarea:focus { border-color: rgba(0,212,255,.45); }
.hf-select { appearance: none; cursor: pointer; color: #4a5568; }
.hf-select.filled { color: var(--text); }
.hf-textarea { resize: none; min-height: 80px; flex: 1; }
.hf-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11px; color: var(--muted); margin: 14px 0 16px; line-height: 1.5;
}
.hf-consent input { margin-top: 2px; flex-shrink: 0; accent-color: #00d4ff; }
.hf-consent a { color: var(--accent); }
.hf-submit {
  width: 100%; min-height: 48px; padding: 13px; border-radius: 12px; border: 1px solid var(--cta-border);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cta-bg);
  color: #fff; font-weight: 800; font-size: 15px; font-family: inherit;
  cursor: pointer; transition: .2s;
  box-shadow: var(--cta-shadow);
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.hf-submit:hover { background: var(--cta-bg-hover); transform: translateY(-1px); box-shadow: var(--cta-shadow-hover); }
.hf-status { font-size: 13px; margin-top: 10px; text-align: center; min-height: 18px; }
.hf-status.ok  { color: var(--accent); }
.hf-status.err { color: #ff6b6b; }

.ct-form-bottom { margin-top: auto; }
.calc-bottom { margin-top: auto; }

/* ── Side server racks (same as about page) ── */
.about-side-rack {
  position: fixed; top: 0; height: 100vh; width: 340px;
  pointer-events: none; z-index: 0; opacity: .9;
}
.about-side-rack-left  { left: 0; }
.about-side-rack-right { right: 0; }
.about-side-rack canvas { display: block; width: 340px; height: 100%; }
.about-side-rack-left canvas {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
}
.about-side-rack-right canvas {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 45%);
  mask-image: linear-gradient(to left, transparent 0%, black 45%);
}
@media (max-width: 1480px) { .about-side-rack { opacity: .65; } }
@media (max-width: 1240px) { .about-side-rack { display: none; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ct-cols { grid-template-columns: 1fr; padding: 14px 24px 60px; gap: 24px; }
  .ct-form-card { order: 1; }
  .ct-info-card { order: 2; }
  .ct-info-card, .ct-form-card { height: auto; }
  .hf-textarea { flex: none; }
  .ct-heading { padding: 32px 24px 24px; }
}
@media (max-width: 560px) {
  .ct-heading { padding: 24px 16px 20px; }
  .ct-cols { padding: 12px 16px 40px; }
  .ct-info-card, .ct-form-card { padding: 24px 20px; }
  .hf-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Desktop: три колонки (инфо | форма | калькулятор), всё в один экран ── */
@media (min-width: 1241px) {
  .ct-heading { padding: 10px 40px 6px !important; }
  .ct-heading h1 { font-size: clamp(24px, 2.2vw, 34px); margin-bottom: 8px; }
  .ct-heading-sub { font-size: 14px; }
  .ct-cols {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 20px;
    padding: 18px 40px 12px !important;
  }
  .ct-cols .calc-card { grid-column: auto; order: 1; }
  .ct-form-card { order: 2; }
  .ct-info-card { order: 3; }
  /* компрессия карточек по вертикали */
  .ct-info-card, .ct-form-card, .calc-card { padding: 22px 24px; }
  .ct-info-title { margin-bottom: 18px; }
  .ct-info-item { padding: 12px 0; }
  .ct-socials { padding-top: 18px; }
  .ct-form-card .hf-textarea { min-height: 80px; }
  .calc-grid { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .calc-sub { margin-bottom: 16px; }
  .calc-top .calc-result {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    flex-direction: column;
    align-items: stretch;
  }
  [data-theme="light"] .calc-top .calc-result { border-top-color: rgba(0,0,0,.08); }
  .ct-form-bottom .hf-consent {
    min-height: 64px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
  .calc-cta-spacer {
    min-height: 28px;
    margin-top: 0;
  }
}
