/* Glaz.Moscow — design system (Variant A clinical) */
:root {
  --green: #0F4C3A;
  --green-hover: #0c3f30;
  --green-active: #0a3528;
  --navy: #1B2A4A;
  --copper: #B08D57;
  --copper-40: rgba(176, 141, 87, 0.4);
  --bg: #F7F9FB;
  --white: #ffffff;
  --text: #1A1F2E;
  --text-2: #5A6478;
  --border: rgba(27, 42, 74, 0.12);
  --error: #A65D4E;
  --success: #0F4C3A;
  --success-bg: rgba(15, 76, 58, 0.08);
  --error-bg: rgba(166, 93, 78, 0.1);
  --radius-btn: 9px;
  --radius-card: 12px;
  --shadow-soft: 0 8px 24px rgba(27, 42, 74, 0.06);
  --shadow-card-hover: 0 10px 28px rgba(27, 42, 74, 0.08);
  --header-h: 76px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 120px;
  --content: 1280px;
  --pad-x: 90px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--content) + var(--pad-x) * 2);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--space-3xl);
}
.section__head {
  margin-bottom: var(--space-xl);
  max-width: 720px;
}
.section__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section__lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Geometric pattern helpers */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%23B08D57' stroke-width='1'%3E%3Cpath d='M60 2 L118 36 V68 L60 102 L2 68 V36 Z'/%3E%3Ccircle cx='60' cy='52' r='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 104px;
  opacity: 0.1;
  pointer-events: none;
}
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper-40), transparent);
  border: 0;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn--l { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--s { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--green-hover); }
.btn--primary:active { background: var(--green-active); transform: scale(0.98); }
.btn--primary:disabled,
.btn--primary.is-loading {
  background: #9aa3b2;
  cursor: not-allowed;
  transform: none;
}
.btn--secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(27, 42, 74, 0.25);
}
.btn--secondary:hover { background: rgba(27, 42, 74, 0.04); }
.btn--text {
  color: var(--green);
  padding: 0;
  min-height: auto;
  font-weight: 600;
}
.btn--text:hover { color: var(--green-hover); }
.btn__arrow { transition: transform .2s ease; }
.btn--text:hover .btn__arrow { transform: translateX(3px); }

.btn-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.btn-stack__hint {
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-2);
  font-weight: 500;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--copper);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 249, 251, 0.94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  font-size: 17px;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-phone:hover { color: var(--green); }
.header-cta .btn-stack__hint { color: var(--text-2); }
.icon-phone {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--border);
}
.icon-phone svg { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative;
  min-height: max(620px, 88vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #0A3A2D 0%, #0F4C3A 42%, #1A4F55 100%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='122' viewBox='0 0 140 122'%3E%3Cg fill='none' stroke='%23F7F9FB' stroke-width='1'%3E%3Cpath d='M70 4 L134 42 V80 L70 118 L6 80 V42 Z'/%3E%3Ccircle cx='70' cy='61' r='20'/%3E%3Cpath d='M70 41 V81 M50 61 H90'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 122px;
  opacity: 0.09;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 80px 100px;
  max-width: 760px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero__subtitle {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 38em;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.hero .btn--primary {
  background: #fff;
  color: var(--green);
}
.hero .btn--primary:hover { background: #f0f4f2; }
.hero__link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(176, 141, 87, 0.55);
  padding-bottom: 2px;
}
.hero__link:hover { color: #fff; }

/* Advantages */
.advantages { background: var(--bg); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: inset 0 0 0 1px var(--copper-40);
  transition: transform .22s ease, box-shadow .22s ease;
}
.adv-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--copper-40), var(--shadow-card-hover);
}
.adv-card__icon {
  width: 28px;
  height: 28px;
  color: var(--copper);
  margin-bottom: 18px;
}
.adv-card__icon svg { width: 100%; height: 100%; }
.adv-card__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 10px;
}
.adv-card__text {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Services */
.services { background: var(--white); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.svc-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1.5px;
  background: var(--copper);
  border-radius: 2px;
}
.svc-card__title {
  font-size: 19px;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}
.svc-card__text {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}
.svc-card__link {
  margin-top: 20px;
  align-self: flex-start;
}

/* Flow */
.flow { background: var(--bg); }
.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}
.flow-col {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: inset 0 0 0 1px rgba(176, 141, 87, 0.28);
}
.flow-col__title {
  font-size: 20px;
  font-weight: 650;
  color: var(--green);
  margin-bottom: 22px;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.45;
}
.flow-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--copper);
  box-shadow: inset 0 0 0 1.5px var(--copper-40);
}
.flow-divider {
  width: 1px;
  align-self: stretch;
  min-height: 180px;
  background: linear-gradient(180deg, transparent, var(--copper-40), transparent);
  position: relative;
}
.flow-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--copper-40);
  background: var(--bg);
}
.flow__note {
  margin-top: 36px;
  text-align: center;
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.55;
}

/* Reviews */
.reviews { background: var(--white); }
.reviews-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.review-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 28px 24px 24px 28px;
  border-left: 2px solid var(--copper);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.review-card__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}
.review-card__who {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.reviews-nav {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(27, 42, 74, 0.2);
}
.reviews-dot.is-active { background: var(--green); }

/* Booking form */
.booking { background: var(--bg); }
.booking__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.booking__aside {
  padding-top: 8px;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: inset 0 0 0 1px rgba(176, 141, 87, 0.25);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.field__req { color: var(--copper); }
.field__hint { font-size: 13px; color: var(--text-2); }
.field__error {
  font-size: 13px;
  color: var(--error);
  display: none;
}
.field.is-error .field__error { display: block; }
.field.is-error .input,
.field.is-error .select,
.field.is-error .textarea,
.field.is-error .radio-group {
  border-color: var(--error) !important;
  box-shadow: none !important;
}

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(90, 100, 120, 0.28);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}
.input:hover, .select:hover, .textarea:hover {
  border-color: rgba(15, 76, 58, 0.4);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--green);
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.12);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: #eef1f4;
  color: #8a93a3;
  cursor: not-allowed;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.radio {
  position: relative;
}
.radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.radio__ui {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 100, 120, 0.28);
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.radio:hover .radio__ui {
  background: rgba(15, 76, 58, 0.04);
}
.radio input:checked + .radio__ui {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.radio input:focus-visible + .radio__ui {
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.18);
}
.radio__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.radio input:checked + .radio__ui .radio__dot {
  background: #fff;
  box-shadow: none;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.form-note {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.45;
}
.form-msg.is-success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
}
.form-msg.is-error {
  display: block;
  background: var(--error-bg);
  color: var(--error);
}
.privacy-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.privacy-note a {
  color: var(--green);
  border-bottom: 1px solid rgba(15, 76, 58, 0.25);
}

/* Footer */
.site-footer {
  background: #152238;
  color: rgba(255, 255, 255, 0.86);
  padding-top: 72px;
  padding-bottom: 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__title {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer__text {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.footer__text a:hover { color: #fff; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-links a:hover { color: #fff; }
.footer-map {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.28);
  background: #0f1a2c;
  aspect-ratio: 16 / 10;
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__mark { filter: brightness(0) invert(1); opacity: 0.92; }

/* Service page */
.page-hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #0A3A2D, #0F4C3A);
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  max-width: 40em;
  line-height: 1.55;
}
.page-body {
  padding: 64px 0 100px;
}
.page-body .prose {
  max-width: 720px;
}
.page-body .prose p + p { margin-top: 16px; }
.page-body .prose { color: var(--text-2); line-height: 1.65; }
.page-body .prose strong { color: var(--text); font-weight: 650; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; --space-3xl: 96px; }
  .adv-grid, .svc-grid, .reviews-track { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .booking__layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --header-h: 64px;
    --space-3xl: 72px;
  }
  .header-phone { display: none; }
  .icon-phone { display: inline-flex; }
  .header-actions { gap: 10px; }
  .header-cta .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .header-cta .btn-stack__hint { display: none; }
  .brand__name { font-size: 16px; }
  .brand__mark { width: 30px; height: 30px; }

  .hero {
    min-height: 100vh;
    align-items: flex-end;
  }
  .hero__inner { padding-block: 48px 64px; width: 100%; }
  .hero__title { max-width: none; font-size: 34px; }
  .hero__subtitle { font-size: 16.5px; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hero .btn--primary { width: 100%; }
  .hero__link { align-self: center; }

  .adv-grid, .svc-grid { grid-template-columns: 1fr; gap: 20px; }
  .reviews-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .review-card {
    min-width: min(86vw, 320px);
    scroll-snap-align: start;
  }
  .reviews-nav { display: flex; }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .flow-divider {
    width: 100%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper-40), transparent);
  }
  .flow-divider::before { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .form-actions .btn { width: 100%; min-height: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
