/**
 * MTI Praktika - Main Landing Stylesheet
 * Architectural & Clean MTI Style: Yellow, Graphite-Black, Blue, Dark-Green
 * Zero CLS, Custom Dropdowns, Centered FAQ Icons, No Button Hopping, Mobile 320px & Desktop
 *
 * @version 1.2.0
 */

:root {
  /* Brand Palette: MTI Yellow, Graphite, Blue, Dark-Green */
  --primary: #f5b301;
  --primary-hover: #e0a300;
  --primary-dark: #ca8a04;
  --primary-light: #fefce8;
  --primary-border: #fef08a;

  --graphite-950: #0d0d11;
  --graphite-900: #18181b;
  --graphite-800: #27272a;
  --graphite-700: #3f3f46;
  --graphite-600: #52525b;
  --slate-400: #a1a1aa;
  --slate-300: #d4d4d8;
  --slate-200: #e4e4e7;
  --slate-100: #f4f4f5;
  --slate-50: #fafafa;
  --white: #ffffff;

  --success: #15803d;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  
  --telegram: #0066ff;
  --telegram-hover: #0052cc;
  --max-blue: #0066ff;
  --max-hover: #0052cc;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.16);

  --transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  --container-max: 1200px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  color: var(--graphite-900);
  background-color: var(--white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  background-color: var(--white);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Section Header Typography */
.section {
  padding: 56px 0;
}

@media (min-width: 992px) {
  .section {
    padding: 80px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px auto;
}

@media (min-width: 992px) {
  .section-head {
    margin-bottom: 48px;
  }
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--graphite-900);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 34px;
  }
}

@media (min-width: 992px) {
  .section-title {
    font-size: 38px;
  }
}

.section-desc {
  font-size: 15px;
  color: var(--graphite-600);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 17px;
  }
}

.text-accent {
  color: var(--graphite-900);
  background: linear-gradient(180deg, transparent 65%, #fef08a 65%);
  display: inline;
}

/* ==========================================================================
   BUTTONS (NO HOPPING / NO TRANSLATEY ON HOVER)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: var(--transition);
  min-height: 46px;
  text-wrap: balance;
  /* Strictly NO transform hopping */
  transform: none !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--graphite-950);
  border: 1px solid var(--primary-hover);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--white);
  color: var(--graphite-900);
  border: 1px solid var(--slate-300);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--graphite-900);
  color: var(--graphite-950);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* Messenger buttons (MAX & Telegram) - Clean solid base with unified darkening & shadow hover */
.btn-max,
.btn-telegram {
  background: var(--white);
  color: var(--graphite-900);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-max:hover,
.btn-telegram:hover {
  background: #f1f3f5;
  border-color: var(--slate-200);
  color: var(--graphite-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  height: 68px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 900;
  color: var(--graphite-900);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

span.site-logo {
  cursor: default;
  user-select: none;
}

a.site-logo {
  cursor: pointer;
}

.logo-accent {
  color: var(--primary-dark);
  font-weight: 800;
}

.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--graphite-700);
    padding: 6px 0;
  }

  .nav-link:hover {
    color: var(--graphite-900);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-msg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--graphite-900);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-msg-link:hover,
.header-msg-link.max:hover,
.header-msg-link.tg:hover {
  background: #e9ecef;
  border-color: var(--slate-200);
  color: var(--graphite-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-btn {
  padding: 9px 16px;
  font-size: 13px;
  min-height: 38px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 36px 0 54px 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

@media (min-width: 992px) {
  .hero-section {
    padding: 60px 0 80px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-content {
  max-width: 640px;
}


.hero-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.18;
  color: var(--graphite-900);
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 34px;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 42px;
  }
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite-600);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 17px;
  }
}

/* Hero Price & Deadline Callout (Clean Accent Line) */
.hero-price-callout {
  border-left: 3.5px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--graphite-950);
  letter-spacing: -0.3px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 2px;
}

.hero-price-callout .hero-price-main {
  color: var(--graphite-950);
  font-weight: 800;
}

.hero-price-callout .hero-price-sep {
  color: var(--slate-300);
  font-weight: 700;
  margin: 0 1px;
  user-select: none;
}

.hero-price-callout .hero-price-days {
  color: var(--graphite-700);
  font-weight: 700;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--graphite-800);
}

.bullet-check {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-microtext {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.4;
}

/* Hero Media - Slavic Photo with Strict Aspect-Ratio (Zero CLS) */
.hero-media {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 460;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-img-badge strong {
  font-weight: 800;
  color: var(--primary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   QUICK HORIZONTAL LEAD FORM (Сразу под первым экраном)
   ========================================================================== */
.hero-quick-bar {
  margin-top: 36px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 25;
}

.quick-lead-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 860px) {
  .quick-lead-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }
}

.quick-field-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.quick-field-email {
  width: 100%;
}

.quick-field-type {
  width: 100%;
}

@media (min-width: 992px) {
  .quick-field-email {
    width: 220px;
    flex-shrink: 0;
  }

  .quick-field-type {
    width: 230px;
    flex-shrink: 0;
  }

  .quick-field-message {
    width: auto;
    flex: 1 1 auto;
    min-width: 200px;
  }

  .quick-field-submit {
    width: auto;
    flex-shrink: 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .quick-lead-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .quick-field-email {
    width: calc(50% - 6px);
    flex-shrink: 0;
  }
  .quick-field-type {
    width: calc(50% - 6px);
    flex-shrink: 0;
  }
  .quick-field-message {
    width: 100%;
  }
  .quick-field-submit {
    width: 100%;
  }
}

.quick-input {
  height: 48px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 22px;
  box-sizing: border-box;
}

textarea.form-control.quick-textarea,
.quick-textarea {
  height: 48px;
  min-height: 48px !important;
  max-height: none !important;
  padding: 12px 52px 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 22px;
  resize: none !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-char-counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  pointer-events: none;
  user-select: none;
  background: transparent;
  border: none;
  padding: 2px 4px;
  line-height: 1;
  z-index: 2;
}

.calc-box .quick-char-counter {
  background: transparent;
  color: var(--slate-400);
  border: none;
}

.quick-submit-btn {
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  border-radius: var(--radius-xs);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 860px) {
  .quick-submit-btn {
    width: auto;
  }
}



/* ==========================================================================
   PRACTICE TYPES
   ========================================================================== */
.types-section {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .types-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.type-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 24px;
  transition: var(--transition);
}

.type-card:hover {
  border-color: var(--graphite-900);
}

.type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.type-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  padding: 3px 8px;
  border-radius: 2px;
  background: transparent;
  color: var(--graphite-900);
  border: 1px solid var(--primary);
  line-height: 1.3;
}

.type-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
  flex-shrink: 0;
}

.type-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.type-card-desc {
  font-size: 13.5px;
  color: var(--graphite-600);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.type-card-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  font-size: 13px;
  color: var(--graphite-700);
}

.type-card-features li::before {
  content: "— ";
  color: var(--graphite-900);
  font-weight: 800;
}

.type-card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.type-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--graphite-900);
}

.type-card-meta .type-price {
  color: var(--graphite-950);
}

.type-card-meta .type-sep {
  color: var(--primary);
  font-weight: 900;
}

.type-card-meta .type-time {
  color: var(--graphite-600);
  font-weight: 700;
  font-size: 13px;
}

.type-card-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--graphite-900);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.type-card-link:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   DOCUMENTS & MATERIALS
   ========================================================================== */
.docs-section {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .docs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--graphite-900);
}

.doc-card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--graphite-900);
  margin-bottom: 10px;
}

.doc-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 8px;
}

.doc-card-desc {
  font-size: 13px;
  color: var(--graphite-600);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.doc-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--graphite-900);
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
}

/* ==========================================================================
   SPECIALTIES & DIRECTIONS TABS
   ========================================================================== */
.specialties-section {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 22px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .tabs-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--graphite-800);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  background: var(--slate-200);
}

.tab-btn.active {
  background: var(--graphite-900);
  color: var(--white);
  border-color: var(--graphite-900);
}

.tab-pane {
  display: none;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .tab-pane {
    padding: 32px;
  }
}

.tab-pane.active {
  display: block;
}

.specialty-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .specialty-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .specialty-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.specialty-item {
  padding: 14px;
  background: var(--slate-50);
  border-radius: var(--radius-xs);
  border: 1px solid var(--slate-200);
}

.specialty-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--graphite-900);
  background: var(--primary);
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 6px;
  display: inline-block;
}

.specialty-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--graphite-900);
  line-height: 1.35;
}

/* ==========================================================================
   ERRORS & RISKS
   ========================================================================== */
.errors-section {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.errors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .errors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .errors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.error-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 22px;
  transition: var(--transition);
}

.error-card:hover {
  border-color: var(--graphite-900);
}

.error-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 8px;
  display: block;
}

.error-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.error-desc {
  font-size: 13px;
  color: var(--graphite-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

.error-solution {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
}

/* ==========================================================================
   CALCULATOR & CLEAN FLAT FORM (NO MUDDY BACKGROUNDS)
   ========================================================================== */
.calc-section {
  padding: 60px 0;
  background: var(--graphite-950);
  color: var(--white);
  border-top: 1px solid var(--graphite-800);
  border-bottom: 1px solid var(--graphite-800);
}

@media (min-width: 992px) {
  .calc-section {
    padding: 84px 0;
  }
}

.calc-section .section-title {
  color: var(--white);
}

.calc-section .section-desc {
  color: var(--slate-400);
}

/* Clean, crisp flat box with solid border */
.calc-box {
  background: var(--graphite-900);
  border: 1px solid var(--graphite-800);
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .calc-box {
    padding: 36px;
  }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--graphite-800);
}

.calc-box .form-label {
  color: var(--slate-200);
}

.modal-card .form-label {
  color: var(--graphite-900);
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: var(--graphite-950);
  border: 1px solid var(--graphite-800);
  color: var(--white);
  font-size: 14px;
  transition: var(--transition);
}

.form-control.light {
  background: var(--white);
  color: var(--graphite-900);
  border-color: var(--slate-200);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control::placeholder {
  color: var(--slate-400);
}

textarea.form-control:not(.quick-textarea) {
  min-height: 80px;
  resize: vertical;
}

/* Honeypot */
.mti-hidden-field {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: -9999px;
}

/* ==========================================================================
   CUSTOM ANIMATED SELECT DROPDOWN COMPONENT
   ========================================================================== */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select.open,
.custom-select.closing {
  z-index: 100;
}

.custom-select-trigger {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.custom-select.dark .custom-select-trigger {
  background: var(--graphite-950);
  border: 1px solid var(--graphite-800);
  color: var(--white);
}

.custom-select:not(.dark) .custom-select-trigger {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--graphite-900);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
}

.custom-select-arrow {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xl);
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
  
  /* Animated Opening/Closing (Default Downwards) */
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-menu::-webkit-scrollbar {
  width: 5px;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
}

.custom-select.dark .custom-select-menu {
  background: var(--graphite-950);
  border: 1px solid var(--graphite-700);
  scrollbar-color: var(--graphite-700) transparent;
}

.custom-select.dark .custom-select-menu::-webkit-scrollbar-thumb {
  background: var(--graphite-700);
}

.custom-select:not(.dark) .custom-select-menu {
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Smart Upward Direction (Dropup when low viewport space below) */
.custom-select.open-up .custom-select-menu {
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateY(6px) scale(0.98);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.16);
}

.custom-select.dark.open-up .custom-select-menu {
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.45);
}

.custom-select.open.open-up .custom-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-option {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-select.dark .custom-select-option {
  color: var(--slate-200);
}

.custom-select.dark .custom-select-option:hover {
  background: var(--graphite-800);
  color: var(--white);
}

.custom-select:not(.dark) .custom-select-option {
  color: var(--graphite-900);
}

.custom-select:not(.dark) .custom-select-option:hover {
  background: var(--slate-100);
}

.custom-select-option.selected {
  font-weight: 800;
  color: var(--primary) !important;
}

/* Calc Summary & Output (Clean Transparent Border) */
.calc-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid var(--primary);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .calc-summary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.calc-price-label {
  font-size: 13px;
  color: var(--slate-200);
}

.calc-price-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.calc-submit-btn {
  width: 100%;
  font-size: 16px;
  padding: 15px 24px;
}

.calc-messengers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--graphite-800);
  text-align: center;
}

@media (min-width: 480px) {
  .calc-messengers {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

.calc-messengers-title {
  font-size: 13px;
  color: var(--slate-400);
}

.calc-msgr-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ==========================================================================
   ROADMAP / WORK PROCESS
   ========================================================================== */
.steps-section {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.step-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Big Background Watermark Number (Architectural Brutalism) */
.step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 88px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -4px;
  color: var(--slate-100);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color 0.25s ease;
}

.step-card:hover .step-num {
  color: #fef9c3; /* Subtle light MTI yellow tint on hover */
}

/* Foreground Content */
.step-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 8px;
  line-height: 1.3;
  padding-right: 44px;
}

.step-desc {
  font-size: 13px;
  color: var(--graphite-600);
  line-height: 1.55;
}

/* ==========================================================================
   OUR TEAM (Наша команда) - Simple brutalist & E-E-A-T
   ========================================================================== */
.team-section {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.team-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--graphite-900);
}

.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--slate-100);
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
}

.team-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 4px;
  line-height: 1.3;
}

.team-role {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.team-bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--graphite-600);
  margin-bottom: 16px;
  flex-grow: 1;
}

.team-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  font-size: 12px;
  color: var(--graphite-600);
}

.team-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.team-stat-item strong {
  color: var(--graphite-900);
  font-weight: 800;
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews-section {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--graphite-900);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-stars {
  color: var(--primary-dark);
  display: flex;
  gap: 2px;
  font-size: 15px;
}



.review-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--graphite-700);
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  min-width: 0;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--graphite-900);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--graphite-900);
}

.author-sub {
  font-size: 11px;
  color: var(--graphite-600);
  word-break: break-word;
}

.review-date {
  font-size: 11px;
  color: var(--slate-400);
  margin-left: auto;
  white-space: nowrap;
}

/* ==========================================================================
   FAQ SECTION (MATHEMATICALLY CENTERED ICONS FIX)
   ========================================================================== */
.faq-section {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--graphite-900);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--graphite-900);
}

/* Perfectly Centered SVG Plus/Cross Icon */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--graphite-900);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease;
}

.faq-icon-svg {
  width: 14px;
  height: 14px;
  display: block;
}

.faq-item.active .faq-icon {
  background: var(--graphite-900);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--graphite-600);
}

/* ==========================================================================
   FINAL CTA (Финальный экран с черной формой на желтом фоне)
   ========================================================================== */
.final-cta {
  padding: 64px 0 72px 0;
  background: var(--primary);
  color: var(--graphite-950);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

@media (min-width: 992px) {
  .final-cta {
    padding: 80px 0;
  }
}

.final-cta .cta-box {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 32px auto;
}

.final-cta .section-title {
  color: var(--graphite-950);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.25;
}

.final-cta .section-desc {
  color: var(--graphite-900);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
}

/* High contrast black card on yellow background */
.final-cta .calc-box,
.cta-calc-box {
  background: var(--graphite-950);
  border: 2px solid var(--graphite-900);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.cta-calc-box .calc-summary {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--graphite-800);
}

.cta-calc-box .calc-price-val {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.cta-calc-box .calc-submit-btn {
  background: var(--primary);
  color: var(--graphite-950);
  border: 2px solid var(--graphite-950);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.cta-calc-box .calc-submit-btn:hover {
  background: #FFD633;
  transform: none;
}

/* ==========================================================================
   SEO CONTENT
   ========================================================================== */
.seo-block {
  padding: 50px 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.seo-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--graphite-700);
}

.seo-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 14px;
}

.seo-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--graphite-900);
  margin: 20px 0 10px 0;
}

.seo-content p {
  margin-bottom: 12px;
}

.seo-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.seo-content li {
  margin-bottom: 5px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--graphite-950);
  color: var(--slate-400);
  padding: 48px 0 28px 0;
  font-size: 13px;
  border-top: 1px solid var(--graphite-800);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand .site-logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  line-height: 1.5;
  margin-bottom: 14px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-disclaimer-box {
  padding: 14px;
  margin-top: 26px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--slate-400);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CLEAN CONTRAST BACKGROUNDS)
   ========================================================================== */
.floating-widget {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.floating-btn:hover {
  background: #f1f3f5;
  border-color: var(--slate-200);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}



/* ==========================================================================
   MODAL WINDOW & EXIT-INTENT POPUP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 17, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}



.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none !important;
  background: transparent !important;
  color: var(--slate-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  box-sizing: border-box;
  opacity: 0.6;
}

.modal-close svg {
  display: block;
  width: 13px;
  height: 13px;
  pointer-events: none;
  flex-shrink: 0;
}

.modal-close:hover {
  background: transparent !important;
  border: none !important;
  color: var(--graphite-600);
  opacity: 1;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.modal-title.exit-title {
  color: var(--graphite-900);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--graphite-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-feedback {
  margin-top: 10px;
  padding: 4px 2px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  display: none;
  background: transparent !important;
  border: none !important;
}

.form-feedback.success {
  display: block;
  color: var(--success);
  background: transparent !important;
  border: none !important;
}

.form-feedback.error {
  display: block;
  color: var(--danger);
  background: transparent !important;
  border: none !important;
}

.calc-box .form-feedback.error,
.cta-calc-box .form-feedback.error {
  color: #f87171;
}

.calc-box .form-feedback.success,
.cta-calc-box .form-feedback.success {
  color: #4ade80;
}

/* ==========================================================================
   MOBILE & VIEWPORT RESPONSIVENESS ENHANCEMENTS (320px - 480px)
   Zero CLS, No Horizontal Scroll, Safe Toast & Floating Stacking
   ========================================================================== */
@media (max-width: 480px) {
  /* Header Compact Mode */
  .site-header {
    height: 58px;
  }

  .site-logo {
    font-size: 19px;
  }

  /* Hide header direct messenger buttons on mobile since they float at bottom-right 24/7 */
  .header-actions .header-msg-link {
    display: none;
  }

  .header-btn {
    padding: 7px 12px;
    font-size: 12.5px;
    min-height: 34px;
    gap: 6px;
  }

  .header-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Buttons & CTAs */
  .btn {
    padding: 11px 16px;
    font-size: 14px;
  }

  /* Hero Section */
  .hero-section {
    padding: 24px 0 38px 0;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.22;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .hero-price-callout {
    font-size: 18px;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left-width: 3px;
    column-gap: 6px;
  }

  .hero-bullet-item {
    font-size: 13.5px;
  }

  .hero-img-badge {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  /* Section Spacings & Typography */
  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .section-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  /* Calculator Section */
  .calc-section {
    padding: 44px 0;
  }

  .calc-box {
    padding: 20px 14px;
  }

  .calc-price-val {
    font-size: 19px;
  }

  .calc-msgr-btns {
    flex-wrap: wrap;
    gap: 8px;
  }

  .calc-msgr-btns .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }

  /* Specialty Tabs */
  .tab-pane {
    padding: 18px 14px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Modals on Mobile Viewports */
  .modal-overlay {
    padding: 12px;
    align-items: flex-start;
  }

  .modal-card {
    padding: 22px 16px;
    margin: auto;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-desc {
    font-size: 13px;
  }



  /* Floating Widgets */
  .floating-widget {
    bottom: 14px;
    right: 12px;
    gap: 8px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }

  /* FAQ Accordion */
  .faq-trigger {
    padding: 14px 14px;
    font-size: 14.5px;
    gap: 10px;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
  }

  /* Final CTA */
  .final-cta {
    padding: 44px 0;
  }
}

/* Micro-screens (iPhone SE 320px - 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-logo {
    font-size: 17px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-price-callout {
    font-size: 16px;
    padding-left: 8px;
    border-left-width: 3px;
    column-gap: 5px;
  }

  .btn {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .calc-box {
    padding: 16px 10px;
  }

  .calc-summary {
    padding: 12px;
  }
}

/* ==========================================================================
   404 ERROR PAGE STYLES (Architectural MTI Brutalism)
   ========================================================================== */
.error-404-page {
  background-color: var(--white);
  min-height: 80vh;
}

/* 1. 404 Hero Section */
.error-hero-section {
  padding: 56px 0 64px 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  text-align: center;
}

@media (min-width: 992px) {
  .error-hero-section {
    padding: 84px 0 92px 0;
  }
}

.error-hero-box {
  max-width: 840px;
  margin: 0 auto;
}


.error-huge-number {
  font-size: 88px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--graphite-950);
  margin-bottom: 20px;
  user-select: none;
}

@media (min-width: 768px) {
  .error-huge-number {
    font-size: 130px;
    letter-spacing: -6px;
  }
}

@media (min-width: 992px) {
  .error-huge-number {
    font-size: 154px;
    letter-spacing: -8px;
  }
}

.error-huge-number .number-accent {
  color: var(--primary);
  display: inline-block;
  position: relative;
}

.error-heading {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--graphite-900);
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

@media (min-width: 768px) {
  .error-heading {
    font-size: 34px;
  }
}

@media (min-width: 992px) {
  .error-heading {
    font-size: 38px;
  }
}

.error-subheading {
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite-600);
  margin: 0 auto 32px auto;
  max-width: 680px;
}

@media (min-width: 768px) {
  .error-subheading {
    font-size: 17px;
  }
}

.error-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .error-actions-group .btn {
    width: 100%;
  }

  .error-actions-group .btn-max,
  .error-actions-group .btn-telegram {
    width: calc(50% - 6px);
  }
}

/* 2. Quick Navigation Section */
.error-nav-section {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.error-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .error-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .error-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.error-nav-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 26px 22px 22px 22px;
  transition: var(--transition);
  text-decoration: none;
  height: 100%;
}

.error-nav-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Big Background Watermark Number (Architectural Brutalism) */
.error-card-bg-num {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 92px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -4px;
  color: var(--slate-100);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color 0.25s ease;
}

.error-nav-card:hover .error-card-bg-num {
  color: #fef9c3; /* Subtle light MTI yellow tint on hover */
}

/* Foreground content positioned over the background number */
.error-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.error-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 10px;
  line-height: 1.3;
  padding-right: 48px;
}

.error-card-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--graphite-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

.error-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  font-size: 12.5px;
  margin-top: auto;
}

.error-card-price {
  font-weight: 700;
  color: var(--graphite-700);
}

.error-card-link {
  font-weight: 800;
  color: var(--primary-dark);
}

/* 3. Direct Help / Lead Form */
.error-help-section {
  background: var(--white);
}

.error-help-card {
  background: var(--graphite-950);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  border: 1px solid var(--graphite-800);
}

@media (min-width: 992px) {
  .error-help-card {
    padding: 48px 44px;
  }
}

.error-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .error-help-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}


.error-help-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .error-help-title {
    font-size: 30px;
  }
}

.error-help-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-300);
  margin-bottom: 22px;
}

.error-help-bullets {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-200);
  line-height: 1.4;
}

.error-bullet-item .bullet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--graphite-950);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-help-messengers {
  padding-top: 18px;
  border-top: 1px solid var(--graphite-800);
}

.error-msg-label {
  display: block;
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 10px;
}

.error-msg-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.error-help-form-wrapper {
  background: var(--white);
  padding: 26px 22px;
  border-radius: var(--radius-xs);
  color: var(--graphite-900);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .error-help-form-wrapper {
    padding: 30px 28px;
  }
}

.error-lead-form .form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--graphite-700);
  margin-bottom: 6px;
}

/* 404 Small Screen Fixes (max-width: 480px) */
@media (max-width: 480px) {
  .error-hero-section {
    padding: 40px 0 48px 0;
  }

  .error-huge-number {
    font-size: 72px;
  }

  .error-heading {
    font-size: 22px;
  }

  .error-subheading {
    font-size: 14px;
  }

  .error-help-card {
    padding: 24px 14px;
  }

  .error-help-form-wrapper {
    padding: 20px 14px;
  }

  .error-card-bg-num,
  .step-num {
    font-size: 74px;
    top: -8px;
    right: -8px;
  }
}
