:root{--blue:#1269cb;--navy:#102a4e;--muted:#61738c;--line:#e3ebf5;--pale:#f2f7fd}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--navy);background:white;line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%}.wrap{width:min(1180px,calc(100% - 48px));margin:auto}.header{background:white;position:sticky;top:0;z-index:20;box-shadow:0 2px 15px #173a6010}.header-in{display:flex;align-items:center;gap:22px;min-height:84px}.logo{display:flex;align-items:center;gap:12px;min-width:224px;line-height:1.12}.logo-icon{font-size:37px;color:var(--blue)}.logo b{font-size:14px}.logo small,.footer small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.nav{display:flex;gap:18px;margin-left:auto}.nav a{font-size:12px;font-weight:700}.phone{font-size:14px;font-weight:800;white-space:nowrap}.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:7px;padding:14px 17px;border-radius:6px;font-size:13px;font-weight:700;line-height:1.35;min-height:48px;cursor:pointer}.btn.primary{background:var(--blue);color:white;box-shadow:0 6px 18px #1269cb18}.btn.outline{color:var(--blue);border:1px solid #8db9ec;background:white}.btn.small{font-size:11px;padding:10px 12px;min-height:40px;white-space:nowrap}.menu-toggle{display:none}.hero{background:linear-gradient(103deg,#f7faff 0%,#e9f2fc 65%,#e5f0fc 100%);overflow:hidden}.hero-inner{display:grid;grid-template-columns:57% 43%;min-height:595px;position:relative}.hero-copy{position:relative;z-index:2;padding:52px 0 34px}.eyebrow{display:block;font-size:12px;letter-spacing:.07em;color:#55708d;font-weight:700}.hero h1{font-size:clamp(46px,5.1vw,68px);line-height:1.02;letter-spacing:-.045em;margin:17px 0 22px;font-weight:800}.hero-copy>p{font-size:17px;max-width:560px;color:#455d7a;line-height:1.55}.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:30px 0 25px;max-width:630px}.benefits div{font-size:11px;font-weight:600;line-height:1.35}.benefits span{display:grid;place-items:center;width:49px;height:49px;background:white;border-radius:50%;box-shadow:0 5px 12px #335c7b15;color:var(--blue);font-size:29px;margin-bottom:10px}.hero-actions{display:flex;gap:10px}.hero-actions .btn{min-width:0;flex:1}.hero-portrait{position:relative;align-self:stretch;min-height:500px}.hero-portrait .halo{position:absolute;inset:13% -35% -25% -25%;border-radius:50%;background:radial-gradient(circle,#b5d5f2 0%,#e2f0fc 65%,transparent 70%)}.hero-portrait picture img{position:absolute;bottom:0;left:-10%;height:93%;width:auto;max-width:none;object-fit:contain;object-position:bottom}.doctor-tag{position:absolute;bottom:35px;right:0;background:white;border-radius:12px;padding:18px 22px;box-shadow:0 10px 25px #23476a20;font-size:13px}.doctor-tag small{display:block;color:var(--muted);margin-top:5px}.section{padding:64px 0}.section h2,.cta h2{font-size:clamp(27px,3vw,37px);line-height:1.15;letter-spacing:-.03em;margin:0 0 20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.section-heading h2{margin:0}.section-heading>a{color:var(--blue);font-size:13px;font-weight:700;white-space:nowrap}.disease-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.disease{border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 7px 25px #24486b0d;background:white}.disease-art{height:150px;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#163e6b,#82b6dd)}.disease-art:before{content:'';position:absolute;width:110px;height:180px;border:16px dotted #e7f5ff88;border-radius:55%;transform:rotate(-15deg)}.disease-art span{color:#fff;font-size:72px;text-shadow:0 3px 16px #1b466a99;position:relative}.art2{background:linear-gradient(130deg,#7eb4d4,#e4d6b5)}.art3{background:linear-gradient(120deg,#56728e,#b6d1e9)}.art4{background:linear-gradient(120deg,#5e92b6,#d4e4f2)}.disease-body{padding:20px 18px 26px;min-height:180px;position:relative}.disease h3{font-size:17px;line-height:1.22;margin:0 0 10px}.disease p{font-size:13px;color:var(--muted);margin:0}.disease-body a{position:absolute;right:14px;bottom:13px;width:27px;height:27px;border-radius:50%;box-shadow:0 3px 10px #123e6620;display:grid;place-items:center;color:var(--blue)}.about{background:#f5f9fd}.about-grid{display:grid;grid-template-columns:1.2fr .9fr .65fr;align-items:center;gap:28px}.about .eyebrow{color:var(--blue);margin-bottom:13px}.about .sub{color:var(--muted);font-size:17px}.about p{font-size:14px;color:#50627a}.stats{display:flex;gap:18px;margin:25px 0}.stats div{flex:1}.stats strong{display:block;color:var(--blue);font-size:23px;white-space:nowrap}.stats span{display:block;font-size:11px;color:var(--muted)}.about-photo{height:400px;position:relative;border-radius:10px;background:linear-gradient(#dceaf6,#b8d6ee);overflow:hidden}.about-photo img{position:absolute;height:100%;max-width:none;left:50%;bottom:0;transform:translateX(-50%)}.about-list{display:grid;gap:24px}.about-list div{display:flex;gap:14px;align-items:flex-start;font-size:13px}.about-list div:first-letter{color:var(--blue)}.fine{display:block;font-size:11px;color:#78899e;margin-top:14px}.steps-section{padding-top:60px;padding-bottom:70px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:35px}.steps>div{border-top:2px solid #dbe9f9;padding:18px 8px 0;position:relative}.steps b{display:grid;place-items:center;background:white;color:var(--blue);border:2px solid #9cc8f5;border-radius:50%;width:44px;height:44px;margin-top:-42px;margin-bottom:22px}.steps h3{font-size:16px;margin:0 0 10px}.steps p{color:var(--muted);font-size:13px;margin:0}.cta{background:linear-gradient(110deg,#104478,#0c3260);color:white;padding:40px 0}.cta-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px;align-items:center}.cta h2{margin-bottom:10px}.cta p{max-width:550px;color:#d6e8fa}.btn.light{background:white;color:var(--blue)}.btn.disabled{opacity:.8;cursor:default}.cta-side{display:grid;justify-items:start;gap:18px}.cta-side>a:last-child{font-size:21px;font-weight:700}.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.reviews blockquote{margin:0;padding:25px 24px;background:#f9fbfe;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 18px #18395c0a;min-height:205px}.reviews blockquote:before{content:'“';font-size:42px;color:#a9c6e7;line-height:.7}.reviews p{font-size:14px;color:#52637a}.reviews footer{font-size:12px;font-weight:700;margin-top:16px}.contacts{padding-top:45px}.contact-grid{display:grid;grid-template-columns:40% 60%;gap:20px}.contact-item{display:flex;gap:14px;align-items:center;margin:19px 0;font-size:17px}.contact-item span{display:grid;place-items:center;color:var(--blue);background:#f1f7fd;border-radius:50%;width:38px;height:38px;font-size:23px}.contact-item p{margin:0}.map-panel{padding-right:20px}.map-placeholder{min-height:320px;border-radius:10px;background:repeating-linear-gradient(28deg,transparent 0 28px,#dce7f2 29px 32px,transparent 33px 75px),repeating-linear-gradient(112deg,#f0f5f7 0 43px,#e6eff4 44px 50px,#f0f5f7 51px 95px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:14px}.map-placeholder span{font-size:42px;color:#e04747}.map-placeholder a{color:var(--blue);font-size:13px;font-weight:700;background:white;padding:10px;border-radius:6px}.footer{border-top:1px solid var(--line);padding:26px 0}.footer-in{display:flex;justify-content:space-between;gap:30px;align-items:center}.footer nav{display:flex;gap:18px;font-size:12px}.footer b{font-size:12px}@media(max-width:1050px){.header-in{gap:12px}.nav{gap:10px}.phone{display:none}.hero-inner{grid-template-columns:60% 40%}.hero h1{font-size:52px}.hero-actions{flex-wrap:wrap}.hero-actions .btn{flex:auto}.about-grid{grid-template-columns:1fr 1fr}.about-list{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}}@media(max-width:700px){.wrap{width:min(100% - 32px,1180px)}.header-in{min-height:72px}.logo{min-width:0}.logo b{font-size:12px}.header .btn.small{display:none}.menu-toggle{display:block;margin-left:auto;background:none;border:0;font-size:25px;color:var(--blue)}.nav{display:none;position:absolute;left:0;right:0;top:72px;background:white;padding:20px;box-shadow:0 12px 18px #142f4819;flex-direction:column}.nav.open{display:flex}.hero-inner{display:flex;flex-direction:column}.hero-copy{padding:36px 0 10px}.hero h1{font-size:44px}.hero-copy>p{font-size:15px}.benefits{grid-template-columns:repeat(2,1fr)}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.hero-actions .btn:first-child{grid-column:1/-1}.hero-portrait{min-height:370px}.hero-portrait picture img{left:50%;transform:translateX(-50%);height:100%}.doctor-tag{bottom:15px;right:0}.section{padding:45px 0}.disease-grid{grid-template-columns:repeat(2,1fr);gap:12px}.disease-art{height:110px}.disease-body{padding:14px 12px 35px;min-height:185px}.disease h3{font-size:14px}.disease p{font-size:12px}.about-grid{grid-template-columns:1fr}.about-photo{height:330px}.about-list{grid-column:auto;grid-template-columns:1fr 1fr;gap:15px}.steps{grid-template-columns:1fr 1fr;row-gap:40px}.cta-grid,.contact-grid{grid-template-columns:1fr}.reviews{grid-template-columns:1fr}.footer-in{flex-direction:column;align-items:flex-start}.footer nav{flex-wrap:wrap}.section-heading{align-items:flex-start}.section-heading>a{white-space:normal}.stats{gap:8px}.stats strong{font-size:19px}}@media(max-width:380px){.disease-grid{grid-template-columns:1fr}.disease-art{height:150px}.disease-body{min-height:130px}}

/* Hero refinement v3 — approved visual direction */
.header-in{min-height:76px}.logo-icon{width:35px;height:49px;display:flex;align-items:center;justify-content:center;flex:0 0 35px}.logo-icon img{width:100%;height:100%;object-fit:contain}.logo-icon.logo-missing:after{content:'♧';font-size:36px;color:#1c77d5}
.hero{position:relative;background:linear-gradient(95deg,rgba(250,252,255,.98) 0%,rgba(244,249,254,.96) 40%,rgba(218,236,249,.66) 75%,rgba(233,243,252,.45) 100%),radial-gradient(ellipse at 71% 36%,#b4d0e5 0%,#f7fbff 67%)}
.hero:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.28;background:linear-gradient(90deg,transparent 47%,#b3cadb44 48%,transparent 50%,#c1d6e544 60%,transparent 62%,#b1d0e644 76%,transparent 78%);filter:blur(16px)}
.hero:after{content:'';position:absolute;top:0;right:0;bottom:0;width:clamp(80px,13vw,210px);background:url('../images/spine-from-approved-mockup.webp') center right / auto 100% no-repeat;opacity:.72;mask-image:linear-gradient(to right,transparent 0%,black 40%);pointer-events:none}
.hero-inner{grid-template-columns:57% 43%;min-height:485px}.hero-copy{padding:36px 0 24px}.hero h1{font-size:clamp(44px,4.15vw,58px);line-height:1.04;margin:12px 0 12px;letter-spacing:-.045em}.hero-copy>p{font-size:15px;max-width:480px;line-height:1.45;margin:0}.eyebrow{font-size:11px;letter-spacing:.035em}.benefits{margin:20px 0 19px;max-width:520px;gap:6px}.benefits span{width:44px;height:44px;font-size:25px;margin-bottom:7px}.benefits div{font-size:10px}.hero-actions{max-width:680px;gap:8px}.hero-actions .btn{font-size:11px;padding:11px 10px;min-height:48px;box-shadow:none}.hero-portrait{min-height:455px;z-index:1}.hero-portrait .halo{background:radial-gradient(circle,#c3deef77 0%,#e9f3fa55 55%,transparent 75%)}.hero-portrait picture img{height:91%;left:-11%}.doctor-tag{right:2%;bottom:26px;padding:13px 17px;font-size:11px;border-radius:9px}.doctor-tag small{font-size:10px}.hero-handwriting{position:absolute;right:0;top:24%;z-index:3;color:#315879;font-family:'Brush Script MT','Segoe Script',cursive;font-style:italic;font-size:clamp(14px,1.35vw,21px);line-height:1.35;transform:rotate(-5deg);text-shadow:0 1px 8px white}.signature-line{display:block;text-align:center;font-size:29px;margin-top:4px}.section{padding-top:49px;padding-bottom:49px}
@media(max-width:1050px){.hero-inner{grid-template-columns:59% 41%}.hero h1{font-size:48px}.hero-handwriting{right:-8px;top:19%}.hero-portrait picture img{height:86%}}
@media(max-width:700px){.hero-inner{display:flex;min-height:0}.hero-copy{padding:29px 0 10px}.hero h1{font-size:clamp(39px,10vw,48px)}.hero-copy>p{font-size:14px}.hero:after{width:90px;opacity:.35}.hero-portrait{min-height:325px}.hero-portrait picture img{height:100%;left:50%}.hero-handwriting{right:0;top:16%;font-size:14px}.doctor-tag{bottom:12px;right:0}.benefits{grid-template-columns:repeat(4,1fr);gap:5px}.benefits div{font-size:9px}.benefits span{width:39px;height:39px}.hero-actions{grid-template-columns:1fr 1fr}.hero-actions .btn{font-size:11px}.hero-actions .btn:first-child{grid-column:1/-1}}
@media(max-width:420px){.hero-handwriting{display:none}.benefits{grid-template-columns:repeat(2,1fr)}}


/* V4: visual refinements from approved mockup. Retains original logo asset. */
.hero{background:linear-gradient(90deg,rgba(249,252,255,.97) 0%,rgba(247,251,255,.94) 39%,rgba(236,246,252,.82) 65%,rgba(234,246,254,.50) 100%),url('../images/hero-medical-ambient.webp') right center/55% 100% no-repeat,#edf6fc}
.hero:before{opacity:.12}
.hero:after{width:clamp(90px,13vw,190px);opacity:.90}
.hero-inner{grid-template-columns:54% 46%;min-height:480px}
.hero h1{font-size:clamp(43px,3.95vw,56px)}
.hero-copy>p{max-width:465px}
.hero-portrait picture img{height:102%;left:-19%}
.hero-handwriting{right:4%;top:20%}
.hero-actions{max-width:640px}
.disease-art{background-position:center;background-size:cover}
.disease-art:before,.disease-art span{display:none}
.disease-art.art1{background-image:url('../images/disease-1.webp')}
.disease-art.art2{background-image:url('../images/disease-2.webp')}
.disease-art.art3{background-image:url('../images/disease-3.webp')}
.disease-art.art4{background-image:url('../images/disease-4.webp')}
@media(max-width:1050px){.hero-inner{grid-template-columns:57% 43%}.hero-portrait picture img{left:-20%;height:96%}}
@media(max-width:700px){.hero{background:linear-gradient(95deg,#f8fbffeb,#e5f2fbee),url('../images/hero-medical-ambient.webp') right center/cover}.hero-portrait picture img{left:50%;height:100%}.hero-inner{display:flex}.hero-handwriting{right:1%;top:12%}}


/* ===== HERO: финальная настройка ===== */

/* Единый новый фон */
.hero {
    background: #edf6fc url('../images/hero-bg.webp')
        center center / cover no-repeat !important;
    overflow: hidden;
}

/* Убираем старые декоративные слои */
.hero::before,
.hero::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Убираем старый световой ореол */
.hero-portrait .halo {
    display: none !important;
}

/* Увеличиваем рукописную надпись */
.hero-handwriting {
    font-size: 30px !important;
    line-height: 1.4 !important;
    right: 3% !important;
    top: 18% !important;
    max-width: 280px !important;
    transform: rotate(-5deg);
    z-index: 5;
}

/* Декоративный элемент под подписью */
.hero-handwriting .signature-line {
    display: block;
    font-size: 34px;
    margin-top: 10px;
    text-align: center;
}

/* Портрет остаётся поверх фона */
.hero-portrait picture {
    position: relative;
    z-index: 2;
}

/* Карточка врача */
.doctor-tag {
    z-index: 6;
}

@media (max-width: 700px) {
    .hero {
        background-position: 62% center !important;
    }

    .hero-handwriting {
        font-size: 21px !important;
        right: 2% !important;
        top: 10% !important;
    }
}


/* ===== Возвращаем врача в Hero ===== */

.hero-portrait {
    position: relative !important;
    align-self: stretch;
    min-height: 480px;
}

.hero-portrait picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    z-index: 2 !important;
    overflow: visible !important;
}

.hero-portrait picture img {
    display: block !important;
    position: absolute !important;
    height: 102% !important;
    width: auto !important;
    max-width: none !important;
    left: -19% !important;
    bottom: 0 !important;
    top: auto !important;
    object-fit: contain !important;
    object-position: bottom center !important;
}

.hero-handwriting {
    z-index: 5 !important;
}

.doctor-tag {
    position: absolute !important;
    z-index: 6 !important;
}

@media (max-width: 700px) {
    .hero-portrait {
        min-height: 380px;
    }

    .hero-portrait picture img {
        height: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ===================================
   ABOUT DOCTOR — APPROVED DESIGN
=================================== */

.about-section {
  padding: 75px 0 85px;
  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #f8fbff 65%,
    #ffffff 100%
  );
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .55fr);
  gap: 42px;
  align-items: center;
}

.about-content {
  min-width: 0;
}

.about-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  color: #53749a;
  margin-bottom: 20px;
}

.about-content h2 {
  margin: 0 0 20px;
  color: #102b52;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.about-specialty {
  color: #617590;
  font-size: 19px;
  margin: 0 0 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-stats strong {
  color: #1467cb;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
}

.about-stats span {
  color: #647792;
  font-size: 13px;
  line-height: 1.4;
}

.about-description {
  font-size: 16px;
  line-height: 1.7;
  color: #465d7b;
  margin: 0 0 17px;
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 15px 23px;
  border: 1px solid #81b7f8;
  border-radius: 7px;
  color: #0867ce;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.about-button:hover {
  background: #1467cb;
  color: #fff;
}

.about-note {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #8392a5;
}

/* Doctor photograph */

.about-photo {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  background: #e7f0f8;
}

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

/* Features */

.about-features {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #102b52;
  font-size: 14px;
  line-height: 1.45;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #086bdb;
  font-size: 25px;
  line-height: 1;
}

/* Responsive */

@media (max-width: 1100px) {
  .about-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
  }

  .about-features {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .about-feature {
    flex: 1 1 170px;
  }
}

@media (max-width: 700px) {
  .about-section {
    padding: 50px 0;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .about-content h2 {
    font-size: 33px;
  }

  .about-specialty {
    font-size: 16px;
  }

  .about-stats {
    gap: 10px;
  }

  .about-stats strong {
    font-size: 23px;
  }

  .about-photo {
    height: 440px;
  }

  .about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px 14px;
  }

  .about-feature {
    font-size: 13px;
  }
}


/* ==========================================
   FIX — БЛОК О ВРАЧЕ
   Три колонки как в утверждённом макете
========================================== */

@media (min-width: 1101px) {

  .about-section .about-layout {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1.35fr)
      minmax(0, 0.95fr)
      minmax(0, 0.65fr) !important;
    gap: 32px !important;
    align-items: center !important;
  }

  .about-section .about-content {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  .about-section .about-photo {
    grid-column: 2 !important;
    width: 100% !important;
    height: 440px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  .about-section .about-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .about-section .about-features {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    min-width: 0 !important;
  }

  .about-section .about-feature {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .about-section .about-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

}

/* Планшеты */
@media (min-width: 701px) and (max-width: 1100px) {
  .about-section .about-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }

  .about-section .about-features {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
}

/* Телефоны */
@media (max-width: 700px) {
  .about-section .about-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 26px !important;
  }

  .about-section .about-photo {
    width: 100% !important;
    height: 400px !important;
  }

  .about-section .about-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
}


/* Финальная подгонка блока «О враче» */

@media (min-width: 1101px) {

  .about-section .about-layout {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(0, .9fr)
      minmax(0, .75fr) !important;
    gap: 30px !important;
  }

  .about-content h2 {
    font-size: clamp(30px, 2.65vw, 42px) !important;
    margin-bottom: 15px !important;
  }

  .about-specialty {
    margin-bottom: 24px !important;
  }

  .about-stats {
    margin-bottom: 25px !important;
  }

  .about-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  .about-section .about-photo {
    height: 450px !important;
  }

  .about-section .about-feature {
    font-size: 14px !important;
  }

  .about-section .about-features {
    gap: 26px !important;
  }

}


/* ====================================
   О ВРАЧЕ — КРУПНЫЕ ИКОНКИ И ТЕКСТ
==================================== */

.about-section .about-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 34px !important;
}

.about-section .about-feature {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #102b52 !important;
}

.about-section .feature-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    color: #086bdb !important;
}

.about-section .feature-icon svg {
    display: block;
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1100px) {
    .about-section .about-features {
        gap: 24px !important;
    }

    .about-section .about-feature {
        font-size: 15px !important;
    }
}

@media (max-width: 700px) {
    .about-section .about-features {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .about-section .about-feature {
        font-size: 16px !important;
    }
}


/* ЭТАПЫ ЛЕЧЕНИЯ */

.treatment-process {
  padding: 55px 0 62px;
  background: #fff;
}

.treatment-process h2 {
  margin: 0 0 38px;
  color: #102b52;
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 750;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.process-step {
  position: relative;
  min-width: 0;
}

.process-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-bottom: 14px;
}

.process-step:not(:last-child) .process-top::after {
  content: "→";
  position: absolute;
  left: 126px;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  color: #c9d8e9;
  text-align: right;
  font-size: 24px;
  font-weight: 300;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 22px rgba(13,70,135,.10);
  color: #0873e8;
}

.process-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1.5px solid #2c8aff;
  border-radius: 50%;
  color: #086bd6;
  background: white;
  font-weight: 700;
  font-size: 17px;
}

.process-step h3 {
  color: #102b52;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 700;
}

.process-step p {
  color: #64758f;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 210px;
}

/* БАННЕР */

.spine-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg,
    #1265a8 0%, #0c4e8b 43%, #092c52 100%);
}

.spine-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 37%;
  background:
    linear-gradient(90deg,
      rgba(9,58,112,.05),
      rgba(10,65,120,.65) 75%,
      #0c4e8b 100%),
    url('../images/spine-cta.webp') center / cover no-repeat;
}

.spine-cta-inner {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 40px;
  align-items: center;
  min-height: 230px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.spine-cta-content {
  padding-left: clamp(160px, 19vw, 300px);
}

.spine-cta h2 {
  color: #fff;
  font-size: clamp(26px, 2.4vw, 35px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.spine-cta p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 500px;
}

.spine-cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 5px;
  background: #fff;
  color: #0866ce;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.spine-cta-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.spine-cta-phone {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* АДАПТИВ */

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 35px;
  }

  .process-step .process-top::after {
    display: none;
  }

  .spine-cta-content {
    padding-left: 0;
  }

  .spine-cta::before {
    opacity: .22;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .treatment-process {
    padding: 40px 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .process-step {
    display: grid;
    grid-template-columns: 105px 1fr;
    column-gap: 12px;
  }

  .process-top {
    grid-row: span 2;
    align-self: start;
  }

  .process-step h3 {
    margin-top: 4px;
  }

  .spine-cta-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .spine-cta-contact {
    gap: 15px;
  }
}

/* ==========================================
   ИСПРАВЛЕНИЕ ЭТАПОВ ЛЕЧЕНИЯ
   ========================================== */

.process-top {
    position: relative;
    display: block;
    width: 100%;
    height: 82px;
    margin-bottom: 12px;
}

.process-icon {
    position: absolute;
    top: 10px;
    left: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.process-icon svg {
    width: 31px;
    height: 31px;
}

.process-number {
    position: absolute;
    top: 0;
    left: 53px;
    width: 35px;
    height: 35px;
    z-index: 2;
    background: #fff;
    border: 1.5px solid #1680ed;
    border-radius: 50%;
    font-size: 17px;
}

/* Стрелка между этапами */
.process-step:not(:last-child) .process-top::after {
    content: "→";
    display: block;
    position: absolute;
    top: 25px;
    left: auto;
    right: 5px;
    transform: none;
    color: #cbdbea;
    font-size: 26px;
}

/* ==========================================
   ИСПРАВЛЕНИЕ ИЛЛЮСТРАЦИИ БАННЕРА
   ========================================== */

.spine-cta::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    opacity: 1;

    background-image:
        linear-gradient(
            90deg,
            rgba(8, 57, 107, 0) 0%,
            rgba(9, 65, 119, 0.12) 50%,
            #0c4e8b 100%
        ),
        url('../images/spine-cta.webp');

    background-repeat: no-repeat;
background-position: center, left center;
background-size: 100% 100%, auto 100%;
}

/* Адаптив */
@media (max-width: 900px) {
    .spine-cta::before {
        width: 100%;
        opacity: .28;
        background-position: center, left center;
        background-size: 100% 100%, auto 100%;
    }
}

@media (max-width: 600px) {
    .process-top {
        width: 100px;
        height: 82px;
    }

    .process-step:not(:last-child) .process-top::after {
        display: none;
    }
}


/* Этапы лечения — расположение как в прототипе */

.process-top {
    position: relative;
    display: block;
    width: 100%;
    height: 75px;
    margin-bottom: 12px;
}

/* Иконка слева */
.process-icon {
    position: absolute;
    top: 12px;
    left: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(20, 60, 110, .07);
}

/* Номер выше и правее иконки */
.process-number {
    position: absolute;
    top: 0;
    left: 57px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #1680ff;
    border-radius: 50%;
    background: #fff;
    color: #086bd6;
    font-size: 17px;
    font-weight: 600;
    z-index: 2;
}

/* Линия со стрелкой от номера вправо */
.process-step:not(:last-child) .process-top::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 91px;
    right: 8px;
    height: 1px;
    background: #d0deee;
    transform: none;
}

/* Наконечник стрелки */
.process-step:not(:last-child) .process-top::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #d0deee;
    border-right: 1.5px solid #d0deee;
    transform: rotate(45deg);
}

/* Последний этап — без стрелки */
.process-step:last-child .process-top::before,
.process-step:last-child .process-top::after {
    display: none;
}


/* ========================================
   ОТЗЫВЫ ПАЦИЕНТОВ — ПО ПРОТОТИПУ
======================================== */

.reviews-section {
    background: #f8fbff;
    padding: 65px 0 75px;
}

.reviews-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
}

.reviews-heading h2 {
    margin: 0;
    color: #112b50;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.reviews-all {
    color: #086bd6;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.reviews-all:hover {
    color: #004d9f;
}

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

.review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 235px;
    padding: 25px 28px 24px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(25, 62, 105, 0.055);
}

.review-quote {
    height: 29px;
    color: #c7d1df;
    font-family: Georgia, serif;
    font-size: 51px;
    font-weight: bold;
    line-height: 1;
}

.review-text {
    margin: 6px 0 22px;
    color: #40516b;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}

.review-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.review-bottom strong {
    color: #112b50;
    font-size: 15px;
    font-weight: 700;
}

.review-bottom span {
    color: #8290a5;
    font-size: 13px;
}

/* Планшеты */
@media (max-width: 950px) {
    .reviews-grid {
        gap: 15px;
    }

    .review-card {
        padding: 22px;
    }

    .review-text {
        font-size: 15px;
    }
}

/* Мобильная версия */
@media (max-width: 700px) {
    .reviews-section {
        padding: 45px 0 55px;
    }

    .reviews-heading {
        align-items: flex-start;
        margin-bottom: 25px;
    }

    .reviews-heading h2 {
        font-size: 30px;
    }

    .reviews-all {
        font-size: 13px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        min-height: 0;
        padding: 24px;
    }

    .review-text {
        font-size: 16px;
    }
}



/* ========================================
   КОМПАКТНЫЕ ОТСТУПЫ МЕЖДУ ЭКРАНАМИ
   ======================================== */

/* Общий ритм секций */
main > section:not(.hero) {
    padding-top: 55px;
    padding-bottom: 55px;
}

/* Блок заболеваний */
#diseases {
    padding-top: 55px;
    padding-bottom: 55px;
}

/* Блок о враче */
#about {
    padding-top: 55px;
    padding-bottom: 55px;
}

/* Этапы лечения */
#steps {
    padding-top: 55px;
    padding-bottom: 55px;
}

/* Синий баннер */
#mri {
    padding-top: 0;
    padding-bottom: 0;
}

/* Если баннер идёт сразу после этапов */
#steps + #mri {
    margin-top: 0;
}

/* Мобильная версия */
@media (max-width: 700px) {
    main > section:not(.hero) {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    #mri {
        padding-top: 0;
        padding-bottom: 0;
    }
}


/* =========================================
   КОНТАКТЫ — ПО УТВЕРЖДЁННОМУ ПРОТОТИПУ
   ========================================= */

.contacts-section {
  padding: 55px 0 60px !important;
  background: #fff;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 39% 1fr;
  gap: 65px;
  align-items: start;
}

.contacts-section h2 {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.2;
  color: #112b50;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 21px;
  color: #142e50;
  font-size: 18px;
  line-height: 1.5;
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover {
  color: #086ad6;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #f1f7ff;
  color: #0872e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contacts-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  margin-top: 5px;
  background: #0969d3;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 92, 195, .12);
}

.contacts-button:hover {
  background: #0758b4;
}

.contacts-map {
  min-width: 0;
}

.map-frame {
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef5fb;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   ПОДВАЛ
   ========================================= */

.site-footer {
  background: #fff;
  border-top: 1px solid #e6edf5;
  padding: 26px 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1fr;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #112b50;
  text-decoration: none;
}

.footer-brand img {
  width: 46px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-brand-text strong {
  font-size: 13px;
  line-height: 1.3;
}

.footer-brand-text small {
  font-size: 11px;
  color: #61748f;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 19px;
}

.footer-nav a {
  font-size: 12px;
  color: #183253;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #086ad6;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  text-align: right;
  color: #526985;
  font-size: 11px;
}

.footer-legal small {
  font-size: 10px;
  line-height: 1.5;
}

/* =========================================
   АДАПТИВ
   ========================================= */

@media (max-width: 900px) {
  .contacts-layout {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-legal {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 650px) {
  .contacts-section {
    padding: 38px 0 42px !important;
  }

  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contacts-section h2 {
    font-size: 27px;
  }

  .contact-line {
    font-size: 16px;
  }

  .map-frame {
    height: 280px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-nav {
    gap: 14px 20px;
  }

  .footer-legal {
    grid-column: auto;
  }
}


/* ===== Выпадающее меню операций ===== */

.header .nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.header .nav-dropdown-link {
    white-space: nowrap;
}

.header .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.header .nav-dropdown-toggle span {
    display: inline-block;
    transition: transform .2s ease;
}

.header .nav-dropdown.is-open .nav-dropdown-toggle span {
    transform: rotate(180deg);
}

.header .nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e9f1;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(14, 43, 75, .12);
}

.header .nav-dropdown.is-open .nav-submenu,
.header .nav-dropdown:hover .nav-submenu,
.header .nav-dropdown:focus-within .nav-submenu {
    display: block;
}

.header .nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    white-space: nowrap;
    text-decoration: none;
}

.header .nav-submenu a:hover {
    background: #f1f6fc;
}

@media (max-width: 1100px) {
    .header .nav-dropdown {
        flex-wrap: wrap;
        width: 100%;
    }

    .header .nav-dropdown-toggle {
        margin-left: auto;
        padding: 8px 12px;
    }

    .header .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        margin-top: 5px;
    }

    .header .nav-dropdown:not(.is-open) .nav-submenu {
        display: none;
    }
}

/* Компактная шапка с расширенным меню */
@media (min-width: 1101px) {
    .header .header-in {
        gap: 12px;
    }

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

    .header .nav > a,
    .header .nav-dropdown-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .header .nav-dropdown {
        flex-shrink: 0;
    }

    .header .nav-dropdown-toggle {
        padding-left: 3px;
        padding-right: 3px;
    }

    .header .phone,
    .header .header-in > .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}


/* ===== Адаптивное меню с пунктом «Ещё» ===== */

@media (min-width: 1101px) {
    .header .header-in {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .header .logo,
    .header .phone,
    .header .header-in > .btn {
        flex-shrink: 0;
    }

    .header .nav {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .header .nav > a,
    .header .nav > .nav-dropdown {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header .nav > a,
    .header .nav-dropdown-link {
        font-size: 12px;
        white-space: nowrap;
    }

    .header .nav-more {
        position: relative;
        flex-shrink: 0;
        margin-left: auto;
    }

    .header .nav-more[hidden] {
        display: none !important;
    }

    .header .nav-more-toggle {
        padding: 7px 10px;
        border: 0;
        background: transparent;
        color: #102a4d;
        font-size: 19px;
        font-weight: 700;
        cursor: pointer;
    }

    .header .nav-more-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1100;
        min-width: 225px;
        padding: 10px;
        background: #fff;
        border: 1px solid #e2e9f1;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(14, 43, 75, .15);
    }

    .header .nav-more.is-open .nav-more-menu {
        display: block;
    }

    .header .nav-more-menu > a {
        display: block;
        padding: 10px 12px;
        color: #102a4d;
        font-size: 13px;
        text-decoration: none;
        white-space: nowrap;
        border-radius: 7px;
    }

    .header .nav-more-menu > a:hover {
        background: #f1f6fc;
    }

    .header .nav-more-menu .nav-dropdown {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        padding: 0;
    }

    .header .nav-more-menu .nav-dropdown-link {
        flex: 1;
        padding: 10px 12px;
    }

    .header .nav-more-menu .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }

    .header .nav-more-menu .nav-dropdown:not(.is-open) .nav-submenu {
        display: none;
    }
}


/* ===== Запрет переноса элементов шапки ===== */

@media (min-width: 1101px) {
    .header .header-in {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
    }

    .header .nav {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .header .nav > a,
    .header .nav > .nav-dropdown,
    .header .nav > .nav-more {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header .nav > a {
        white-space: nowrap;
    }

    .header .nav-dropdown-link {
        white-space: nowrap;
    }

    .header .logo,
    .header .phone,
    .header .header-in > .btn {
        flex-shrink: 0;
    }

    .header .nav-more {
        margin-left: 0;
    }
}


/* ===== УНИВЕРСАЛЬНАЯ ПОЛОСА ЗАПИСИ ===== */

.footer-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #10558b 0%, #0a376b 55%, #082b55 100%);
    color: #fff;
}

.footer-cta-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 230px;
    align-items: center;
    gap: 28px;
    min-height: 205px;
    position: relative;
}

/* Изображение в полосе записи */
.footer-cta-art {
    position: relative;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    pointer-events: none;
    overflow: hidden;
}


.footer-cta-art::before {
    content: "";
    position: absolute;
    z-index: 0;

    left: 50%;
    top: 0;
    bottom: 0;

    width: 440px;
    transform: translateX(-50%);

    background-image: url('/images/footer-spine.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: auto 115%;

    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 72%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 72%,
        transparent 100%
    );
}





.footer-cta-copy {
    padding: 25px 0;
}

.footer-cta-copy h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(25px, 2.3vw, 36px);
    font-weight: 750;
    line-height: 1.15;
}

.footer-cta-copy p {
    max-width: 550px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.footer-cta-btn-white {
    background: #fff;
    color: #0863c5;
}

.footer-cta-btn-white:hover {
    background: #eaf3ff;
}

.footer-cta-btn-outline {
    border-color: rgba(255,255,255,.8);
    background: transparent;
    color: #fff;
}

.footer-cta-btn-outline:hover {
    background: rgba(255,255,255,.12);
}

.footer-cta-phone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.footer-cta-phone a {
    color: #fff;
    font-size: 19px;
    font-weight: 750;
    white-space: nowrap;
    text-decoration: none;
}

.footer-cta-phone small {
    color: rgba(255,255,255,.85);
    font-size: 12px;
}

/* ===== ОБНОВЛЁННЫЙ ПОДВАЛ ===== */

.site-footer .footer-nav {
    gap: 12px 18px;
}

.site-footer .footer-nav a {
    white-space: nowrap;
}

.site-footer .footer-legal a {
    color: #526985;
    font-size: 10px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 1100px) {
    .footer-cta-grid {
        grid-template-columns: 165px minmax(0, 1fr);
        gap: 20px;
    }

    .footer-cta-phone {
        grid-column: 2;
        padding-bottom: 22px;
    }

    .footer-cta-copy {
        padding-bottom: 5px;
    }
}

@media (max-width: 650px) {
    .footer-cta-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .footer-cta-art {
        display: none;
    }

    .footer-cta-copy {
        padding: 0 0 22px;
    }

    .footer-cta-copy h2 {
        font-size: 27px;
    }

    .footer-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-cta-btn {
        width: 100%;
    }

    .footer-cta-phone {
        grid-column: auto;
        padding: 16px 0 0;
        border-top: 1px solid rgba(255,255,255,.2);
    }

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

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-legal {
        align-items: flex-start;
        text-align: left;
    }
}

/* ===== ФУТЕР — УВЕЛИЧЕННАЯ ПОЛОСА ЗАПИСИ ===== */

@media (min-width: 901px) {

    .footer-cta-grid {
        min-height: 360px;
        grid-template-columns: 260px minmax(0, 1fr) 250px;
        gap: 28px;
    }

    .footer-cta-art {
        align-self: stretch;
        min-height: 400px;
    }

    .footer-cta-art::before {
        top: 0;
        bottom: 0;
        left: 50%;
        width: 440px;
        height: 100%;
        transform: translateX(-50%);

        background-position: center bottom;
        background-size: auto 95%;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 72%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 72%,
            transparent 100%
        );
    }

    /* График работы */
    .footer-cta-phone small {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 6px;
    }
}



/* Главная: цитата над портретом */
.hero .hero-portrait { position: relative; }
.hero .home-hero-quote {
 position:absolute; z-index:5; top:38px; right:-12px; width:235px;
 color:#234c75; font-family:Georgia,"Times New Roman",serif;
 font-size:19px; font-style:italic; line-height:1.4; text-align:center;
 transform:rotate(-4deg); text-shadow:0 1px 8px rgba(255,255,255,.9);
 pointer-events:none;
}
@media (min-width:701px) and (max-width:1050px) {
 .hero .home-hero-quote { top:22px; right:0; width:180px; font-size:15px; }
}
@media (max-width:700px) {
 .hero .home-hero-quote { top:12px; right:0; width:155px; font-size:14px; line-height:1.35; }
}
@media (max-width:380px) { .hero .home-hero-quote { display:none; } }

/* Главная: выравнивание основного текста */
.hero-copy > p, .disease-body p, .about-description,
.process-step p, .spine-cta-content p, .review-text,
.reviews blockquote p, .footer-cta-copy p {
 text-align:justify; text-align-last:left; hyphens:auto;
 -webkit-hyphens:auto; overflow-wrap:break-word;
}
@media (max-width:700px) {
 .hero-copy > p, .disease-body p, .about-description,
 .process-step p, .spine-cta-content p, .review-text,
 .reviews blockquote p, .footer-cta-copy p { line-height:1.6; }
}

/* Главная: абзацы выровнены по ширине, переносы для русского языка */
.hero .hero-copy > p, .about-section .about-description,
.disease-grid .disease-body p, .treatment-process .process-step p,
.spine-cta .spine-cta-content p, .reviews-section .review-text,
.contacts-section .contacts-info p {
  text-align: justify; text-align-last: left;
  -webkit-hyphens: auto; hyphens: auto;
  overflow-wrap: normal; word-break: normal;
}
@media(max-width:640px) {
  .hero .hero-copy > p, .about-section .about-description,
  .disease-grid .disease-body p, .treatment-process .process-step p,
  .spine-cta .spine-cta-content p, .reviews-section .review-text,
  .contacts-section .contacts-info p { line-height:1.6; }
}


/* ===== ГЛАВНАЯ: БАННЕР МРТ ===== */

.spine-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    color: #fff;
    background: linear-gradient(
        110deg,
        #1265a8 0%,
        #0c4e8b 43%,
        #092c52 100%
    );
}

.spine-cta .spine-cta-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 36px;
    min-height: 250px;
    padding: 30px 0;
}

@media (min-width: 901px) {

    .spine-cta::before {
        content: "";
        position: absolute;
        z-index: 0;

        left: max(24px, calc(50% - 590px));
        top: 0;
        bottom: 0;
        width: 315px;

        background-image: url('../images/spine-cta.webp');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: auto 88%;

        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                #000 12%,
                #000 78%,
                transparent 100%
            );
        mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                #000 12%,
                #000 78%,
                transparent 100%
            );
    }

    .spine-cta .spine-cta-content {
        padding-left: 315px;
        min-width: 0;
    }
}

.spine-cta .spine-cta-contact {
    min-width: 0;
}

.spine-cta .spine-cta-phone {
    font-size: clamp(15px, 1.25vw, 19px);
}

.spine-cta .spine-cta-content p {
    text-align: left;
}

/* Планшеты и телефоны */

@media (max-width: 900px) {

    .spine-cta .spine-cta-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spine-cta .spine-cta-content {
        padding-left: 0;
    }

    .spine-cta::before {
        content: "";
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        opacity: .16;

        background:
            url('../images/spine-cta.webp')
            left center / auto 100% no-repeat;
    }
}

@media (max-width: 600px) {

    .spine-cta .spine-cta-inner {
        width: calc(100% - 32px);
        padding: 30px 0;
    }
}

/* ===== ГЛАВНАЯ: ОТЗЫВЫ С РАСКРЫТИЕМ ===== */
.reviews-section .review-card { align-self: start; }
.reviews-section .review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  text-align: left;
  margin-bottom: 14px;
}
.reviews-section .review-card.is-expanded .review-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.reviews-section .op-review-toggle {
  order: 2;
  align-self: flex-start;
  border: 0;
  padding: 0;
  background: none;
  color: #086bd6;
  font: 700 13px/1.5 Arial, sans-serif;
  cursor: pointer;
  margin: 0 0 14px;
}
.reviews-section .review-bottom { order: 3; margin-top: auto; }
/* ===== ГЛАВНАЯ: БАННЕР МРТ — КОРРЕКЦИЯ ФИГУРЫ ===== */
@media (min-width: 901px) {
  .spine-cta::before {
    background-size: auto 100%;
    background-position: center center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 88%, transparent 100%);
  }
}

/* Выравнивание основного текста сайта по ширине, без кнопок и заголовков */
@media (max-width: 700px) {
  main p:not(.ngb-banner__eyebrow):not(.review-text),
  .review-card .review-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
  main h1,main h2,main h3,main h4,main a,main button {text-align:initial}
}

/* Заголовки на мобильных устройствах */
@media (max-width: 700px) {
    .section h2,
    .section-heading h2,
    .treatment-process h2,
    .op-page h2 {
        font-size: 23px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    /* Обычный текст */
    .op-page p,
    .section p {
        font-size: 15px;
        line-height: 1.6;
        text-align: justify;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

