:root {
  --navy: #1a2744;
  --navy-light: #243358;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --accent: #16a34a;
  --accent-light: #22c55e;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(37, 99, 235, 0.15);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER */
header {
  background: var(--navy);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}
nav {
  display: flex;
  gap: 6px;
}
nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}
nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.header-phone {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.header-phone:hover {
  color: var(--gold-light);
}

/* HERO */
.hero {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-light) 60%,
    #1e3a6e 100%
  );
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: "✓";
  color: var(--accent-light);
  font-weight: 700;
}
h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 17px;
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
}
.hero-stat span {
  font-size: 13px;
  opacity: 0.75;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* METHODOLOGY STRIP */
.method-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.method-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.method-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.method-item i {
  font-size: 20px;
}

/* SECTION TITLES */
.section {
  padding: 56px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* RATING CARDS */
.rating-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.clinic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: start;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.clinic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}
.clinic-card.top1 {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(to right, #fffbeb 0%, #fff 60%);
}
.clinic-card.top1::before {
  content: "ЛИДЕР РЕЙТИНГА";
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}
.rank-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-1 {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #7c2d12;
}
.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #334155;
}
.rank-3 {
  background: linear-gradient(135deg, #cd7c3c, #d97706);
  color: #fff;
}
.rank-other {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 16px;
}
.clinic-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.clinic-info h3 a {
  color: inherit;
  text-decoration: none;
}
.clinic-info h3 a:hover {
  color: var(--blue);
}
.stars {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-bottom: 8px;
}
.stars .s {
  color: var(--gold);
  font-size: 16px;
}
.stars .score {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-left: 6px;
}
.stars .cnt {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 500;
}
.tag.green {
  background: #f0fdf4;
  color: var(--accent);
}
.tag.gold {
  background: #fffbeb;
  color: var(--gold);
}
.clinic-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.clinic-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 10px;
}
.clinic-feature {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.clinic-feature::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.clinic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.clinic-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}
.clinic-meta-item svg {
  flex-shrink: 0;
}
.clinic-meta-item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.clinic-meta-item a:hover {
  text-decoration: underline;
}
.clinic-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 160px;
}
.btn-call {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.btn-call:hover {
  background: #15803d;
}
.btn-detail {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}
.btn-detail:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.license-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--accent);
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.license-badge::before {
  content: "🛡";
}

/* METHODOLOGY */
.method-section {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.method-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
}
.method-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.method-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.method-card p {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
}
.method-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.method-score span {
  font-size: 13px;
  opacity: 0.7;
}
.method-score strong {
  color: var(--gold-light);
}

/* EXPERTS */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.expert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.expert-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}
.expert-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.expert-card p {
  font-size: 13px;
  color: var(--text-muted);
}
.expert-card .exp-tag {
  font-size: 12px;
  background: #eff6ff;
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 8px;
}

/* LICENSE CHECK */
.license-section {
  background: #f0fdf4;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  padding: 48px 0;
}
.license-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.license-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.license-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.license-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.license-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.license-steps li::before {
  content: attr(data-n);
  background: var(--accent);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.license-form {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.license-form h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group textarea {
  min-height: 120px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}
.btn-green {
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-green:hover {
  background: #15803d;
}

/* SEO TEXT */
.seo-section {
  padding: 56px 0;
  background: #fff;
}
.seo-inner {
  max-width: 860px;
  margin: 0 auto;
}
.seo-inner h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-top: 8px;
}
.seo-inner h2:first-child {
  margin-top: 0;
}
.seo-inner h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}
.seo-inner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}
.seo-inner ul,
.seo-inner ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.seo-inner ul li,
.seo-inner ol li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}
.seo-inner ol {
  counter-reset: seo-ol;
  list-style: none;
  padding-left: 0;
}
.seo-inner ol li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.seo-inner ol li::before {
  counter-increment: seo-ol;
  content: counter(seo-ol);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
}
.seo-table th {
  background: var(--navy);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.seo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.seo-table tr:nth-child(even) td {
  background: #f8fafc;
}
.seo-table tr:last-child td {
  border-bottom: none;
}
.seo-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.td-yes {
  color: var(--accent);
  font-weight: 600;
}
.td-no {
  color: #dc2626;
  font-weight: 600;
}
.td-part {
  color: var(--gold);
  font-weight: 600;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.compare-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.compare-card.private h4 {
  border-color: var(--accent);
}
.compare-card.state h4 {
  border-color: var(--blue);
}
.compare-card ul {
  padding-left: 0;
  list-style: none;
}
.compare-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.compare-card ul li:last-child {
  border-bottom: none;
}
.compare-card ul li::before {
  content: "→";
  color: var(--text-muted);
  flex-shrink: 0;
}
.seo-note {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.7;
}
.seo-note strong {
  display: block;
  margin-bottom: 4px;
}
.seo-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px;
}
.seo-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.seo-step-num {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.seo-step-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.seo-step-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .seo-table {
    font-size: 12px;
  }
  .seo-table th,
  .seo-table td {
    padding: 8px 10px;
  }
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  transition: transform 0.2s;
}
.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 14px;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-logo {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
footer p {
  font-size: 13px;
  line-height: 1.7;
}
footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer ul li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
}
footer ul li a:hover {
  color: #fff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-phone {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.disclaimer {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 8px;
  max-width: 560px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .clinic-card {
    grid-template-columns: 48px 1fr;
  }
  .clinic-actions {
    flex-direction: row;
    min-width: auto;
    grid-column: 1 / -1;
  }
  .license-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  nav {
    display: none;
  }
}
@media (max-width: 600px) {
  .clinic-features {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 20px;
  }
}

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 48px 24px;
}
.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.82;
}
.breadcrumb {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 16px;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.page-hero h1,
.error-hero h1 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.btn-submit {
  background: var(--blue);
  color: #fff;
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: #1d4ed8;
}
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* CONTACT PAGE */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 56px 0;
  align-items: start;
}
.contact-info h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.contact-item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}
.contact-form-wrap .form-group {
  margin-bottom: 16px;
}

/* Contact form modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.55);
  backdrop-filter: blur(4px);
}
.contact-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s;
}
.contact-modal.is-open .contact-modal-box {
  transform: translateY(0) scale(1);
}
.contact-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.contact-modal.is-success .contact-modal-icon {
  background: #f0fdf4;
}
.contact-modal.is-error .contact-modal-icon {
  background: #fef2f2;
}
.contact-modal-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.contact-modal-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.contact-modal-close {
  width: auto;
  min-width: 160px;
  padding-left: 28px;
  padding-right: 28px;
}

/* 404 PAGE */

/* STICKY FOOTER LAYOUT (404) */
body.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-layout main {
  flex: 1;
}
body.page-layout footer {
  margin-top: auto;
}

.error-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
}
.error-inner {
  max-width: 640px;
  margin: 0 auto;
}
.error-code {
  font-size: clamp(80px, 18vw, 140px);
  font-weight: 800;
  line-height: 1;
  opacity: 0.15;
  letter-spacing: -4px;
  margin-bottom: -24px;
}
.error-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}
.error-hero p {
  font-size: 16px;
  opacity: 0.82;
  margin-bottom: 28px;
  line-height: 1.7;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-links {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.error-links .container {
  max-width: 900px;
}
.error-links h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.link-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.link-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.link-card .icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.link-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.link-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* O PROEKTE PAGE */

.section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.principle {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.principle .icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.principle h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.principle p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--border);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.team-card .bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.disclaimer-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.disclaimer-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}
.disclaimer-box p {
  font-size: 14px;
  color: #78350f;
  margin: 0;
  line-height: 1.7;
}

/* KAK VYBRAT PAGE */

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}
.content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-top: 8px;
}
.content h2:first-child {
  margin-top: 0;
}
.content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 8px;
}
.content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}
.content ul,
.content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.content li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}
.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 15px;
}
.checklist li.warn::before {
  content: "⚠";
  color: var(--gold);
}

.tip-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.tip-box strong {
  display: block;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 5px;
}
.tip-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.warn-box {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.warn-box strong {
  display: block;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 5px;
}
.warn-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.crit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.crit-card .c-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
}
.crit-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.crit-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color 0.2s;
}
.toc-list a:hover {
  color: var(--blue);
}
.cta-box {
  background: var(--navy);
  color: #fff;
}
.cta-box h3 {
  color: #fff;
}
.cta-box p {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 16px;
}
.btn-white {
  background: #fff;
  color: var(--navy);
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: background 0.2s;
}
.btn-white:hover {
  background: #f1f5f9;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  nav {
    display: none;
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
}
/* additional content styles */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}
.content-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 13px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.content-table td {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.6;
}
.content-table tr:nth-child(even) td {
  background: #f8fafc;
}
.content-table tr:last-child td {
  border-bottom: none;
}
.content-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.content-note {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.7;
}
.content-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.content-info {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: #1e3a8a;
  line-height: 1.7;
}
.content-info strong {
  display: block;
  margin-bottom: 4px;
}
.steps-ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  counter-reset: steps;
}
.steps-ol li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.steps-ol li::before {
  content: counter(steps);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 600px) {
  .content-table {
    font-size: 12px;
  }
  .content-table th,
  .content-table td {
    padding: 7px 8px;
  }
}

/* METODOLOGIYA PAGE */

.section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-top: 8px;
}
.section h2:first-child {
  margin-top: 0;
}
.section p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.crit {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.crit-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.crit-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.crit-weight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 10px;
  padding: 12px 20px;
  min-width: 80px;
}
.crit-weight .w-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
}
.crit-weight .w-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.score-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}
.score-table td {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.score-table tr:last-child td {
  border-bottom: none;
}
.score-table tr:nth-child(even) td {
  background: #f8fafc;
}
.update-block {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.update-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
}
.update-block p {
  font-size: 14px;
  color: #15803d;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .error-hero {
    padding: 56px 20px 64px;
  }
  .crit {
    grid-template-columns: 1fr;
  }
}
