/* Санэпидемстанция — госовский стиль (референс: бордо / navy) */
:root {
  --ses-burgundy: #8b1538;
  --ses-burgundy-dark: #6e102c;
  --ses-burgundy-hot: #a81c45;
  --ses-navy: #1a2b4c;
  --ses-navy-soft: #243a63;
  --ses-text: #2a2a2a;
  --ses-muted: #5a5a5a;
  --ses-line: #d8d8d8;
  --ses-bg: #ffffff;
  --ses-bg-soft: #f3f3f3;
  --ses-green: #2e7d32;
  --ses-orange: #e07a2f;
  --ses-num: #b8c4d8;
  --ses-max: 1180px;
  --ses-header-h: 88px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ses-text);
  background: var(--ses-bg);
  padding-bottom: calc(72px + var(--safe-bottom));
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.ses-container {
  width: min(100% - 32px, var(--ses-max));
  margin-inline: auto;
  max-width: 100%;
}

/* ——— HEADER ——— */
.ses-top {
  padding: calc(14px + var(--safe-top)) 0 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.ses-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ses-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ses-brand__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.ses-brand__name {
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ses-navy);
  line-height: 1.25;
  max-width: 280px;
}

.ses-top__contacts {
  text-align: right;
  flex-shrink: 0;
}

.ses-phone {
  display: block;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--ses-navy);
  white-space: nowrap;
}

.ses-phone:hover {
  color: var(--ses-burgundy);
}

.ses-city {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ses-muted);
}

.ses-license {
  margin: 2px 0 0;
  font-size: 11px;
  color: #8a8a8a;
  max-width: 260px;
  margin-left: auto;
}

.ses-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ses-burgundy);
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.ses-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ses-burgundy);
  border-radius: 1px;
}

/* ——— NAV ——— */
.ses-nav {
  background: var(--ses-burgundy);
  position: sticky;
  top: 0;
  z-index: 40;
}

.ses-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.ses-nav__list a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ses-nav__list a:hover,
.ses-nav__list a.is-active {
  background: var(--ses-burgundy-hot);
}

.ses-nav__list a.is-active {
  background: #b02048;
}

/* ——— BREADCRUMB ——— */
.ses-crumb {
  padding: 12px 0;
  font-size: 13px;
  color: #777;
}

.ses-crumb a {
  color: var(--ses-burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ses-crumb span {
  color: var(--ses-navy);
  font-weight: 600;
}

/* ——— LAYOUT: простая сетка 2 колонки ——— */
.ses-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
  width: 100%;
}

.ses-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.ses-main {
  min-width: 0;
  width: 100%;
}

.ses-lead-panel {
  background: #fff;
  border: 2px solid var(--ses-navy);
  padding: 20px 18px 18px;
  box-shadow: 0 8px 24px rgba(26, 43, 76, 0.08);
  width: 100%;
}

.ses-lead-panel__head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ses-burgundy);
}

.ses-lead-panel__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ses-navy);
  line-height: 1.2;
}

.ses-lead-panel__lead {
  margin: 0;
  font-size: 14px;
  color: var(--ses-muted);
  line-height: 1.45;
}

.ses-lead-panel__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ses-muted);
  text-align: center;
}

.ses-lead-panel__note a {
  color: var(--ses-burgundy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ses-form--hero .ses-field {
  margin-bottom: 14px;
}

.ses-form--hero label {
  font-size: 14px;
  margin-bottom: 6px;
}

.ses-form--hero input,
.ses-form--hero select,
.ses-form--hero textarea {
  min-height: 48px;
  padding: 12px;
  font-size: 16px;
  border-width: 2px;
  border-color: #c8c8c8;
  max-width: 100%;
}

.ses-form--hero textarea {
  min-height: 88px;
}

.ses-btn--lg {
  min-height: 54px;
  font-size: 16px;
  margin-top: 4px;
}

.ses-aside__card {
  border: 1px solid #e5e5e5;
  overflow: hidden;
  background: #fff;
}

.ses-aside__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.ses-aside__banner {
  background: var(--ses-burgundy);
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.ses-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ses-btn:active {
  transform: scale(0.98);
}

.ses-btn--navy {
  background: var(--ses-navy);
  color: #fff;
  width: 100%;
}

.ses-btn--navy:hover {
  background: var(--ses-navy-soft);
}

.ses-btn--block {
  width: 100%;
}

.ses-aside__promo {
  border: 1px solid #e5e5e5;
  text-align: center;
  padding: 18px 14px 0;
  background: #fafafa;
  overflow: hidden;
}

.ses-aside__promo img {
  width: 120px;
  margin: 0 auto 12px;
}

.ses-aside__promo-bar {
  background: var(--ses-burgundy);
  color: #fff;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ses-review {
  border: 1px solid #e8e8e8;
  padding: 16px;
  background: #fff;
}

.ses-review__stars {
  color: #e6a800;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 6px;
}

.ses-review__meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.ses-review__name {
  font-weight: 700;
  color: var(--ses-navy);
}

.ses-review__text {
  font-size: 13px;
  color: var(--ses-muted);
  margin: 0 0 12px;
}

.ses-review__reply {
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 12px;
  color: #666;
}

.ses-review__reply strong {
  color: var(--ses-navy);
}

/* ——— MAIN ——— */
.ses-main h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ses-navy);
  line-height: 1.2;
}

.ses-hero-box {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: var(--ses-bg-soft);
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ses-hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 243, 243, 0.92) 0%, rgba(243, 243, 243, 0.75) 55%, rgba(243, 243, 243, 0.55) 100%),
    url("../images/ses-treatment.png") center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.ses-hero-box > * {
  position: relative;
  z-index: 1;
}

.ses-hero-box__img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 4px;
}

.ses-hero-box__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--ses-navy);
  text-transform: uppercase;
  line-height: 1.25;
}

.ses-hero-box__clock {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ses-burgundy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.ses-checks {
  display: grid;
  gap: 8px;
}

.ses-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ses-text);
}

.ses-checks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ses-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.ses-cta-price {
  margin: 0 0 22px;
}

.ses-bullets {
  margin: 0 0 28px;
  padding-left: 18px;
  list-style: disc;
  color: var(--ses-muted);
}

.ses-bullets li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.ses-bullets strong {
  color: var(--ses-navy);
}

/* ——— ADVANTAGES ——— */
.ses-section-title {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ses-navy);
}

.ses-adv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-bottom: 40px;
}

.ses-adv__item {
  padding-top: 14px;
  border-top: 3px solid var(--ses-burgundy);
}

.ses-adv__item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ses-navy);
  line-height: 1.3;
}

.ses-adv__item p {
  margin: 0;
  font-size: 13px;
  color: var(--ses-muted);
  line-height: 1.5;
}

/* ——— STAGES ——— */
.ses-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.ses-stage {
  padding-top: 12px;
  border-top: 4px solid var(--ses-navy);
}

.ses-stage__num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--ses-num);
  margin-bottom: 8px;
}

.ses-stage h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ses-navy);
  line-height: 1.35;
}

.ses-stage p {
  margin: 0;
  font-size: 13px;
  color: var(--ses-muted);
}

/* ——— INFO CALL ——— */
.ses-infocall {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ses-bg-soft);
  border-top: 3px solid var(--ses-burgundy);
  padding: 18px 20px;
  margin-bottom: 36px;
}

.ses-infocall__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--ses-orange);
}

.ses-infocall p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* ——— SEE ALSO ——— */
.ses-also {
  margin-bottom: 40px;
}

.ses-also__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ses-also__grid a,
.ses-also__grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  background: var(--ses-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.ses-also__grid a:hover,
.ses-also__grid button:hover {
  background: var(--ses-navy-soft);
}

/* ——— PRICES ——— */
.ses-prices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.ses-price-card {
  border: 1px solid #e4e4e4;
  padding: 16px 18px;
  background: #fff;
}

.ses-price-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ses-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ses-price-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ses-muted);
}

.ses-price-card__sum {
  font-size: 22px;
  font-weight: 800;
  color: var(--ses-burgundy);
}

/* ——— FORM MODAL ——— */
.ses-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
  background: rgba(15, 20, 35, 0.55);
}

.ses-modal.is-open {
  display: flex;
}

.ses-modal__panel {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 24px;
  max-height: min(92vh, 720px);
  overflow: auto;
  margin: auto;
  border-top: 4px solid var(--ses-burgundy);
}

.ses-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ses-navy);
}

.ses-modal__lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ses-muted);
}

.ses-form .ses-field {
  margin-bottom: 12px;
}

.ses-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ses-navy);
}

.ses-form input,
.ses-form select,
.ses-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
}

.ses-form--modal input,
.ses-form--modal select,
.ses-form--modal textarea {
  min-height: 52px;
  padding: 14px;
  font-size: 16px;
  border-width: 2px;
}

.ses-form--modal textarea {
  min-height: 90px;
}

.ses-form textarea {
  min-height: 80px;
  resize: vertical;
}

.ses-form-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 13px;
}

.ses-form-status--ok {
  color: var(--ses-green);
}

.ses-form-status--err {
  color: #b00020;
}

.ses-modal__close {
  float: right;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

/* ——— FOOTER ——— */
.ses-footer {
  background: var(--ses-burgundy);
  color: #fff;
  padding: 28px 0 20px;
  margin-top: 20px;
}

.ses-footer__phone {
  display: block;
  text-align: center;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
}

.ses-footer__phone:hover {
  opacity: 0.9;
}

.ses-footer__line {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 22px;
}

.ses-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.ses-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ses-footer__brand img {
  width: 48px;
  height: 48px;
  background: #fff;
  padding: 4px;
  border-radius: 2px;
}

.ses-footer__brand span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 200px;
}

.ses-footer__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.95;
}

.ses-footer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.ses-footer__meta svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.ses-footer__bottom {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.9;
}

.ses-footer__bottom a {
  text-decoration: underline;
}

.ses-footer__copy {
  margin: 8px 0;
}

.ses-footer__legal {
  margin: 0;
  opacity: 0.75;
  max-width: 820px;
}

/* ——— FLOAT + MOBILE BAR ——— */
.ses-float {
  position: fixed;
  right: 16px;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ses-float a,
.ses-float button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
}

.ses-float__call {
  background: var(--ses-burgundy);
  color: #fff;
}

.ses-float__chat {
  background: var(--ses-navy);
  color: #fff;
}

.ses-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  gap: 8px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e5e5;
  backdrop-filter: blur(8px);
}

.ses-mobile-bar .ses-btn {
  flex: 1;
  min-height: 48px;
}

.ses-mobile-bar .ses-btn--call {
  flex: 0 0 56px;
  background: #fff;
  color: var(--ses-burgundy);
  border: 2px solid var(--ses-burgundy);
  font-size: 20px;
}

/* ——— MOBILE: iPhone / Android ——— */
@media (max-width: 980px) {
  .ses-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  /* Раскрываем сайдбар: форма → контент → остальное */
  .ses-aside {
    display: contents;
  }

  .ses-lead-panel {
    order: 1;
    padding: 18px 16px 16px;
  }

  .ses-main {
    order: 2;
  }

  .ses-aside__card {
    order: 3;
  }

  .ses-aside__cta {
    order: 4;
  }

  .ses-aside__promo {
    order: 5;
  }

  .ses-review {
    order: 6;
  }

  .ses-adv {
    grid-template-columns: repeat(2, 1fr);
  }

  .ses-stages,
  .ses-also__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ses-footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(76px + var(--safe-bottom));
  }

  .ses-container {
    width: min(100% - 24px, var(--ses-max));
  }

  .ses-top__inner {
    flex-wrap: wrap;
  }

  .ses-brand__name {
    max-width: 180px;
    font-size: 13px;
  }

  .ses-brand__logo {
    width: 44px;
    height: 44px;
  }

  .ses-top__contacts {
    margin-left: auto;
  }

  .ses-phone {
    font-size: 16px;
  }

  .ses-license {
    display: none;
  }

  .ses-menu-btn {
    display: flex;
  }

  .ses-nav {
    position: static;
  }

  .ses-nav__list {
    display: none;
    flex-direction: column;
  }

  .ses-nav.is-open .ses-nav__list {
    display: flex;
  }

  .ses-nav__list a {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ses-hero-box {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ses-hero-box__img {
    max-width: 160px;
  }

  .ses-aside__photo {
    max-height: 280px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
  }

  .ses-adv,
  .ses-stages,
  .ses-also__grid,
  .ses-prices {
    grid-template-columns: 1fr;
  }

  .ses-infocall {
    align-items: flex-start;
  }

  .ses-mobile-bar {
    display: flex;
  }

  .ses-float {
    bottom: calc(90px + var(--safe-bottom));
    right: 12px;
  }

  .ses-float a,
  .ses-float button {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 380px) {
  .ses-container {
    width: min(100% - 20px, var(--ses-max));
  }

  .ses-brand__name {
    max-width: 140px;
    font-size: 12px;
  }

  .ses-city {
    font-size: 12px;
  }
}

/* iOS tap highlight / notch */
@supports (-webkit-touch-callout: none) {
  .ses-btn,
  .ses-nav__list a,
  .ses-float a {
    -webkit-tap-highlight-color: rgba(139, 21, 56, 0.15);
  }
}

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

  .ses-btn {
    transition: none;
  }
}
