:root {
  --bg: #f5f1ea;
  --bg-soft: #fbfaf6;
  --card: #ffffff;
  --text: #26352f;
  --muted: #6f7d75;
  --green: #6f9f8a;
  --green-dark: #3f7565;
  --mint: #dfeee6;
  --line: rgba(63, 117, 101, 0.18);
  --shadow: 0 24px 70px rgba(53, 73, 64, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.logo-text {
  display: grid;
  gap: 2px;
}

.logo-text small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
}

.header-phone {
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(53, 73, 64, 0.08);
  font-weight: 700;
}

.hero {
  padding: 72px 0 52px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions,
.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
}

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

.btn-secondary {
  background: var(--card);
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.hero-card {
  padding: 18px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-photo-placeholder {
  min-height: 470px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(111, 159, 138, 0.24), rgba(255, 255, 255, 0.65)),
    var(--mint);
  color: var(--green-dark);
  font-weight: 700;
}

.hero-note {
  margin-top: 14px;
  padding: 18px;
  border-radius: 24px;
  background: var(--bg-soft);
}

.hero-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.step {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(53, 73, 64, 0.08);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 800;
}

.service-card p,
.step p,
.about-content p,
.contacts-box p {
  color: var(--muted);
  line-height: 1.65;
}

.about-section {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.about-photo {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 700;
}

.about-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.about-list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

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

.step strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
}

.contacts-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px;
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.contacts-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  padding: 30px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

  .contacts-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .contacts-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 72px;
  }

  .logo-text small {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .hero {
    padding: 42px 0 34px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-photo-placeholder {
    min-height: 330px;
  }

  .section {
    padding: 48px 0;
  }

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

  .service-card,
  .step {
    padding: 22px;
  }

  .contacts-box {
    padding: 24px;
  }

  .btn {
    width: 100%;
  }

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

/* Внутренние страницы */
.page-hero {
  padding: 72px 0 30px;
}

.content-card {
  padding: 34px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.content-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* Страница входа в кабинет врача */

/* === Публичный сайт: главная страница: начало === */

/* Общая база публичной части сайта */
body {
  margin: 0;
  background: #f6f7f1;
  color: #26352f;
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 241, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(63, 117, 101, 0.08);
}

.site-header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.doctor-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #26352f;
  text-decoration: none;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6f9b86;
  color: #fff;
  font-weight: 900;
}

.logo-text {
  display: grid;
  gap: 2px;
}

.logo-text strong {
  font-size: 17px;
  line-height: 1.15;
}

.logo-text small {
  color: #64736d;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #3d5048;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: #e5efe3;
}

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

.header-phone {
  color: #2d614e;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #2f725e;
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 114, 94, 0.16);
}

.btn-secondary {
  background: #fff;
  color: #2f725e;
  border-color: rgba(47, 114, 94, 0.16);
}

.section-kicker {
  margin: 0;
  color: #6f8b7d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hero {
  padding: 54px 0 36px;
}

.home-hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: center;
}

.home-hero-content h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.home-hero-text {
  max-width: 660px;
  margin: 0;
  color: #526159;
  font-size: 20px;
  line-height: 1.65;
}

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

.home-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-hero-notes span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #e7f0e4;
  color: #355b49;
  font-weight: 800;
  font-size: 14px;
}

.home-hero-visual {
  position: relative;
}

.home-photo-card {
  min-height: 520px;
  padding: 18px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(215, 232, 214, 0.9), transparent 45%),
    linear-gradient(145deg, #fff, #edf4eb);
  border: 1px solid rgba(63, 117, 101, 0.1);
  box-shadow: 0 30px 80px rgba(37, 54, 48, 0.08);
}

.home-photo-placeholder {
  height: 100%;
  min-height: 484px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.75)),
    #dfeade;
  text-align: center;
  color: #355b49;
}

.home-photo-placeholder span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6f9b86;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.home-photo-placeholder p {
  margin: 0;
  color: #526159;
  font-weight: 800;
  line-height: 1.45;
}

.home-hero-floating-card {
  position: absolute;
  left: -34px;
  bottom: 42px;
  max-width: 260px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(63, 117, 101, 0.1);
  box-shadow: 0 18px 44px rgba(37, 54, 48, 0.08);
}

.home-hero-floating-card strong,
.home-hero-floating-card span {
  display: block;
}

.home-hero-floating-card span {
  margin-top: 6px;
  color: #64736d;
  line-height: 1.45;
}

.home-section,
.home-about-band,
.home-contact-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 34px;
}

.home-section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-service-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 54, 48, 0.04);
}

.home-service-card:hover {
  background: #f6faf4;
  border-color: rgba(63, 117, 101, 0.24);
}

.home-service-card.muted {
  background: #faf8f1;
}

.service-number {
  color: #6f9b86;
  font-weight: 900;
}

.home-service-card h3 {
  margin: 50px 0 12px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.home-service-card p {
  margin: 0;
  color: #64736d;
  line-height: 1.6;
}

.home-about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: center;
  padding: 38px;
  border-radius: 34px;
  background: #edf4eb;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.home-about-content h2,
.home-contact-cta h2 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-about-content p,
.home-contact-cta p {
  color: #526159;
  line-height: 1.7;
  font-size: 17px;
}

.home-about-list {
  display: grid;
  gap: 12px;
}

.home-about-list div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
}

.home-about-list strong,
.home-about-list span {
  display: block;
}

.home-about-list span {
  margin-top: 6px;
  color: #64736d;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-steps div {
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.home-steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5efe3;
  color: #2f725e;
  font-weight: 900;
}

.home-steps h3 {
  margin: 24px 0 10px;
  font-size: 24px;
}

.home-steps p {
  margin: 0;
  color: #64736d;
  line-height: 1.6;
}

.home-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 18px 40px rgba(37, 54, 48, 0.04);
}

.home-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0;
  background: #eaf0e6;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: #3d5048;
}

.site-footer p,
.site-footer span {
  display: block;
  margin: 6px 0 0;
  color: #64736d;
}

.site-footer a {
  color: #2d614e;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .home-hero-inner,
  .home-about-band {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    max-width: 520px;
  }

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

@media (max-width: 760px) {
  .site-header-actions .header-phone {
    display: none;
  }

  .home-hero {
    padding-top: 34px;
  }

  .home-photo-card {
    min-height: 360px;
  }

  .home-photo-placeholder {
    min-height: 324px;
  }

  .home-hero-floating-card {
    position: static;
    margin-top: 14px;
  }

  .home-services-grid,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-about-band,
  .home-contact-cta {
    padding: 24px;
    border-radius: 26px;
  }

  .home-contact-cta,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === Публичный сайт: главная страница: конец === */

.home-hero-floating-card {
  display: none;
}

/* === Публичный сайт: шапка, логотип и футер === */

/* Шапка */
.site-header-inner {
  width: min(1280px, calc(100% - 36px));
  min-height: 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

/* Логотип в шапке: SVG-знак + HTML-текст */
.site-logo-svg-text {
  width: 280px;
  max-width: 280px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #26352f;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-svg-text img {
  width: 54px;
  height: 46px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-logo-svg-text .logo-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-logo-svg-text .logo-text strong {
  color: #26352f;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 900;
}

.site-logo-svg-text .logo-text small {
  color: #64736d;
  font-size: 12px;
  line-height: 1.2;
}

/* Меню */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.site-nav a {
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* Футер */
.site-footer {
  margin-top: 40px;
  padding: 34px 0;
  background: #eaf0e6;
  border-top: 1px solid rgba(63, 117, 101, 0.08);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 32px;
}

.site-footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-width: 0;
}

.site-footer-brand-card,
.site-footer-brand-card-svg {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 150px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(63, 117, 101, 0.10);
  box-shadow: 0 14px 28px rgba(37, 54, 48, 0.05);
  flex: 0 0 150px;
}

.site-footer-brand-card img,
.site-footer-brand-card-svg img {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 0;
}

.site-footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  max-width: 560px;
}

.site-footer-brand-text strong {
  display: block;
  margin: 0;
  color: #26352f;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.site-footer-brand-text p {
  margin: 8px 0 10px;
  color: #3f5a4e;
  font-weight: 700;
}

.site-footer-brand-text span {
  display: block;
  color: #64736d;
  line-height: 1.6;
  max-width: 520px;
}

.site-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(63, 117, 101, 0.10);
  box-shadow: 0 14px 28px rgba(37, 54, 48, 0.04);
}

.site-footer-contact a {
  color: #2f725e;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-footer-contact span {
  color: #3f5a4e;
  font-weight: 700;
}

.site-footer-contact small {
  color: #7a8781;
  line-height: 1.45;
  font-size: 14px;
}

/* Адаптив */
@media (max-width: 1180px) {
  .site-header-inner {
    grid-template-columns: 245px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-logo-svg-text {
    width: 245px;
    max-width: 245px;
  }

  .site-logo-svg-text img {
    width: 46px;
    height: 40px;
  }

  .site-logo-svg-text .logo-text strong {
    font-size: 14px;
  }

  .site-logo-svg-text .logo-text small {
    font-size: 11px;
  }

  .site-nav a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    display: flex;
    justify-content: space-between;
  }

  .site-nav {
    display: none;
  }

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

  .site-footer-contact {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 64px;
  }

  .site-logo-svg-text {
    width: 230px;
    max-width: 230px;
  }

  .site-logo-svg-text img {
    width: 42px;
    height: 36px;
  }

  .site-logo-svg-text .logo-text strong {
    font-size: 13px;
  }

  .site-logo-svg-text .logo-text small {
    font-size: 11px;
  }

  .site-footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-brand-card,
  .site-footer-brand-card-svg {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    height: 132px;
    min-height: 132px;
    flex-basis: 132px;
    padding: 16px;
  }

  .site-footer-brand-card img,
  .site-footer-brand-card-svg img {
    width: 104px;
    height: 104px;
  }

  .site-footer-brand-text strong {
    font-size: 21px;
  }

  .site-footer-contact a {
    font-size: 26px;
  }
}

/* === Публичный сайт: страница О специалисте === */

.inner-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: stretch;
}

.inner-hero-content {
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eef4eb, #f8f6ee);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.inner-hero-content h1 {
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.inner-hero-content p {
  max-width: 720px;
  margin: 0;
  color: #526159;
  font-size: 19px;
  line-height: 1.7;
}

.inner-hero-card {
  padding: 18px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 18px 40px rgba(37, 54, 48, 0.04);
}

.about-photo-placeholder {
  height: 100%;
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border-radius: 26px;
  background: #dfeade;
  text-align: center;
  color: #355b49;
}

.about-photo-placeholder span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6f9b86;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.about-photo-placeholder p {
  margin: 0;
  color: #526159;
  font-weight: 800;
}

.about-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.about-main {
  display: grid;
  gap: 20px;
}

.content-card,
.about-side-card {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 14px 34px rgba(37, 54, 48, 0.035);
}

.content-card h2 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.content-card p {
  color: #526159;
  font-size: 17px;
  line-height: 1.75;
}

.about-timeline {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.about-timeline > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.about-timeline > div > span {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5efe3;
  color: #2f725e;
  font-weight: 900;
}

.about-timeline > div > h3 {
  grid-column: 2;
  margin: 0;
  font-size: 22px;
}

.about-timeline > div > p {
  grid-column: 2;
  margin: 0;
}

.documents-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.documents-preview div {
  padding: 18px;
  border-radius: 20px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.documents-preview strong,
.documents-preview span {
  display: block;
}

.documents-preview span {
  margin-top: 8px;
  color: #64736d;
  line-height: 1.5;
}

.about-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.about-side-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.about-side-card p,
.about-side-card li {
  color: #526159;
  line-height: 1.65;
}

.about-side-card ul {
  margin: 0;
  padding-left: 20px;
}

.about-side-card.accent {
  background: #edf4eb;
}

.about-side-card .btn {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .inner-hero,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
  }

  .documents-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .inner-hero-content,
  .content-card,
  .about-side-card {
    padding: 24px;
    border-radius: 24px;
  }

  .about-timeline > div {
    grid-template-columns: 1fr;
  }

  .about-timeline > div > span,
  .about-timeline > div > h3,
  .about-timeline > div > p {
    grid-column: auto;
  }
}

/* === Конец страницы О специалисте === */

/* === Публичный сайт: страница Услуги === */

.services-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eef4eb, #f8f6ee);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.services-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.services-hero p {
  max-width: 760px;
  margin: 0;
  color: #526159;
  font-size: 19px;
  line-height: 1.7;
}

.services-hero-note {
  align-self: center;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.services-hero-note strong,
.services-hero-note span {
  display: block;
}

.services-hero-note strong {
  margin-bottom: 10px;
  color: #26352f;
  font-size: 22px;
}

.services-hero-note span {
  color: #526159;
  line-height: 1.6;
}

.services-grid-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-page-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 14px 34px rgba(37, 54, 48, 0.035);
}

.service-page-card-muted {
  background: #fbfbf7;
}

.service-page-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e5efe3;
  color: #2f725e;
  font-weight: 900;
}

.service-page-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.service-page-card p {
  margin: 0;
  color: #526159;
  font-size: 17px;
  line-height: 1.7;
}

.service-page-card ul {
  margin: 0;
  padding-left: 20px;
  color: #526159;
  line-height: 1.7;
}

.service-page-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background: #eaf0e6;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.services-cta h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.services-cta p {
  margin: 0;
  color: #526159;
  font-size: 18px;
  line-height: 1.6;
}

.services-cta-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 980px) {
  .services-hero,
  .services-cta {
    grid-template-columns: 1fr;
  }

  .services-grid-page {
    grid-template-columns: 1fr;
  }

  .services-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .services-hero,
  .service-page-card,
  .services-cta {
    padding: 24px;
    border-radius: 24px;
  }

  .service-page-card {
    min-height: auto;
  }

  .services-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Конец страницы Услуги === */

/* === Публичный сайт: детальная страница услуги === */

.service-detail-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eef4eb, #f8f6ee);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: #2f725e;
  font-weight: 800;
  text-decoration: none;
}

.service-detail-hero h1 {
  max-width: 820px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.service-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #526159;
  font-size: 19px;
  line-height: 1.7;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.service-detail-summary {
  align-self: center;
  display: grid;
  gap: 12px;
}

.service-detail-summary div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.service-detail-summary strong,
.service-detail-summary span {
  display: block;
}

.service-detail-summary strong {
  margin-bottom: 6px;
  color: #26352f;
  font-size: 18px;
}

.service-detail-summary span {
  color: #526159;
  line-height: 1.5;
}

.service-detail-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.service-detail-main {
  display: grid;
  gap: 20px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.check-grid div {
  position: relative;
  padding: 18px 18px 18px 46px;
  border-radius: 20px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
  color: #526159;
  line-height: 1.55;
}

.check-grid div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6f9b86;
}

.steps-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.steps-list > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.steps-list > div > span {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5efe3;
  color: #2f725e;
  font-weight: 900;
}

.steps-list h3 {
  margin: 0;
  font-size: 22px;
}

.steps-list p {
  margin: 0;
}

.plain-list {
  margin: 20px 0 0;
  padding-left: 22px;
  color: #526159;
  font-size: 17px;
  line-height: 1.75;
}

.service-detail-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

@media (max-width: 980px) {
  .service-detail-hero,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .service-detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .steps-list > div {
    grid-template-columns: 1fr;
  }

  .steps-list > div > span {
    grid-column: auto;
    grid-row: auto;
  }
}

/* === Конец детальной страницы услуги === */

/* === Публичный сайт: страница Стоимость === */

.price-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eef4eb, #f8f6ee);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.price-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.price-hero p {
  max-width: 760px;
  margin: 0;
  color: #526159;
  font-size: 19px;
  line-height: 1.7;
}

.price-hero-card {
  align-self: center;
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.price-hero-card strong {
  color: #26352f;
  font-size: 22px;
}

.price-hero-card a {
  color: #2f725e;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.price-hero-card span {
  color: #64736d;
  line-height: 1.45;
}

.price-list-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 14px 34px rgba(37, 54, 48, 0.035);
}

.price-card-main {
  background: #edf4eb;
}

.price-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
}

.price-card h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.price-card-head strong {
  color: #2f725e;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.price-card p {
  margin: 0;
  color: #526159;
  font-size: 17px;
  line-height: 1.7;
}

.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.price-info-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-contact-box {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.price-contact-box div {
  padding: 18px;
  border-radius: 20px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.price-contact-box strong,
.price-contact-box a,
.price-contact-box span {
  display: block;
}

.price-contact-box strong {
  margin-bottom: 6px;
  color: #26352f;
}

.price-contact-box a {
  color: #2f725e;
  font-weight: 900;
  text-decoration: none;
}

.price-contact-box span {
  color: #526159;
}

@media (max-width: 980px) {
  .price-hero,
  .price-list-section,
  .price-info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .price-hero,
  .price-card {
    padding: 24px;
    border-radius: 24px;
  }

  .price-card-head {
    flex-direction: column;
  }

  .price-hero-card a {
    font-size: 24px;
  }
}

/* === Конец страницы Стоимость === */

/* === Публичный сайт: страница Отзывы === */

.reviews-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eef4eb, #f8f6ee);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.reviews-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.reviews-hero p {
  max-width: 760px;
  margin: 0;
  color: #526159;
  font-size: 19px;
  line-height: 1.7;
}

.reviews-hero-card {
  align-self: center;
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.reviews-hero-card strong {
  color: #26352f;
  font-size: 22px;
}

.reviews-hero-card span {
  color: #526159;
  line-height: 1.6;
}

.reviews-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.reviews-main {
  display: grid;
  gap: 18px;
}

.review-card {
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 14px 34px rgba(37, 54, 48, 0.035);
}

.review-card-empty {
  background: #fbfbf7;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.review-card-head strong,
.review-card-head span {
  display: block;
}

.review-card-head strong {
  color: #26352f;
  font-size: 22px;
}

.review-card-head span {
  margin-top: 5px;
  color: #7a8781;
  line-height: 1.45;
}

.review-card-head small {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5efe3;
  color: #2f725e;
  font-weight: 900;
}

.review-card p {
  margin: 0;
  color: #526159;
  font-size: 17px;
  line-height: 1.75;
}

.review-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(63, 117, 101, 0.08);
}

.review-card-footer span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4eb;
  color: #3f5a4e;
  font-size: 14px;
  font-weight: 800;
}

.reviews-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.reviews-source-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding: 34px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 14px 34px rgba(37, 54, 48, 0.035);
}

.reviews-source-section h2 {
  margin: 8px 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.reviews-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reviews-source-grid div {
  padding: 20px;
  border-radius: 22px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

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

.reviews-source-grid strong {
  margin-bottom: 8px;
  color: #26352f;
  font-size: 19px;
}

.reviews-source-grid span {
  color: #526159;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .reviews-hero,
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .reviews-sidebar {
    position: static;
  }

  .reviews-source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .reviews-hero,
  .review-card,
  .reviews-source-section {
    padding: 24px;
    border-radius: 24px;
  }
}

/* === Конец страницы Отзывы === */

/* === Публичный сайт: страница Контакты === */

.contacts-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eef4eb, #f8f6ee);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.contacts-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contacts-hero p {
  max-width: 760px;
  margin: 0;
  color: #526159;
  font-size: 19px;
  line-height: 1.7;
}

.contacts-hero-card {
  align-self: center;
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(63, 117, 101, 0.08);
}

.contacts-hero-card strong {
  color: #26352f;
  font-size: 22px;
}

.contacts-hero-card a {
  color: #2f725e;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.contacts-hero-card span {
  color: #64736d;
  line-height: 1.45;
}

.contacts-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.contacts-main {
  display: grid;
  gap: 20px;
}

.contact-card {
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(63, 117, 101, 0.08);
  box-shadow: 0 14px 34px rgba(37, 54, 48, 0.035);
}

.contact-card-primary {
  background: #edf4eb;
}

.contact-card h2 {
  margin: 8px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.contact-card p {
  margin: 0;
  color: #526159;
  font-size: 17px;
  line-height: 1.7;
}

.contact-big-link {
  display: inline-flex;
  margin-top: 24px;
  color: #2f725e;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.messenger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.messenger-grid a {
  display: block;
  padding: 20px;
  border-radius: 22px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
  text-decoration: none;
}

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

.messenger-grid strong {
  color: #26352f;
  font-size: 22px;
}

.messenger-grid span {
  margin-top: 8px;
  color: #64736d;
  line-height: 1.45;
}

.contact-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-note-grid div {
  padding: 20px;
  border-radius: 22px;
  background: #fafbf8;
  border: 1px solid rgba(63, 117, 101, 0.08);
}

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

.contact-note-grid strong {
  margin-bottom: 8px;
  color: #26352f;
}

.contact-note-grid span {
  color: #526159;
  line-height: 1.55;
}

.contacts-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.contacts-warning {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 44px;
  padding: 34px;
  border-radius: 32px;
  background: #fff8ef;
  border: 1px solid rgba(158, 111, 58, 0.14);
}

.contacts-warning h2 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.contacts-warning p {
  max-width: 900px;
  margin: 0;
  color: #6a5c49;
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .contacts-hero,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contacts-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .contacts-hero,
  .contact-card,
  .contacts-warning {
    padding: 24px;
    border-radius: 24px;
  }

  .contacts-hero-card a,
  .contact-big-link {
    font-size: 25px;
  }

  .messenger-grid,
  .contact-note-grid {
    grid-template-columns: 1fr;
  }
}

/* === Конец страницы Контакты === */

/* === Публичный сайт: контактные иконки === */

.header-contact-icons,
.footer-contact-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(63, 117, 101, 0.10);
  box-shadow: 0 8px 18px rgba(37, 54, 48, 0.05);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 54, 48, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.contact-icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.site-footer-phone {
  color: #2f725e;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.footer-contact-icons {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

.site-footer-contact {
  align-items: center;
  text-align: center;
}

.site-footer-contact .contact-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 18px;
}

.site-footer-contact .contact-icon img {
  width: 42px;
  height: 42px;
}

@media (max-width: 1180px) {
  .header-contact-icons {
    gap: 6px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 14px;
  }

  .contact-icon img {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 980px) {
  .header-contact-icons {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-footer-phone {
    font-size: 26px;
  }

  .footer-contact-icons {
    gap: 7px;
  }

  .site-footer-contact .contact-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 16px;
  }

  .site-footer-contact .contact-icon img {
    width: 37px;
    height: 37px;
  }
}

/* === Конец контактных иконок === */

/* === Мобильная шапка: только телефонная версия === */
@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 251, 248, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(63, 117, 101, 0.07);
  }

  .site-header-inner {
    width: calc(100% - 28px);
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
  }

  .site-logo-svg-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    text-decoration: none;
  }

  .site-logo-svg-text img {
    width: 48px;
    height: 44px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .site-logo-svg-text .logo-text {
    height: auto;
    min-height: 34px;
    display: grid;
    gap: 2px;
    align-content: center;
    overflow: visible;
    min-width: 0;
  }

  .site-logo-svg-text .logo-text strong {
    display: block;
    color: #26352f;
    font-size: 15px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .site-logo-svg-text .logo-text small {
    display: block;
    color: #526159;
    font-size: 13px;
    line-height: 1.05;
    font-weight: 850;
    white-space: nowrap;
  }

  .site-nav,
  .header-contact-icons,
  .site-header-actions > .btn {
    display: none;
  }

  .site-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 42px;
  }

  .mobile-burger-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid rgba(63, 117, 101, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 20px rgba(37, 54, 48, 0.05);
    cursor: pointer;
    appearance: none;
  }

  .mobile-burger-lines {
    width: 18px;
    display: grid;
    gap: 4px;
  }

  .mobile-burger-lines span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #26352f;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobile-burger-btn.is-open .mobile-burger-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-burger-btn.is-open .mobile-burger-lines span:nth-child(2) {
    opacity: 0;
  }

  .mobile-burger-btn.is-open .mobile-burger-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 66px 0 0;
    z-index: 45;
    display: none;
    background: rgba(38, 53, 47, 0.18);
    backdrop-filter: blur(8px);
  }

  .mobile-menu-overlay.is-open {
    display: block;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}
/* === Конец мобильной шапки === */

/* === Мобильная главная: скрытие бейджей === */
@media (max-width: 760px) {
  .home-hero-badges {
    display: none;
  }
}
/* === Конец скрытия бейджей на мобильной === */

/* === Мобильное меню и скрытие плашек главной === */
@media (max-width: 760px) {
  .home-hero-badges {
    display: none !important;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 66px 0 0;
    z-index: 45;
    display: none;
    padding: 12px 16px;
    background: rgba(38, 53, 47, 0.18);
    backdrop-filter: blur(8px);
  }

  .mobile-menu-overlay.is-open {
    display: block;
  }

  .mobile-menu-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(63, 117, 101, 0.10);
    box-shadow: 0 20px 44px rgba(37, 54, 48, 0.14);
  }

  .mobile-menu-nav {
    display: grid;
    gap: 8px;
  }

  .mobile-menu-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-radius: 18px;
    background: #f7f9f4;
    color: #26352f;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-menu-nav a.is-active {
    background: #edf4eb;
    color: #2f725e;
  }

  .mobile-menu-nav a::after {
    content: "›";
    color: #8da097;
    font-size: 20px;
    line-height: 1;
  }

  .mobile-menu-contacts {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(63, 117, 101, 0.10);
  }

  .mobile-menu-phone {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2f725e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-menu-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .mobile-menu-icons a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(247, 249, 244, 0.92);
    border: 1px solid rgba(63, 117, 101, 0.10);
  }

  .mobile-menu-icons img {
    width: 35px;
    height: 35px;
    object-fit: contain;
  }
}
/* === Конец мобильного меню и скрытия плашек === */

/* === Мобильная главная: реальные классы index.html === */
@media (max-width: 760px) {
  /* Первый экран */
  .home-hero {
    padding: 18px 0 18px;
  }

  .home-hero-inner {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .home-hero-content {
    min-height: 0;
  }

  .home-hero .section-kicker {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.16em;
  }

  .home-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .home-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .home-hero-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .home-hero-notes {
    display: none !important;
  }

  .home-hero-visual {
    min-height: 0;
    height: auto;
    padding: 10px;
    border-radius: 26px;
  }

  .home-photo-card {
    height: auto;
    min-height: 0;
    padding: 10px;
    border-radius: 24px;
  }

  .home-photo-placeholder {
    height: 220px;
    min-height: 220px;
    border-radius: 22px;
  }

  .home-photo-mark {
    width: 68px;
    height: 68px;
    font-size: 23px;
  }

  /* Общие секции главной */
  .home-section {
    padding: 18px 0;
  }

  .home-section .section-head {
    width: calc(100% - 32px);
    margin: 0 auto 10px;
  }

  .home-section .section-head h2,
  .home-about-content h2,
  .home-contact-cta h2 {
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  /* Карточки направлений */
  .home-services-grid {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-service-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .home-service-card-number {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .home-service-card h3 {
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .home-service-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.42;
  }

  /* О специалисте */
  .home-about-band {
    padding: 18px 0;
  }

  .home-about-content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 20px;
    border-radius: 24px;
  }

  .home-about-content p {
    font-size: 15px;
    line-height: 1.55;
  }

  .home-about-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .home-about-list > div,
  .home-about-list li {
    padding: 14px;
    border-radius: 18px;
  }

  /* Как проходит запись */
  .home-steps {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-steps > div {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .home-steps span {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .home-steps h3 {
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .home-steps p {
    margin: 0;
    font-size: 13px;
    line-height: 1.42;
  }

  /* Контактный CTA */
  .home-contact-cta {
    padding: 18px 0 22px;
  }

  .home-contact-cta > div {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-radius: 24px;
  }

  .home-contact-cta p {
    font-size: 15px;
    line-height: 1.55;
  }

  .home-contact-cta .btn,
  .home-contact-cta a[class*="btn"] {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .site-footer {
    margin-top: 18px;
  }
}
/* === Конец мобильной главной: реальные классы index.html === */

/* === Мобильная главная: дополнительное уплотнение === */
@media (max-width: 760px) {
  .home-hero {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-hero-inner {
    gap: 10px;
  }

  .home-hero h1 {
    margin-bottom: 10px;
  }

  .home-hero p {
    margin-bottom: 0;
  }

  .home-hero-actions {
    margin-top: 12px;
  }

  .home-hero-visual {
    padding: 8px;
  }

  .home-photo-placeholder {
    height: 190px;
    min-height: 190px;
  }

  .home-section {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-section .section-head {
    margin-bottom: 8px;
  }

  .home-services-grid,
  .home-steps {
    gap: 8px;
  }

  .home-service-card,
  .home-steps > div {
    padding: 14px;
  }

  .home-service-card-number,
  .home-steps span {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .home-about-band {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-about-content {
    padding: 18px;
  }

  .home-about-list {
    gap: 8px;
    margin-top: 12px;
  }

  .home-about-list > div,
  .home-about-list li {
    padding: 12px 14px;
  }

  .home-contact-cta {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .home-contact-cta > div {
    padding: 18px;
  }

  .home-contact-cta .btn,
  .home-contact-cta a[class*="btn"] {
    min-height: 40px;
  }

  .site-footer {
    margin-top: 10px;
    padding-top: 22px;
  }
}
/* === Конец дополнительного уплотнения главной === */

/* === Мобильная страница услуг === */
@media (max-width: 760px) {
  .services-hero {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 14px;
    padding: 20px;
    border-radius: 26px;
  }

  .services-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .services-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .services-hero-note {
    padding: 14px;
    border-radius: 18px;
  }

  .services-hero-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.15;
  }

  .services-hero-note span,
  .services-hero-note p {
    font-size: 13px;
    line-height: 1.42;
  }

  .services-grid-page {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 auto 14px;
  }

  .service-page-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .service-page-card-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .service-page-card h2,
  .service-page-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .service-page-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .service-page-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
  }

  .service-page-card li {
    font-size: 13px;
    line-height: 1.42;
  }

  .service-page-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .service-page-card-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .services-cta {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px auto 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .services-cta h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .services-cta p {
    font-size: 15px;
    line-height: 1.55;
  }

  .services-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .services-cta-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}
/* === Конец мобильной страницы услуг === */

/* === Мобильная детальная страница услуги === */
@media (max-width: 760px) {
  .service-detail-hero {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 14px;
    padding: 20px;
    border-radius: 26px;
  }

  .service-detail-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(36px, 10.8vw, 46px);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .service-detail-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .service-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .service-detail-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .service-detail-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .service-detail-summary > div {
    padding: 14px;
    border-radius: 18px;
  }

  .service-detail-summary strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.15;
  }

  .service-detail-summary span {
    font-size: 13px;
    line-height: 1.42;
  }

  .service-detail-layout {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto 18px;
  }

  .service-detail-main {
    display: grid;
    gap: 12px;
  }

  .content-card {
    padding: 18px;
    border-radius: 24px;
  }

  .content-card h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .content-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .content-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
  }

  .content-card li {
    font-size: 13px;
    line-height: 1.45;
  }

  .check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .check-grid > div,
  .check-grid li {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.42;
  }

  .service-detail-sidebar {
    position: static;
    display: grid;
    gap: 10px;
  }

  .about-side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .about-side-card h2,
  .about-side-card h3 {
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .about-side-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .about-side-card .btn,
  .about-side-card a[class*="btn"] {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}
/* === Конец мобильной детальной страницы услуги === */

/* === Мобильная детальная страница услуги: исправление маркеров === */
@media (max-width: 760px) {
  .service-detail-layout .check-grid > div,
  .service-detail-layout .check-grid li {
    position: relative;
    padding: 12px 14px 12px 42px;
  }

  .service-detail-layout .check-grid > div::before,
  .service-detail-layout .check-grid li::before {
    left: 16px;
    top: 18px;
  }
}
/* === Конец исправления маркеров детальной услуги === */

/* === Мобильная страница стоимости === */
@media (max-width: 760px) {
  .price-hero {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 14px;
    padding: 20px;
    border-radius: 26px;
  }

  .price-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .price-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .price-hero-card,
  .price-contact-box {
    padding: 16px;
    border-radius: 22px;
  }

  .price-hero-card h2,
  .price-contact-box h2,
  .price-hero-card h3,
  .price-contact-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .price-hero-card p,
  .price-contact-box p {
    font-size: 13px;
    line-height: 1.45;
  }

  .price-list-section {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 auto 14px;
  }

  .price-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .price-card-main {
    padding: 18px;
  }

  .price-card-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .price-card h2,
  .price-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .price-card strong,
  .price-card .price {
    font-size: 24px;
    line-height: 1;
  }

  .price-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .price-card .btn,
  .price-card a[class*="btn"] {
    width: 100%;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 12px;
    font-size: 13px;
  }

  .price-info-section {
    width: calc(100% - 32px);
    margin: 14px auto;
  }

  .price-info-section .content-card,
  .price-info-section > div {
    padding: 18px;
    border-radius: 24px;
  }

  .price-info-section h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .price-info-section p {
    font-size: 15px;
    line-height: 1.55;
  }

  .price-info-section ul {
    margin: 12px 0 0;
    padding-left: 18px;
  }

  .price-info-section li {
    font-size: 13px;
    line-height: 1.45;
  }

  .price-info-section li + li {
    margin-top: 6px;
  }

  .services-cta {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px auto 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .services-cta h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .services-cta p {
    font-size: 15px;
    line-height: 1.55;
  }

  .services-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .services-cta-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}
/* === Конец мобильной страницы стоимости === */

/* === Мобильная страница отзывов === */
@media (max-width: 760px) {
  .reviews-hero {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 14px;
    padding: 20px;
    border-radius: 26px;
  }

  .reviews-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .reviews-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .reviews-hero-card {
    padding: 16px;
    border-radius: 22px;
  }

  .reviews-hero-card h2,
  .reviews-hero-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .reviews-hero-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .reviews-layout {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto 14px;
  }

  .reviews-main {
    display: grid;
    gap: 10px;
  }

  .review-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .review-card-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
  }

  .review-card-head span,
  .review-card-head strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .review-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .review-card-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  .reviews-sidebar {
    position: static;
    display: grid;
    gap: 10px;
  }

  .reviews-sidebar .about-side-card,
  .reviews-layout .about-side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .reviews-sidebar .about-side-card h2,
  .reviews-sidebar .about-side-card h3,
  .reviews-layout .about-side-card h2,
  .reviews-layout .about-side-card h3 {
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .reviews-sidebar .about-side-card p,
  .reviews-layout .about-side-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .reviews-source-section {
    width: calc(100% - 32px);
    margin: 14px auto;
  }

  .reviews-source-section .section-head {
    margin-bottom: 10px;
  }

  .reviews-source-section h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

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

  .reviews-source-grid > div {
    padding: 16px;
    border-radius: 22px;
  }

  .reviews-source-grid h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .reviews-source-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .services-cta {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px auto 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .services-cta h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .services-cta p {
    font-size: 15px;
    line-height: 1.55;
  }

  .services-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .services-cta-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}
/* === Конец мобильной страницы отзывов === */

/* === Desktop: скрытие мобильного меню === */
@media (min-width: 761px) {
  .mobile-burger-btn,
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
}
/* === Конец скрытия мобильного меню на desktop === */

/* === Мобильная страница контактов === */
@media (max-width: 760px) {
  .contacts-hero {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 14px;
    padding: 20px;
    border-radius: 26px;
  }

  .contacts-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(38px, 11.5vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .contacts-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .contacts-hero-card {
    padding: 16px;
    border-radius: 22px;
  }

  .contacts-hero-card h2,
  .contacts-hero-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .contacts-hero-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .contacts-layout {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto 14px;
  }

  .contacts-main {
    display: grid;
    gap: 10px;
  }

  .contacts-sidebar {
    position: static;
    display: grid;
    gap: 10px;
  }

  .contact-card,
  .contacts-sidebar .about-side-card,
  .contacts-layout .about-side-card {
    min-height: 0;
    padding: 18px;
    border-radius: 24px;
  }

  .contact-card h2,
  .contact-card h3,
  .contacts-sidebar .about-side-card h2,
  .contacts-sidebar .about-side-card h3 {
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .contact-card p,
  .contacts-sidebar .about-side-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .contact-big-link {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: 25px;
    line-height: 1;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .contact-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .messenger-grid,
  .contact-note-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .messenger-grid > a,
  .messenger-grid > div,
  .contact-note-grid > div {
    padding: 14px;
    border-radius: 18px;
  }

  .messenger-grid h3,
  .contact-note-grid h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.1;
  }

  .messenger-grid p,
  .contact-note-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.42;
  }

  .contacts-warning {
    width: calc(100% - 32px);
    margin: 14px auto 18px;
    padding: 18px;
    border-radius: 24px;
  }

  .contacts-warning h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .contacts-warning p {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* === Конец мобильной страницы контактов === */

/* === Иконки мессенджеров на странице контактов === */
.messenger-grid > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 118px;
  padding-right: 118px;
}

.messenger-grid > a strong {
  display: block;
}

.messenger-card-icon-img {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translateY(-50%);
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  .messenger-grid > a {
    min-height: 86px;
    padding-right: 86px;
  }

  .messenger-card-icon-img {
    right: 18px;
    width: 54px;
    height: 54px;
  }
}
/* === Конец иконок мессенджеров === */

/* === Мобильная страница о специалисте === */
@media (max-width: 760px) {
  .inner-hero.about-hero {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto 14px;
    padding: 20px;
    border-radius: 26px;
  }

  .inner-hero-content {
    min-height: 0;
  }

  .inner-hero.about-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(36px, 10.8vw, 46px);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .inner-hero.about-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .inner-hero-card {
    min-height: 0;
    padding: 10px;
    border-radius: 24px;
  }

  .about-photo-placeholder {
    min-height: 210px;
    height: 210px;
    border-radius: 22px;
  }

  .about-layout {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto 18px;
  }

  .about-main {
    display: grid;
    gap: 12px;
  }

  .content-card {
    padding: 18px;
    border-radius: 24px;
  }

  .content-card h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .content-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .about-timeline {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .about-timeline > div,
  .about-timeline li {
    padding: 14px;
    border-radius: 18px;
  }

  .about-timeline strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.15;
  }

  .about-timeline span,
  .about-timeline p {
    font-size: 13px;
    line-height: 1.42;
  }

  .about-sidebar {
    position: static;
    display: grid;
    gap: 10px;
  }

  .about-side-card {
    padding: 18px;
    border-radius: 24px;
  }

  .about-side-card h2,
  .about-side-card h3 {
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .about-side-card p,
  .about-side-card li {
    font-size: 14px;
    line-height: 1.5;
  }

  .about-side-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
  }
}
/* === Конец мобильной страницы о специалисте === */

/* === Фотографии врача на главной и странице о специалисте === */
.home-photo-placeholder-image,
.about-photo-placeholder-image {
  overflow: hidden;
}

.home-photo-placeholder-image img,
.about-photo-placeholder-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-photo-placeholder-image img {
  object-position: center center;
}

.about-photo-placeholder-image img {
  object-position: center center;
}

@media (max-width: 760px) {
  .home-photo-placeholder-image img {
    object-position: center center;
  }

  .about-photo-placeholder-image img {
    object-position: center top;
  }
}
/* === Конец фотографий врача === */

/* === Мобильная версия: компактные заголовки первых экранов === */
@media (max-width: 760px) {
  .home-hero h1,
  .inner-hero.about-hero h1,
  .services-hero h1,
  .service-detail-hero h1,
  .price-hero h1,
  .reviews-hero h1,
  .contacts-hero h1 {
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .home-hero .section-kicker,
  .inner-hero.about-hero .section-kicker,
  .services-hero .section-kicker,
  .service-detail-hero .section-kicker,
  .price-hero .section-kicker,
  .reviews-hero .section-kicker,
  .contacts-hero .section-kicker {
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0.14em;
  }

  .home-hero p,
  .inner-hero.about-hero p,
  .services-hero p,
  .service-detail-hero p,
  .price-hero p,
  .reviews-hero p,
  .contacts-hero p {
    font-size: 14px;
    line-height: 1.48;
  }

  .home-hero,
  .inner-hero.about-hero,
  .services-hero,
  .service-detail-hero,
  .price-hero,
  .reviews-hero,
  .contacts-hero {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .home-hero-actions,
  .service-detail-actions,
  .services-cta-actions,
  .contact-actions {
    margin-top: 10px;
  }

  .home-hero-actions .btn,
  .service-detail-actions .btn,
  .services-cta-actions .btn,
  .contact-actions .btn {
    min-height: 38px;
    font-size: 13px;
  }
}
/* === Конец компактных заголовков первых экранов === */

/* === Итоговые правила фотографий врача и контактов === */

/* Главная и страница "О специалисте" */
.home-photo-placeholder-image,
.about-photo-placeholder-image {
  overflow: hidden;
}

.home-photo-placeholder-image img,
.about-photo-placeholder-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Страница "Контакты": фото в рамке */
.contacts-photo-card {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(63, 117, 101, 0.10);
  box-shadow: 0 18px 54px rgba(42, 70, 58, 0.08);
  overflow: hidden;
}

.contacts-photo-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #eef5ec;
}

.contacts-photo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

/* Кнопка "Позвонить" в верхнем блоке контактов */
.contacts-hero-card .contacts-hero-phone-actions {
  margin-top: 16px;
}

.contacts-hero-card .contacts-hero-phone-actions .btn {
  width: auto;
  min-width: 148px;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.contacts-hero-card .contacts-hero-phone-actions .btn:visited,
.contacts-hero-card .contacts-hero-phone-actions .btn:hover,
.contacts-hero-card .contacts-hero-phone-actions .btn:focus {
  color: #ffffff !important;
}

@media (min-width: 761px) {
  .contacts-sidebar .contacts-photo-card {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 760px) {
  /* На мобильной версии фото на главной и "О специалисте" не обрезаются */
  .home-photo-placeholder-image,
  .about-photo-placeholder-image {
    height: auto;
    min-height: 0;
  }

  .home-photo-placeholder-image img,
  .about-photo-placeholder-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
  }

  /* Контакты: фото поднимается после первого блока */
  .contacts-layout {
    display: flex;
    flex-direction: column;
  }

  .contacts-main,
  .contacts-sidebar {
    display: contents;
  }

  .contacts-photo-card {
    order: -10;
    width: calc(100% - 32px);
    margin: 0 auto 12px;
    padding: 8px;
    border-radius: 24px;
  }

  .contacts-photo-frame {
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
  }

  .contacts-photo-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  .contacts-main > .contact-card,
  .contacts-sidebar > .about-side-card {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .contacts-hero {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 16px;
    gap: 10px;
    border-radius: 24px;
  }

  .contacts-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .contacts-hero p {
    font-size: 13px;
    line-height: 1.42;
  }

  .contacts-hero-card {
    padding: 14px;
    border-radius: 20px;
  }

  .contacts-hero-card strong {
    font-size: 17px;
    line-height: 1.15;
  }

  .contacts-hero-card > a {
    margin-top: 6px;
    font-size: 22px;
    line-height: 1;
  }

  .contacts-hero-card > span {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .contacts-hero-card .contacts-hero-phone-actions {
    margin-top: 12px;
  }

  .contacts-hero-card .contacts-hero-phone-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
  }
}
/* === Конец итоговых правил фотографий врача и контактов === */

/* === Итоговые правила фотографий врача и контактов === */

/* Главная и страница "О специалисте" */
.home-photo-placeholder-image,
.about-photo-placeholder-image {
  overflow: hidden;
}

.home-photo-placeholder-image img,
.about-photo-placeholder-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Страница "Контакты": фото в рамке */
.contacts-photo-card {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(63, 117, 101, 0.10);
  box-shadow: 0 18px 54px rgba(42, 70, 58, 0.08);
  overflow: hidden;
}

.contacts-photo-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #eef5ec;
}

.contacts-photo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

/* Кнопка "Позвонить" в верхнем блоке контактов */
.contacts-hero-card .contacts-hero-phone-actions {
  margin-top: 16px;
}

.contacts-hero-card .contacts-hero-phone-actions .btn {
  width: auto;
  min-width: 148px;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.contacts-hero-card .contacts-hero-phone-actions .btn:visited,
.contacts-hero-card .contacts-hero-phone-actions .btn:hover,
.contacts-hero-card .contacts-hero-phone-actions .btn:focus {
  color: #ffffff !important;
}

@media (min-width: 761px) {
  .contacts-sidebar .contacts-photo-card {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 760px) {
  /* На мобильной версии фото на главной и "О специалисте" не обрезаются */
  .home-photo-placeholder-image,
  .about-photo-placeholder-image {
    height: auto;
    min-height: 0;
  }

  .home-photo-placeholder-image img,
  .about-photo-placeholder-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
  }

  /* Контакты: фото поднимается после первого блока */
  .contacts-layout {
    display: flex;
    flex-direction: column;
  }

  .contacts-main,
  .contacts-sidebar {
    display: contents;
  }

  .contacts-photo-card {
    order: -10;
    width: calc(100% - 32px);
    margin: 0 auto 12px;
    padding: 8px;
    border-radius: 24px;
  }

  .contacts-photo-frame {
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
  }

  .contacts-photo-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  .contacts-main > .contact-card,
  .contacts-sidebar > .about-side-card {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .contacts-hero {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 16px;
    gap: 10px;
    border-radius: 24px;
  }

  .contacts-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .contacts-hero p {
    font-size: 13px;
    line-height: 1.42;
  }

  .contacts-hero-card {
    padding: 14px;
    border-radius: 20px;
  }

  .contacts-hero-card strong {
    font-size: 17px;
    line-height: 1.15;
  }

  .contacts-hero-card > a {
    margin-top: 6px;
    font-size: 22px;
    line-height: 1;
  }

  .contacts-hero-card > span {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .contacts-hero-card .contacts-hero-phone-actions {
    margin-top: 12px;
  }

  .contacts-hero-card .contacts-hero-phone-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
  }
}
/* === Конец итоговых правил фотографий врача и контактов === */

