:root {
  --ink: #111820;
  --text: #334657;
  --muted: #71808d;
  --line: #dce4eb;
  --soft: #f5f7f9;
  --paper: #ffffff;
  --dark: #070d14;
  --dark-panel: #0f1822;
  --red: #e1121b;
  --red-dark: #b80e15;
  --green: #31c06f;
  --shadow: 0 22px 70px rgba(7, 13, 20, 0.14);
  --max: 1180px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

p {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid rgba(225, 18, 27, 0.35);
  outline-offset: 4px;
}

.shell {
  width: min(92vw, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 228, 235, 0.88);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(7, 13, 20, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: block;
  width: 214px;
  height: 51px;
}

.logo-name {
  font-size: 31px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
}

.logo-name-dark {
  fill: #0b1117;
}

.logo-name-red {
  fill: var(--red);
}

.logo-ring,
.logo-cross {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: miter;
}

.logo-ring {
  stroke-width: 4.4;
}

.logo-ring.dark {
  stroke: #101820;
}

.logo-ring.red,
.logo-cross.red {
  stroke: var(--red);
}

.logo-cross {
  stroke-width: 2.5;
}

.logo-tooth {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #101820;
  stroke-width: 2.15;
  stroke-linejoin: round;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: #40515f;
  font-size: 14px;
  font-weight: 800;
}

.nav-panel a:hover {
  color: var(--red);
}

.nav-panel .portal-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(225, 18, 27, 0.28);
  border-radius: 4px;
  padding: 9px 14px;
  color: var(--red);
  background: rgba(225, 18, 27, 0.06);
}

.nav-panel .portal-link:hover {
  color: #fff;
  background: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 72% 38%, rgba(225, 18, 27, 0.2), transparent 27%),
    linear-gradient(125deg, #070d14, #111c28);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.hero-grid {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 64px;
  align-items: center;
  padding: 90px 0;
}

.kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker,
.contact .kicker {
  color: #ff5a61;
}

h1 {
  max-width: 850px;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.22;
}

.lead {
  max-width: 700px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ops-console {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(15, 24, 34, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.console-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.console-header strong {
  color: var(--green);
}

.console-core {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.core-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(225, 18, 27, 0.48);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, rgba(225, 18, 27, 0.42), rgba(225, 18, 27, 0.1));
  font-weight: 900;
}

.console-core h2 {
  color: #fff;
  font-size: 24px;
}

.console-core p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.console-list {
  display: grid;
}

.console-list article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-list article:last-child {
  border-bottom: 0;
}

.console-list article > span {
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(49, 192, 111, 0.12);
}

.console-list strong {
  color: #fff;
  font-size: 15px;
}

.console-list p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.intro-strip {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}

.intro-grid article {
  min-height: 150px;
  padding: 28px;
  background: #fff;
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid strong {
  font-size: 22px;
}

.intro-grid span {
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 850px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-head p:not(.kicker) {
  margin-top: 20px;
  font-size: 18px;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-matrix article {
  min-height: 275px;
  padding: 30px;
  background: #fff;
}

.service-matrix span {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.service-matrix p {
  margin-top: 14px;
  font-size: 15px;
}

.clinic-section,
.care {
  background: var(--soft);
}

.clinic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1fr);
  gap: 58px;
  align-items: start;
}

.clinic-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.clinic-board article {
  min-height: 190px;
  padding: 26px;
  background: #fff;
}

.clinic-board span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.clinic-board strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.24;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.7fr);
  gap: 24px;
}

.large-problem {
  min-height: 350px;
  display: grid;
  align-content: end;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 13, 20, 0.96), rgba(21, 34, 48, 0.9)),
    var(--dark);
}

.large-problem h3 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(28px, 3.8vw, 46px);
}

.large-problem p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.problem-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.problem-list span {
  display: flex;
  align-items: center;
  min-height: 69px;
  padding: 18px 22px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.care-grid article {
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.care-grid article.featured {
  border-top: 5px solid var(--red);
  box-shadow: var(--shadow);
}

.care-grid article > span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 3px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.care-grid p {
  margin-top: 12px;
  font-size: 15px;
}

.care-grid ul {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}

.care-grid li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 700;
}

.care-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.contact {
  padding: 96px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(225, 18, 27, 0.22), transparent 26%),
    linear-gradient(125deg, #070d14, #142130);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 60px;
  align-items: center;
}

.contact h2 {
  margin-top: 14px;
  color: #fff;
}

.contact p:not(.kicker) {
  max-width: 700px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
}

.contact-links a {
  color: #fff;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  padding: 12px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-success {
  color: #7ee0a5;
}

.form-status.is-error {
  color: #ff8d93;
}

.privacy-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, 0.68);
  background: #050910;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 42px;
}

.footer-mark .logo-name-dark {
  fill: #fff;
}

.footer-mark .logo-ring.dark,
.footer-mark .logo-tooth {
  stroke: #fff;
}

.footer-mark .logo-tooth {
  fill: rgba(255, 255, 255, 0.08);
}

.footer p {
  max-width: 360px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
}

.footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
}

.footer a,
.footer span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom > a {
  color: rgba(255, 255, 255, 0.68);
}

.legal-main {
  padding: 72px 0 96px;
  background: var(--soft);
}

.legal-content {
  max-width: 860px;
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(7, 13, 20, 0.08);
}

.legal-content h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.legal-updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal-content section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  font-size: 22px;
  line-height: 1.3;
}

.legal-content section p {
  margin-top: 12px;
}

.legal-content a {
  color: var(--red-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  border-color: var(--line);
  color: var(--ink);
}

.legal-footer {
  padding-top: 12px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .clinic-grid,
  .problem-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .service-matrix,
  .intro-grid,
  .care-grid,
  .clinic-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .nav {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    max-height: calc(100vh - 70px);
    display: grid;
    gap: 0;
    padding: 14px 4vw 22px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 50px rgba(7, 13, 20, 0.14);
    overflow-y: auto;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-panel.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-panel a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-panel .portal-link {
    justify-content: center;
    margin-top: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(225, 18, 27, 0.28);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .legal-main {
    padding: 32px 0 56px;
  }

  .legal-content {
    width: min(94vw, 860px);
    padding: 30px 22px;
  }

  .legal-back {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(91vw, var(--max));
  }

  .brand-mark {
    width: 172px;
  }

  .hero-grid {
    padding: 70px 0;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 21px;
  }

  .lead,
  .section-head p:not(.kicker),
  .large-problem p,
  .contact p:not(.kicker) {
    font-size: 16px;
  }

  .hero-actions,
  .contact-links {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .legal-back {
    width: auto;
  }

  .section,
  .contact {
    padding: 72px 0;
  }

  .service-matrix,
  .intro-grid,
  .care-grid,
  .clinic-board,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .service-matrix article,
  .intro-grid article,
  .clinic-board article,
  .care-grid article {
    min-height: auto;
  }

  .console-core {
    align-items: flex-start;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}
