:root {
      --red: #b51222;
      --red2: #e43c4b;
      --wine: #7f0d17;
      --dark: #17191d;
      --graphite: #252832;
      --text: #3f444d;
      --muted: #7d8490;
      --line: #e6e8ed;
      --soft: #f4f5f7;
      --white: #ffffff;
      --radius-xl: 42px;
      --radius-lg: 30px;
      --radius-md: 22px;
      --shadow: 0 28px 80px rgba(20, 24, 32, .13);
      --shadow-soft: 0 16px 44px rgba(20, 24, 32, .08);
    }

    * { 
        margin: 0;
        font-family: "PT Sans", sans-serif;
        box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Arial, "Helvetica Neue", sans-serif;
      background:
        radial-gradient(circle at 85% 5%, rgba(181,18,34,.08), transparent 28%),
        var(--soft);
      color: var(--text);
      line-height: 1.55;
    }

    button, input, textarea { font-family: inherit; }
    button { cursor: pointer; }
    a { color: inherit; text-decoration: none; }

    select {
    width: 100%;
    max-width: 500px;
    height: 48px;

    padding: 0 45px 0 16px;

    font-size: 16px;
    font-family: inherit;

    color: #333;
    background-color: #fff;

    border: 1px solid #d5d5d5;
    border-radius: 12px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;

    transition: border-color .2s, box-shadow .2s;
}


select:hover {
    border-color: #999;
}


select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,.15);
}


select option {
    font-size: 16px;
}


/* Мобильные */
@media (max-width: 600px) {

    select {
        height: 52px;
        font-size: 17px;
        border-radius: 14px;
    }

}

    .topline {
      background: var(--dark);
      color: rgba(255,255,255,.78);
      padding: 10px 5vw;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 14px;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 99999999;
      display: flex;
      justify-content: space-between;
      gap: 22px;
      align-items: center;
      padding: 16px 5vw;
      background: rgba(255,255,255,.94);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

    .burger{
      display:none;
    }

    .brand {
      border: 0;
      background: transparent;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 12px;
      text-align: left;
      color: var(--graphite);
    }

    .brand-mark {
      width: 175px;
      padding: 5px;
      margin-right: 5px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--red), var(--red2));
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 24px;
      font-weight: 900;
      box-shadow: 0 18px 42px rgba(181,18,34,.28);
      flex: 0 0 auto;
    }

    .brand strong {
      display: block;
      font-size: 18px;
      letter-spacing: -.02em;
      line-height: 1.1;
    }

    .brand span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      margin-top: 2px;
    }

    .logo{
      display: flex;
      justify-content: start;
      align-items: center;
    }

    .logo > span{
      line-height: 1.2;

    }

    .nav {
      /*display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 750px;
      flex-wrap: wrap;*/
    }

    .nav > ul{
      list-style-type: none;
      width: 850px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      flex-wrap: wrap;
    }

    .nav-btn {
        text-align: center;
      display: inline-block;
      border: 1px solid transparent;
      background: transparent;
      color: #41464f;
      padding: 9px 12px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 13.5px;
      transition: .18s ease;
      min-width: 75px;
    }

    .nav-btn:hover,
    .nav-btn.active {
      color: var(--red);
      background: rgba(181,18,34,.08);
      border-color: rgba(181,18,34,.16);
    }

    .btn {
      border: 0;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 9px;
      padding: 14px 22px;
      border-radius: 999px;
      background: var(--red);
      color: white;
      font-weight: 900;
      box-shadow: 0 18px 38px rgba(181,18,34,.25);
      transition: .2s ease;
      white-space: nowrap;
      cursor: pointer;
    }

    .btn:hover {
      transform: translateY(-2px);
      background: var(--wine);
    }

    .btn.light {
      background: white;
      color: var(--graphite);
      border: 1px solid var(--line);
      box-shadow: none;
    }

    .btn.dark {
      background: var(--graphite);
      box-shadow: none;
    }

    .btn.ghost {
      background: transparent;
      color: var(--red);
      border: 1px solid rgba(181,18,34,.22);
      box-shadow: none;
    }

    main {
      min-height: calc(100vh - 170px);
    }

    .page {
      animation: fade .22s ease both;
    }

    .page.active { display: block; }

    @keyframes fade {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .section {
      padding: 86px 5vw;
    }

    .container {
      max-width: 1240px;
      margin: 0 auto;
    }

    .hero {
      padding: 72px 5vw 86px;
      min-height: 720px;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
      gap: 54px;
      align-items: center;
      border-bottom: 1px solid var(--line);
      background:
        radial-gradient(circle at 82% 20%, rgba(181,18,34,.16), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f4f5f8 55%, #eceef3 100%);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--red);
      background: rgba(181,18,34,.08);
      border: 1px solid rgba(181,18,34,.16);
      border-radius: 999px;
      padding: 9px 15px;
      margin-bottom: 20px;
      font-weight: 900;
      font-size: 14px;
    }

    h1, h2, h3, h4 {
      margin: 0;
      color: var(--graphite);
      line-height: 1.08;
    }

    h1 {
      font-size: 78px;
      max-width: 920px;
    }

    h2 {
      font-size: 56px;
    }

    h3 {
      font-size: 25px;
    }

    h4 {
      font-size: 19px;
    }

    .lead {
      margin: 24px 0 34px;
      color: #575f6a;
      font-size: 20px;
      max-width: 760px;
    }

    .actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center;
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 34px;
      max-width: 840px;
    }

    .metric {
      background: rgba(255,255,255,.86);
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 22px;
      min-height: 118px;
    }

    .metric b {
      display: block;
      color: var(--red);
      font-size: 29px;
      line-height: 1;
      margin-bottom: 9px;
    }

    .metric span {
      color: var(--muted);
      font-weight: 700;
      font-size: 14px;
    }

    .hero-visual {
      height: 560px;
      border-radius: 46px;
      padding: 30px;
      color: white;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background-image: url("../assets/main.png");
      background-size: cover;
      background-position: center;
      box-shadow: 0px -60px 50px 0px rgba(34, 60, 80, 0.50) inset;
/*      box-shadow: var(--shadow);*/
    }

    /*.hero-visual:after {
      content: "";
      position: absolute;
      inset: 26px;
      border-radius: 34px;
      border: 1px solid rgba(255,255,255,.22);
      pointer-events: none;
    }*/

    .float-card {
      align-self: flex-end;
      width: min(100%, 300px);
      padding: 20px;
      border-radius: 26px;
      background: rgba(255,255,255,.95);
      color: var(--graphite);
      box-shadow: 0 24px 70px rgba(0,0,0,.2);
      position: relative;
      z-index: 2;
    }

    .float-card p {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .visual-copy {
      position: relative;
      z-index: 2;
      max-width: 500px;
    }

    .visual-copy h3 { color: white; }
    .visual-copy p {
      color: rgba(255,255,255,.76);
      margin: 12px 0 0;
      font-size: 16px;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 30px;
      margin-bottom: 42px;
    }

    .section-head p {
      max-width: 610px;
      margin: 0;
      color: var(--muted);
      font-size: 18px;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .card {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--shadow-soft);
    }

    .card.lift {
      transition: .2s ease;
    }

    .card.lift:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }

    .icon {
      width: 58px;
      height: 58px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      background: rgba(181,18,34,.08);
      color: var(--red);
      font-weight: 900;
      margin-bottom: 20px;
    }

    .card p,
    .text-muted,
    .sub-card p,
    .case-card p,
    .faq p,
    .offer-card p {
      color: var(--muted);
      margin: 12px 0 0;
    }

    .page-hero {
      padding: 72px 5vw 48px;
      background:
        radial-gradient(circle at 78% 18%, rgba(181,18,34,.12), transparent 32%),
        linear-gradient(135deg, #fff, #f3f4f7);
      border-bottom: 1px solid var(--line);
    }

    .page-hero-inner {
      max-width: 1240px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 40px;
      align-items: center;
    }

    .hero-stamp {
      width: 550px;
      height: 320px;
      border-radius: 38px;
      border: 1px solid var(--line);
/*      background: url("../assets/hero-stamp.jpg");*/
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: var(--shadow-soft);
      display: grid;
      place-items: center;
      text-align: center;
      color: #727b88;
      font-weight: 900;
      letter-spacing: .05em;
      margin: 0;
      padding: 0;
    }

    .hero-stamp > img{
      width:570px;
      object-fit: cover;

      margin: 0;
      padding: 0;
    }

    .hero-stamp-patient {
      width: 320px;
      height: 550px;
      border-radius: 38px;
      border: 1px solid var(--line);
/*      background: url("../assets/hero-stamp.jpg");*/
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: var(--shadow-soft);
      display: grid;
      place-items: center;
      text-align: center;
      color: #727b88;
      font-weight: 900;
      letter-spacing: .05em;
      margin: 0;
      margin-left: 125px;
      padding: 0;
    }

    .hero-stamp-patient > img{
      width:320px;
      object-fit: cover;

      margin: 0;
      padding: 0;
    }

    .about-slide {
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      min-height: 650px;
    }

    .about-photo {
      position: relative;
      width: 564px;
      height: 1254px;
      background: url("../assets/about-main.png");
      background-size: cover;
      background-position: center;
    }

    .about-photo-card {
      position: absolute;
      left: 28px;
      right: 28px;
      bottom: 28px;
      background: rgba(255,255,255,.95);
      color: var(--graphite);
      border-radius: 28px;
      padding: 24px;
      box-shadow: 0 22px 66px rgba(0,0,0,.16);
    }

    .about-copy {
      padding: clamp(34px, 5vw, 66px);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .about-copy p {
      color: #575f6a;
      font-size: 18px;
      margin: 20px 0 0;
    }

    .quote {
      border-left: 5px solid var(--red);
      background: #fafbfc;
      padding: 24px 26px;
      border-radius: 0 26px 26px 0;
      margin: 28px 0 8px;
      color: var(--graphite);
      font-weight: 900;
      font-size: 19px;
    }

    .service-layout {
      display: grid;
      grid-template-columns: 295px 1fr;
      gap: 24px;
      align-items: start;
    }

    .side-tabs {
      position: sticky;
      top: 104px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 14px;
      box-shadow: var(--shadow-soft);
    }

    .side-tabs button {
      width: 100%;
      border: 0;
      background: transparent;
      text-align: left;
      padding: 15px 16px;
      border-radius: 18px;
      color: var(--graphite);
      font-weight: 900;
      transition: .18s ease;
      margin-bottom: 4px;
    }

    .side-tabs button:hover,
    .side-tabs button.active {
      background: var(--red);
      color: white;
    }

    .service-panel {
      display: none;
      background: white;
      border: 1px solid var(--line);
      border-radius: 34px;
      padding: 34px;
      box-shadow: var(--shadow-soft);
    }

    .service-panel.active { display: block; }

    .sub-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 28px;
    }

    .sub-card {
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px;
      background: #fafbfc;
    }

    .mini-cta {
      margin-top: 28px;
      border-radius: 28px;
      background: linear-gradient(135deg, var(--graphite), #3b404b);
      color: white;
      padding: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .mini-cta h3 { color: white; }
    .mini-cta p { color: rgba(255,255,255,.74); margin: 8px 0 0; }

    .offer-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .offer-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 32px;
      padding: 30px;
      min-height: 290px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
    }

    .offer-card.featured {
      background:
        radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 33%),
        linear-gradient(135deg, var(--red), var(--red2));
      color: white;
      border: 0;
    }

    .offer-card.featured h3,
    .offer-card.featured p,
    .offer-card.featured .offer-label { color: white; }

    .offer-label {
      display: inline-flex;
      margin-bottom: 18px;
      color: var(--red);
      background: rgba(181,18,34,.08);
      border-radius: 999px;
      padding: 8px 12px;
      font-weight: 900;
      font-size: 13px;
    }

    .offer-card.featured .offer-label {
      background: rgba(255,255,255,.18);
    }

    .steps {
      counter-reset: step;
      display: grid;
      gap: 16px;
    }

    .step {
      counter-increment: step;
      background: white;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px;
      display: grid;
      grid-template-columns: 62px 1fr;
      gap: 18px;
      align-items: start;
    }

    .step:before {
      content: counter(step, decimal-leading-zero);
      width: 56px;
      height: 56px;
      border-radius: 18px;
      background: var(--red);
      color: white;
      display: grid;
      place-items: center;
      font-weight: 900;
    }

    .step p { margin: 6px 0 0; color: var(--muted); }

    .case-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .case-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 32px;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
    }

    .case-visual {
      min-height: 260px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      background: linear-gradient(135deg, #e9ebf0, #ccd2dc);
      color: #7b8491;
      font-weight: 900;
      letter-spacing: .06em;
    }

    .case-visual div {
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.3);
      border-right: 1px solid rgba(255,255,255,.5);
    }

    .case-body { padding: 26px; }

    .doctor {
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 24px;
      align-items: center;
    }

    .doctor-photo {
      min-height: 220px;
      border-radius: 30px;
      background:
        radial-gradient(circle at 50% 28%, rgba(255,255,255,.76) 0 18%, transparent 19%),
        linear-gradient(135deg, #e1e4ea, #b7bec9);
      display: grid;
      place-items: end center;
      color: #737c89;
      font-weight: 900;
      text-align: center;
      padding: 20px;
    }

    .badges {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 16px;
    }

    .badge {
      display: inline-flex;
      background: rgba(181,18,34,.08);
      color: var(--red);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 900;
    }

    .promo-band {
      background:
        radial-gradient(circle at 88% 12%, rgba(181,18,34,.22), transparent 30%),
        linear-gradient(135deg, #20232b, #343945);
      border-radius: 42px;
      padding: clamp(32px, 5vw, 56px);
      color: white;
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 30px;
      align-items: center;
    }

    .promo-band h2 { color: white; }
    .promo-band p { color: rgba(255,255,255,.74); }

    .price-pill {
      background: white;
      color: var(--graphite);
      border-radius: 32px;
      padding: 32px;
      text-align: center;
    }

    .price-pill b {
      display: block;
      color: var(--red);
      font-size: 58px;
      line-height: 1;
      margin-bottom: 8px;
    }

    .faq {
      background: white;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px;
      margin-bottom: 14px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: .92fr 1.08fr;
      gap: 24px;
    }

    .contact-box {
      background: var(--dark);
      color: white;
      border-radius: 38px;
      padding: 38px;
    }

    .contact-box h2 { color: white; }
    .contact-box p { color: rgba(255,255,255,.74); }

    .contact-row {
      padding: 18px 0;
      border-top: 1px solid rgba(255,255,255,.14);
    }

    .contact-row b {
      display: block;
      color: white;
      margin-bottom: 5px;
    }

    .form {
      background: white;
      border: 1px solid var(--line);
      border-radius: 38px;
      padding: 34px;
      box-shadow: var(--shadow-soft);
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 20px;
    }

    .input {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 15px 16px;
      font-size: 15px;
      outline: none;
    }

    textarea.input {
      grid-column: 1 / -1;
      min-height: 120px;
      resize: vertical;
    }

    .map {
      margin-top: 24px;
      min-height: 320px;
      border-radius: 32px;
      border: 1px solid var(--line);
      background:
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(135deg, #dfe3ea, #f7f8fa);
      background-size: 42px 42px, 42px 42px, auto;
      display: grid;
      place-items: center;
      text-align: center;
      color: #7f8793;
      font-weight: 900;
      overflow: hidden;
    }

    .notice {
      margin-top: 26px;
      padding: 20px 22px;
      border-radius: 24px;
      background: rgba(181,18,34,.08);
      border: 1px solid rgba(181,18,34,.16);
      color: #72101a;
      font-weight: 700;
    }

    .home-services-preview {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .home-service {
      background: white;
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 24px;
      min-height: 230px;
      box-shadow: var(--shadow-soft);
      transition: .2s ease;
      position: relative;
      overflow: hidden;
    }

    .home-service:before {
      content: "";
      position: absolute;
      width: 110px;
      height: 110px;
      right: -42px;
      top: -42px;
      background: rgba(181,18,34,.08);
      border-radius: 50%;
    }

    .home-service:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
      border-color: rgba(181,18,34,.24);
    }

    .home-service h3,
    .home-service p,
    .home-service button {
      position: relative;
      z-index: 1;
    }

    .home-service p {
      color: var(--muted);
      margin: 12px 0 22px;
    }

    .home-split {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 28px;
      align-items: stretch;
    }

    .home-image-panel {
      min-height: 520px;
      border-radius: 42px;
      background-image: url("../assets/home-image.png");
      background-size: cover;
      background-position-x: -150px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .home-image-panel-card {
      position: absolute;
      left: 28px;
      right: 28px;
      bottom: 28px;
      background: rgba(255,255,255,.95);
      border-radius: 28px;
      padding: 24px;
      color: var(--graphite);
      box-shadow: 0 22px 66px rgba(0,0,0,.15);
    }

    .home-copy-panel {
      background: white;
      border: 1px solid var(--line);
      border-radius: 42px;
      padding: clamp(32px, 4vw, 54px);
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .home-copy-panel p {
      color: #575f6a;
      font-size: 18px;
    }

    .home-points {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }

    .home-point {
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 14px;
      align-items: start;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: #fafbfc;
    }

    .home-point b {
      width: 44px;
      height: 44px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      color: white;
      background: var(--red);
    }

    .home-point h4 { margin-bottom: 4px; }
    .home-point p {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
    }

    .home-route {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      counter-reset: route;
    }

    .route-card {
      counter-increment: route;
      background: white;
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 24px;
      box-shadow: var(--shadow-soft);
      position: relative;
    }

    .route-card:before {
      content: counter(route, decimal-leading-zero);
      display: inline-grid;
      place-items: center;
      width: 52px;
      height: 52px;
      border-radius: 18px;
      background: rgba(181,18,34,.08);
      color: var(--red);
      font-weight: 900;
      margin-bottom: 18px;
    }

    .route-card p {
      color: var(--muted);
      margin: 10px 0 0;
    }

    .home-offer {
      background:
        radial-gradient(circle at 84% 18%, rgba(255,255,255,.18), transparent 28%),
        linear-gradient(135deg, var(--red), var(--red2));
      border-radius: 44px;
      padding: clamp(34px, 5vw, 58px);
      color: white;
      display: grid;
      grid-template-columns: 1fr 330px;
      gap: 30px;
      align-items: center;
      box-shadow: var(--shadow);
    }

    .home-offer h2,
    .home-offer h3 {
      color: white;
    }

    .home-offer p {
      color: rgba(255,255,255,.82);
    }

    .home-offer-card {
      background: rgba(255,255,255,.96);
      color: var(--graphite);
      border-radius: 32px;
      padding: 32px;
      text-align: center;
    }

    .home-offer-card b {
      display: block;
      color: var(--red);
      font-size: 58px;
      line-height: 1;
      margin-bottom: 8px;
    }

    .home-offer-card span {
      color: var(--muted);
      font-weight: 800;
    }

    @media (max-width: 1180px) {
      .brand-mark{
        width: 100px;
      }

      .home-services-preview,
      .home-route {
        grid-template-columns: repeat(2, 1fr);
      }

      .home-split,
      .home-offer {
        grid-template-columns: 1fr;
      }
      .hero-stamp-patient {
        margin: 0 auto;
      }


      .burger{
        display: block;
    width:44px;
    height:44px;
    border:0;
    background:none;
    cursor:pointer;
    position:relative;
    font-size: 24px;
}

.burger span{
    position:absolute;
    left:8px;
    width:28px;
    height:3px;
    background:#333;
    transition:.25s;
}

.burger span:nth-child(1){top:12px;}
.burger span:nth-child(2){top:20px;}
.burger span:nth-child(3){top:28px;}

.burger.active span:nth-child(1){
    transform:rotate(45deg);
    top:20px;
}

.burger.active span:nth-child(2){
    opacity:0;
}

.burger.active span:nth-child(3){
    transform:rotate(-45deg);
    top:20px;
}
      body.menu-open {
    overflow: hidden;
    touch-action: none; /* для мобильных */
}
      .nav{
        position:fixed;
        top:0;
        right:-100%;
        width:210px;
        height:100vh;
        background:#fff;
        transition:.3s;
        display:none;
        flex-direction:column;
        padding:80px 0;
        box-shadow:-5px 0 20px rgba(0,0,0,.15);
        z-index: 100;
      }

      .nav.open{
        display: flex;
        right:0;
      }
      .nav > ul{
        flex-direction: column;
        width: 200px;
      }
    }

    @media (max-width: 720px) {
      .home-services-preview,
      .home-route {
        grid-template-columns: 1fr;
      }

      .home-copy-panel,
      .home-offer {
        padding: 28px;
        border-radius: 30px;
      }

      .home-image-panel {
        min-height: 400px;
        border-radius: 30px;
      }
    }

    .breadcrumb {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 24px;
    }

    .breadcrumb a {
      border: 0;
      background: transparent;
      color: var(--red);
      font-weight: 900;
      padding: 0;
    }

    .procedure-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 28px;
    }

    .procedure-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 26px;
      min-height: 245px;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: .2s ease;
    }

    .procedure-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
      border-color: rgba(181,18,34,.24);
    }

    .procedure-card p {
      color: var(--muted);
      margin: 12px 0 22px;
    }

    .detail-text-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 34px;
      padding: 34px;
      box-shadow: var(--shadow-soft);
    }

    .detail-text-card p {
      color: #575f6a;
      font-size: 19px;
      margin-bottom: 0;
    }

    @media (max-width: 1180px) {
      .procedure-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 720px) {
      .procedure-grid { grid-template-columns: 1fr; }
      .detail-text-card { padding: 28px; border-radius: 28px; }
    }


    .home-consult {
      background:
        radial-gradient(circle at 84% 16%, rgba(181,18,34,.18), transparent 30%),
        linear-gradient(135deg, #fff, #f3f4f7);
      border-top: 1px solid var(--line);
    }

    .consult-wrap {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 28px;
      align-items: stretch;
    }

    .consult-info {
      background: var(--dark);
      color: white;
      border-radius: 42px;
      padding: clamp(32px, 4vw, 52px);
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .consult-info h2 {
      color: white;
    }

    .consult-info p {
      color: rgba(255,255,255,.76);
      font-size: 18px;
    }

    .consult-list {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }

    .consult-list div {
      display: grid;
      grid-template-columns: 38px 1fr;
      gap: 12px;
      align-items: start;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      padding: 14px;
    }

    .consult-list b {
      width: 38px;
      height: 38px;
      border-radius: 14px;
      background: var(--red);
      display: grid;
      place-items: center;
    }

    .consult-form {
      background: white;
      border: 1px solid var(--line);
      border-radius: 42px;
      padding: clamp(32px, 4vw, 52px);
      box-shadow: var(--shadow-soft);
    }

    .patient-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 32px;
    }

    .patient-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 26px;
      box-shadow: var(--shadow-soft);
      min-height: 210px;
      transition: .2s ease;
    }

    .patient-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
      border-color: rgba(181,18,34,.22);
    }

    .patient-card p {
      color: var(--muted);
      margin: 12px 0 0;
    }

    .patient-label {
      display: inline-flex;
      width: 52px;
      height: 52px;
      border-radius: 18px;
      background: rgba(181,18,34,.08);
      color: var(--red);
      align-items: center;
      justify-content: center;
      font-weight: 900;
      margin-bottom: 18px;
    }

    .patient-material {
      background:
        radial-gradient(circle at 85% 10%, rgba(181,18,34,.14), transparent 30%),
        white;
      border: 1px dashed rgba(181,18,34,.35);
      border-radius: 32px;
      padding: 34px;
      margin-top: 28px;
    }

    .patient-material p {
      color: var(--muted);
    }

    @media(max-width:1180px) {
      .consult-wrap {
        grid-template-columns: 1fr;
      }

      .patient-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media(max-width:720px) {
      .patient-grid {
        grid-template-columns: 1fr;
      }

      .consult-info,
      .consult-form,
      .patient-material {
        padding: 28px;
        border-radius: 30px;
      }
    }


    .specialist-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    .specialist-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 30px;
      padding: 26px;
      box-shadow: var(--shadow-soft);
      min-height: 250px;
      transition: .2s ease;
    }
    .specialist-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
      border-color: rgba(181,18,34,.22);
    }
    .specialist-avatar {
      position: relative;
      width: 230px;
      height: 345px;
      border-radius: 24px;
      display: grid;
      place-items: center;
      color: white;
      font-weight: 900;
      font-size: 22px;
      background: linear-gradient(135deg, var(--red), var(--red2));
      margin-bottom: 18px;
      box-shadow: 0 16px 34px rgba(181,18,34,.22);
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .specialist-avatar > img {
      width: 230px;
      height: 345px;
      object-fit:cover;
      
    }

    .specialist-card p {
      color: var(--muted);
      margin: 10px 0 0;
    }
    .specialist-role {
      display: inline-flex;
      margin-top: 14px;
      background: rgba(181,18,34,.08);
      color: var(--red);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 900;
    }
    .works-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
    .work-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 34px;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
    }
    .work-images {
      /*display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;*/
      background: var(--line);
    }
    .work-images.three {
      grid-template-columns: repeat(3, 1fr);
    }
    .work-shot {
      position: relative;
      min-height: 260px;
      background: #eef0f4;
      overflow: hidden;
    }
    .work-shot img {
      width: 100%;
      height: 100%;
      min-height: 260px;
      object-fit: cover;
      display: block;
    }
    .work-shot span {
      position: absolute;
      left: 14px;
      top: 14px;
      background: rgba(23,25,29,.72);
      color: white;
      border-radius: 999px;
      padding: 7px 11px;
      font-size: 12px;
      font-weight: 900;
      backdrop-filter: blur(8px);
    }
    .work-body {
      padding: 26px;
    }
    .work-body p {
      color: var(--muted);
      margin: 10px 0 0;
    }
    .work-tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 16px;
    }
    .work-tag {
      background: rgba(181,18,34,.08);
      color: var(--red);
      border-radius: 999px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 900;
    }
    @media(max-width:1180px) {
      .specialist-grid { grid-template-columns: repeat(2, 1fr); }
      .works-grid { grid-template-columns: 1fr; }
    }
    @media(max-width:720px) {
      .specialist-grid { grid-template-columns: 1fr; }
      .work-images, .work-images.three { grid-template-columns: 1fr; }
    }


    .works-intro {
      background: linear-gradient(135deg, #fff, #f7f8fb);
      border: 1px solid var(--line);
      border-radius: 30px;
      padding: 24px 26px;
      margin-bottom: 26px;
      box-shadow: var(--shadow-soft);
    }
    .works-intro p {
      color: var(--muted);
      margin: 10px 0 0;
    }

    footer {
      background: var(--dark);
      color: rgba(255,255,255,.72);
      padding: 32px 5vw;
      font-size: 14px;
    }

    .footer-inner {
      max-width: 1240px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    @media (max-width: 1180px) {
      .header {
        grid-template-columns: 1fr;
      }
      .nav {
        justify-content: flex-start;
      }
      .hero,
      .page-hero-inner,
      .about-slide,
      .service-layout,
      .promo-band,
      .contact-grid {
        grid-template-columns: 1fr;
      }
      .side-tabs {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
      }
      .grid-4,
      .offer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .case-grid,
      .grid-3 {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 720px) {
      .topline { display: none; }
      .section { padding: 58px 5vw; }
      .hero { min-height: auto; padding: 50px 5vw 62px; }
      .hero-visual { min-height: 420px; border-radius: 34px; }
      .metrics,
      .grid-2,
      .grid-3,
      .grid-4,
      .sub-grid,
      .offer-grid,
      .case-grid,
      .form-grid,
      .side-tabs {
        grid-template-columns: 1fr;
      }
      .section-head { display: block; }
      .section-head p { margin-top: 16px; }
      .doctor { grid-template-columns: 1fr; }
      .promo-band,
      .contact-box,
      .form,
      .about-copy,
      .service-panel {
        padding: 28px;
        border-radius: 30px;
      }
      .page-hero {
        padding: 50px 5vw 36px;
      }
      .nav-btn { font-size: 13px; padding: 8px 10px; }
    }
  

    .final-case-groups {
      display: grid;
      gap: 34px;
    }

    .case-group {
      background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,248,251,.82));
      border: 1px solid var(--line);
      border-radius: 38px;
      padding: clamp(22px, 3vw, 34px);
      box-shadow: var(--shadow-soft);
    }

    .case-group-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 22px;
    }

    .case-group-head h3 {
      font-size: clamp(26px, 3vw, 38px);
      margin: 8px 0 0;
    }

    .case-group-head p {
      max-width: 720px;
      margin: 8px 0 0;
      color: var(--muted);
    }

    .case-counter {
      min-width: 112px;
      height: 112px;
      border-radius: 32px;
      background: var(--dark);
      color: white;
      display: grid;
      place-items: center;
      text-align: center;
      font-weight: 900;
      line-height: 1.15;
      box-shadow: var(--shadow);
    }

    .case-counter span {
      display: block;
      font-size: 30px;
      color: white;
    }

    .works-grid.final-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-card {
      position: relative;
    }

    .work-body h3 {
      font-size: 22px;
      line-height: 1.18;
    }

    .work-body p {
      line-height: 1.65;
    }

    .work-shot span {
      letter-spacing: .02em;
      text-transform: uppercase;
    }

    .work-direction {
      position: absolute;
      right: 16px;
      top: 16px;
      z-index: 5;
      background: rgba(255,255,255,.92);
      color: var(--dark);
      border: 1px solid rgba(255,255,255,.7);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 900;
      box-shadow: 0 10px 24px rgba(23,25,29,.12);
      backdrop-filter: blur(8px);
    }

    .case-disclaimer {
      margin-top: 26px;
      background: rgba(181,18,34,.07);
      border: 1px solid rgba(181,18,34,.14);
      border-radius: 24px;
      padding: 18px 20px;
      color: var(--muted);
      line-height: 1.55;
    }

    @media(max-width:1180px) {
      .works-grid.final-grid {
        grid-template-columns: 1fr;
      }
    }

    @media(max-width:720px) {
      .case-group-head {
        display: grid;
      }

      .case-counter {
        width: 100%;
        height: auto;
        min-height: 76px;
      }

      .work-direction {
        left: 16px;
        right: auto;
      }
    }


    /* Sliders  */

    .compare {
    position: relative;
    height: 260px;
    width: 100%;
    overflow: hidden;
}

.before,
.after {
    position: absolute;
    inset: 0;
}

.before img,
.after img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.before > span, .after > span{
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #fff;
  background-color: rgba(23,25,29,.72);
}

/* Верхнее изображение */
.after {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

/* Разделитель */
.divider {
    position: absolute;

    top: 0;
    left: 50%;

    width: 3px;
    height: 100%;

    background: #fff;

    transform: translateX(-50%);
    z-index: 3;

    pointer-events: none;
}

.divider::after {
    content: '';

    position: absolute;

    left: 50%;
    top: 50%;

    width: 25px;
    height: 25px;

    border-radius: 50%;
    background: #fff;

    transform: translate(-50%, -50%);

    box-shadow: 0 0 10px rgba(0,0,0,.3);
}

/* Невидимый ползунок */
.slider {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    opacity: 0;

    cursor: ew-resize;
    z-index: 10;
}

/* Modal */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

/* фон */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* центрированный контейнер */
.modal-content {
    position: relative;
    width: min(1000px, 92vw);
    max-height: 80vh;

    margin: auto;
    top: 55%;
    transform: translateY(-50%);

    background: #fff;
    border-radius: 16px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.page-cont{
  height: 718px;
  overflow-y: auto;
}

/* открытое состояние */
.modal.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.docview{
  padding: 0px 5vw;
}

.header-span{
  color: var(--red);
  font-size: 78px;
}

.header-text-top{
    font-family: "PT Sans", sans-serif;
  font-size: 62px; 
}

.left-align{
  display: block;
  position: relative;
  left: 900px;
  margin: 10px 0;
}

@media (max-width: 720px){
    
    .hero {
        width: 700px;
        padding: 10px;
    }
    
    main, .header, .footer{
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .section{
        width: 700px;
    }
    
    .page > .page-hero, .page > .section{
        width: 100%;
        padding: 30px 10px;
    }
    
    .hero-stamp, .hero-stamp > img, .page{
        width: 100%;
    }
    
    .page{
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .page-cont{
        height: 628.8px;
    }
    
    .left-align{
        left: 580px;
    }
    
    .about-photo{
        width: 100%;
    }
    
    .specialist-avatar, .specialist-avatar > img{
        width: 400px;
        height: 700px;
        margin: 0 auto 20px;
        
    }
    
    .home-image-panel {
        min-width: 680px;
      min-height: 680px;
      border-radius: 42px;
      background-image: url("../assets/home-image.png");
      background-size: auto;
      background-position-x: -260px;
      background-position-y: -200px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }
}

@media (max-width: 600px){
    
    .hero {
        width: 600px;
        padding: 10px;
    }
    
    main, body, html, .header, .section{
        width: 600px;
    }
    
    .page > .page-hero, .page > .section{
        width: 100%;
        padding: 30px 0;
    }
    
    .hero-stamp, .hero-stamp > img, .page{
        width: 100%;
    }
    
    .page{
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .page-cont{
        height: 528.8px;
    }
    
    .left-align{
        left: 580px;
    }
    
    .about-photo{
        width: 100%;
    }
    
    .specialist-avatar, .specialist-avatar > img{
        width: 400px;
        height: 700px;
        margin: 0 auto 20px;
        
    }
    
    .home-image-panel {
        min-width: 580px;
      min-height: 580px;
      border-radius: 42px;
      background-image: url("../assets/home-image.png");
      background-size: auto;
      background-position-x: -260px;
      background-position-y: -200px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }
}
