/* Specialist card: separate category from the action button */
.doctor-info b{display:block;margin-bottom:28px}
.doctor-info .doctor-more{align-self:flex-start;margin-top:auto}

/* Doctor profile */
.doctor-profile{padding:48px 0 96px}
.doctor-profile-back{display:inline-flex;align-items:center;gap:9px;margin-bottom:22px;color:#40566d;font-weight:600;text-underline-offset:4px}
.doctor-profile-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s cubic-bezier(.22,1,.36,1)}
.doctor-profile-back:hover{color:var(--blue)}
.doctor-profile-back:hover svg{transform:translateX(-3px)}
.doctor-profile-back:focus-visible{outline:3px solid var(--brand-accent);outline-offset:5px;border-radius:8px}
.doctor-profile-cover{display:grid;grid-template-columns:minmax(360px,.88fr) minmax(0,1.12fr);min-height:680px;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 16px 42px rgba(1,25,52,.08)}
.doctor-profile-photo{min-width:0;background:var(--brand-mint-soft);overflow:hidden}
.doctor-profile-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 18%;filter:saturate(.82)}
.doctor-profile-intro{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(44px,6vw,88px)}
.doctor-profile-intro>p{max-width:30ch;margin:0 0 26px;color:var(--blue2);font-size:20px;font-weight:600;line-height:1.35}
.doctor-profile-intro h1{max-width:12ch;margin:0;font:400 clamp(42px,5vw,70px)/1.04 Prosto-One,sans-serif;letter-spacing:-.03em;text-wrap:balance}
.doctor-profile-intro strong{max-width:32ch;margin-top:28px;color:#526a81;font-size:18px;line-height:1.45}
.doctor-profile-intro .button{margin-top:42px}
.doctor-profile-body{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:24px;margin-top:24px}
.doctor-profile-section{background:#fff;border-radius:24px;padding:clamp(32px,4vw,54px)}
.doctor-profile-section h2{margin:0 0 36px;font:400 clamp(30px,3vw,44px)/1.1 Prosto-One,sans-serif;letter-spacing:-.02em}
.doctor-profile-specialization{background:var(--navy);color:#fff}
.doctor-profile-about{max-width:48ch;margin:-8px 0 30px;color:#c8d8e6;font-size:17px;line-height:1.6}
.doctor-profile-specialization ul{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none}
.doctor-profile-specialization li{padding:12px 16px;border-radius:12px;background:#092a4d;color:#dcecf2;font-size:17px;line-height:1.3}
.doctor-profile-timeline{position:relative}
.doctor-profile-event{display:grid;grid-template-columns:160px minmax(0,1fr);gap:30px;padding:26px 0;border-top:1px solid var(--line)}
.doctor-profile-event:first-child{padding-top:0;border-top:0}
.doctor-profile-event:last-child{padding-bottom:0}
.doctor-profile-event time{color:var(--blue2);font-weight:600;line-height:1.4}
.doctor-profile-event h3{margin:0 0 8px;font:400 21px/1.3 Prosto-One,sans-serif}
.doctor-profile-event p{max-width:68ch;margin:0;color:#40566d;font-size:17px;line-height:1.6}

@media(max-width:900px){
  .doctor-profile-cover{grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);min-height:590px}
  .doctor-profile-intro{padding:42px}
  .doctor-profile-body{grid-template-columns:1fr}
}

@media(max-width:760px){
  .doctor-profile{padding:28px 0 64px}
  .doctor-profile-hero,.doctor-profile-body{width:min(100% - 24px,620px)}
  .doctor-profile-back{margin:0 4px 16px}
  .doctor-profile-cover{display:flex;min-height:0;flex-direction:column;border-radius:20px}
  .doctor-profile-photo{height:auto;aspect-ratio:4/5}
  .doctor-profile-photo img{object-position:50% 14%}
  .doctor-profile-intro{padding:30px 22px 32px}
  .doctor-profile-intro>p{margin-bottom:18px;font-size:17px}
  .doctor-profile-intro h1{max-width:100%;font-size:34px;line-height:1.08;overflow-wrap:break-word}
  .doctor-profile-intro strong{margin-top:20px;font-size:16px}
  .doctor-profile-intro .button{width:100%;margin-top:28px}
  .doctor-profile-body{gap:14px;margin-top:14px}
  .doctor-profile-section{padding:28px 22px;border-radius:20px}
  .doctor-profile-section h2{margin-bottom:24px;font-size:28px}
  .doctor-profile-about{margin:0 0 24px;font-size:16px;line-height:1.5}
  .doctor-profile-specialization ul{display:grid;gap:10px}
  .doctor-profile-specialization li{font-size:16px}
  .doctor-profile-event{grid-template-columns:1fr;gap:8px;padding:22px 0}
  .doctor-profile-event h3{font-size:19px}
  .doctor-profile-event p{font-size:16px;line-height:1.5}
}

@media(prefers-reduced-motion:reduce){.doctor-profile-back svg{transition:none}}

/* Promotions page: prevent cards and long headings from widening the viewport */
.page-promotions .promo-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}
.page-promotions .promo-tile{width:100%;min-width:0;max-width:100%;overflow:hidden}
.page-promotions .promo-tile h2,.page-promotions .promo-tile p{max-width:100%;overflow-wrap:anywhere;word-break:normal}
@media(max-width:760px){
  .page-promotions .section{overflow:hidden}
  .page-promotions .promo-grid{grid-template-columns:minmax(0,1fr);width:min(100% - 32px,620px)}
  .page-promotions .promo-tile{padding:24px 20px}
  .page-promotions .promo-tile h2{font-size:26px;line-height:1.12;margin:32px 0 14px}
  .page-promotions .promo-tile p{font-size:17px;line-height:1.35}
}

/* Detailed Rayner promotion */
.page-promotions .promotions-section{padding-top:30px}
.page-promotions .promo-grid{grid-template-columns:minmax(0,1fr)}
.page-promotions .promo-detail{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:42px;align-items:center;min-height:0;background:#fff;color:var(--navy);box-shadow:0 8px 28px rgba(1,25,52,.09)}
.page-promotions .promo-detail small{padding-left:10px;border-left:3px solid var(--brand-accent);color:var(--navy);font-weight:600}
.page-promotions .promo-detail h2{margin:26px 0 18px;max-width:820px}
.page-promotions .promo-detail p{overflow-wrap:normal}
.page-promotions .promo-price{display:flex;align-items:baseline;gap:18px;font:400 38px/1.1 Prosto-One;margin:0 0 24px}
.page-promotions .promo-price del{font:400 22px/1.2 Inter;color:var(--muted);text-decoration-color:var(--brand-accent);text-decoration-thickness:3px}
.page-promotions .promo-detail ul{display:grid;gap:16px;margin:16px 0 20px;padding-left:24px;font-size:18px;line-height:1.45}
.page-promotions .promo-detail li{padding-left:4px}
.page-promotions .promo-note{font-size:15px;color:var(--muted);margin-bottom:0}
.page-promotions .promo-lens{margin:0;background:#fff;border-radius:22px;overflow:hidden;color:var(--navy)}
.page-promotions .promo-lens img{display:block;width:100%;aspect-ratio:16/10;object-fit:contain}
@media(max-width:900px){
  .page-promotions .promo-detail{grid-template-columns:minmax(0,1fr);gap:28px}
  .page-promotions .promo-lens{order:-1}
}
@media(max-width:760px){
  .page-promotions .promotions-section{padding-top:8px}
  .page-promotions .promo-detail{padding:24px 20px 26px;gap:22px}
  .page-promotions .promo-detail h2{margin:20px 0 16px}
  .page-promotions .promo-price{font-size:30px;gap:12px;margin-bottom:20px}
  .page-promotions .promo-price del{font-size:18px}
  .page-promotions .promo-detail ul{font-size:16px;line-height:1.45;gap:14px;padding-left:20px}
  .page-promotions .promo-lens{border-radius:17px}
}

/* Logo descriptor — 10% larger */
.intermed-logo small{font-size:12.1px}
@media(max-width:760px){.intermed-logo small{font-size:8.5px}}

/* Patient guides */
.patient-guides nav{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:24px}
.patient-guides nav a{color:var(--blue);font-size:18px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.patient-guide-section{padding-top:24px}
.patient-guide-document{width:min(1390px,calc(100% - 48px));margin:auto;background:#fff;border-radius:24px;padding:48px 56px}
.patient-guide-document>section{padding:30px 0;border-top:1px solid var(--line)}
.patient-guide-document>section:first-child{padding-top:0;border-top:0}
.patient-guide-document h2{font:400 30px/1.18 Prosto-One,sans-serif;margin:0 0 18px}
.patient-guide-document p,.patient-guide-document li{font-size:18px;line-height:1.6;color:#334d67}
.patient-guide-document ol{margin:0;padding-left:24px}.patient-guide-document li+li{margin-top:10px}
.patient-guide-document aside{margin:22px 0 30px;padding:24px;border-radius:18px;background:var(--brand-mint-soft)}
.patient-guide-document aside strong{font:400 22px Prosto-One,sans-serif}.patient-guide-document aside p{margin:10px 0 0}
@media(max-width:760px){
  .patient-guides nav a{font-size:17px}
  .patient-guide-document{width:min(100% - 32px,620px);padding:28px 22px;border-radius:20px}
  .patient-guide-document>section{padding:24px 0}.patient-guide-document h2{font-size:23px}
  .patient-guide-document p,.patient-guide-document li{font-size:16px;line-height:1.52}
}

/* Patients page vertical spacing */
.page-patients .page-hero .kicker{display:block;margin-bottom:14px}
.page-patients .page-hero{padding-bottom:24px}
.page-patients .page-hero+.section{padding-top:24px}
@media(max-width:760px){
  .page-patients .page-hero .kicker{margin-bottom:12px}
  .page-patients .page-hero{padding-bottom:14px}
  .page-patients .page-hero+.section{padding-top:14px}
}

/* Diagnostic appointment card */
.diagnostic-card{align-items:stretch}
.diagnostic-card>div{display:flex;flex-direction:column;justify-content:flex-end;max-width:610px}
.diagnostic-card h2{margin-bottom:12px}
.diagnostic-card p{font-size:18px;margin:0 0 8px}
.diagnostic-card ul{margin:0 0 22px;padding-left:22px;font-size:18px;line-height:1.42}
.diagnostic-card .button{align-self:flex-start}
@media(max-width:760px){
  .diagnostic-card{min-height:470px}
  .diagnostic-card>div{justify-content:flex-end}
  .diagnostic-card p{font-size:16px}
  .diagnostic-card ul{font-size:16px;line-height:1.38;margin-bottom:18px}
  .diagnostic-card .button{align-self:stretch;min-height:48px;padding:0 14px;font-size:15px;border-radius:24px}
}

/* Diagnostic composition: copy on the left, original clinic room on the right */
.eye-card.diagnostic-card{background:#fff;color:var(--navy);align-items:stretch}
.eye-card.diagnostic-card:after{background:linear-gradient(90deg,#fff 0%,#fff 42%,rgba(255,255,255,.96) 50%,rgba(255,255,255,.18) 72%,rgba(255,255,255,0) 100%)}
.eye-card.diagnostic-card>img{left:auto;right:0;width:62%;object-position:72% center}
.eye-card.diagnostic-card>div{max-width:53%;justify-content:center}
.eye-card.diagnostic-card>div>span{color:var(--blue)}
.eye-card.diagnostic-card ul{color:#40566d}
@media(max-width:760px){
  .eye-card.diagnostic-card{min-height:0;padding:26px 24px}
  .eye-card.diagnostic-card:after{background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.99) 48%,rgba(255,255,255,.82) 67%,rgba(255,255,255,.1) 100%)}
  .eye-card.diagnostic-card>img{left:auto;right:0;width:63%;height:100%;object-position:76% center}
  .eye-card.diagnostic-card>div{max-width:78%;justify-content:flex-start}
  .eye-card.diagnostic-card h2{font-size:25px;margin-top:0}
  .eye-card.diagnostic-card ul{display:grid;gap:10px;max-width:88%;padding-left:18px;margin:0}
.eye-card.diagnostic-card .button{margin-top:18px}
}

/* Contacts: compact flow and a dedicated Yandex Maps route action. */
.page-contacts .page-hero{padding-bottom:22px}
.page-contacts .contacts-page{padding-top:22px}
.page-contacts .contacts-details{display:flex;flex-direction:column;gap:18px;min-width:0}
.page-contacts .branch-list{grid-template-columns:1fr}
.page-contacts .contacts-route,.page-contacts .contacts-review{width:100%;border-radius:18px}
.page-contacts .contacts-route{gap:12px}
.page-contacts .yandex-map-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#fff}
.page-contacts .yandex-map-icon svg{display:block;width:23px;height:23px;fill:#f04438}
@media(max-width:760px){
  .page-contacts .page-hero{padding-bottom:10px}
  .page-contacts .contacts-page{padding-top:10px}
  .page-contacts .contacts-grid{gap:18px}
  .page-contacts .contacts-details{gap:14px}
  .page-contacts .contacts-route,.page-contacts .contacts-review{min-height:58px;font-size:17px}
}

/* Direct links from service cards to matching price entries. */
.price-group,.price-item{scroll-margin-top:24px}
.price-group:target,.price-item:target{outline:3px solid rgba(39,137,253,.35);outline-offset:4px}

/* Expandable cataract information inside the price list. */
.price-description-heading{margin-bottom:24px}
.price-description-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer}
.price-description-title{border-bottom:3px dotted var(--brand-accent)}
.price-description-indicator{position:relative;flex:0 0 auto;width:16px;height:11px;margin-right:2px;background:var(--blue);clip-path:polygon(0 0,100% 0,50% 100%);transition:transform .24s cubic-bezier(.22,1,.36,1)}
.price-description-toggle[aria-expanded="true"] .price-description-indicator{transform:rotate(180deg)}
.price-description-toggle:hover{color:var(--blue2)}
.price-description-toggle:focus-visible{outline:3px solid var(--brand-accent);outline-offset:5px}
.price-description-panel{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;overflow-anchor:none;transition:grid-template-rows .32s cubic-bezier(.22,1,.36,1),opacity .22s ease}
.price-description-panel>div{min-height:0;overflow:hidden}
.price-group.is-description-open .price-description-panel{grid-template-rows:1fr;opacity:1}
.price-group.is-description-closing .price-description-panel{transition:none}
.price-description-copy{max-width:78ch;padding:2px 0 30px;color:#334d67}
.price-description-copy p{margin:0;font-size:17px;line-height:1.62}
.price-description-copy p+p{margin-top:18px}
.price-description-copy ul{margin:14px 0 18px;padding-left:24px;font-size:17px;line-height:1.55}
.price-description-copy li+li{margin-top:7px}
.price-description-hide{margin-top:24px;min-height:44px;padding:0 22px;border:0;border-radius:12px;background:var(--brand-mint-soft);color:var(--navy);font-weight:600;cursor:pointer}
.price-description-hide:hover{background:var(--brand-mint)}
.price-description-hide:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
@media(max-width:760px){
  .price-description-heading{margin-bottom:20px}
  .price-description-toggle{gap:14px;font-size:25px}
  .price-description-title{border-bottom-width:2px}
  .price-description-indicator{width:14px;height:10px;margin-right:0}
  .price-description-copy{padding:0 0 26px}
  .price-description-copy p{font-size:16px;line-height:1.55}
  .price-description-copy p+p{margin-top:16px}
  .price-description-copy ul{margin:12px 0 16px;padding-left:21px;font-size:16px;line-height:1.5}
  .price-description-hide{width:100%;margin-top:20px}
}
@media(prefers-reduced-motion:reduce){.price-description-panel,.price-description-indicator{transition:none}}

/* Compact spacing for the contact form on phones. */
@media(max-width:760px){
  .page-contacts .contact-form-section{padding-bottom:32px}
  .page-contacts .contact-form-section>.container{gap:28px}
}

.clinic-proof-location-only{padding-top:48px}
.clinic-about-title{font:400 clamp(38px,4vw,54px)/1 Prosto-One,sans-serif;letter-spacing:-.025em;margin:0 0 32px}
@media(max-width:760px){.clinic-proof-location-only{padding-top:42px}.clinic-about-title{font-size:32px;line-height:1.1;margin:0 16px 20px}}

.services-heading p{max-width:920px;margin:20px 0 0;color:var(--muted);font-size:20px;line-height:1.45}
@media(max-width:760px){.services-heading p{margin-top:14px;font-size:16px;line-height:1.35}}

/* Keep equipment cards aligned and prevent long model names from widening them. */
.page-equipment .info-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.page-equipment .info-list article{min-width:0;width:100%;max-width:100%}
.page-equipment .info-list h2{max-width:100%;hyphens:auto;overflow-wrap:anywhere}
@media(max-width:760px){
  .page-equipment .page-hero .container,.page-equipment .info-list{width:calc(100% - 32px);max-width:620px}
  .page-equipment .page-hero h1{max-width:100%;font-size:34px;line-height:1.05;overflow-wrap:break-word}
  .page-equipment .info-list{grid-template-columns:minmax(0,1fr)}
  .page-equipment .info-list article{padding:28px 24px}
  .page-equipment .info-list h2{font-size:22px;line-height:1.22;hyphens:none;overflow-wrap:break-word;word-break:normal}
}

/* Compact header for the narrowest supported mobile screens. */
@media(max-width:360px){
  .nav-shell{padding-left:10px;padding-right:10px;gap:6px}
  .nav-shell .intermed-logo{gap:8px}
  .nav-shell .intermed-brand-mark{flex-basis:50px;width:50px;height:28px}
  .nav-shell .intermed-brand-mark img{width:100%}
}

/* Allow grid cards to shrink to the viewport on very narrow phones. */
@media(max-width:760px){
  .page-doctors .doctors-grid{grid-template-columns:minmax(0,1fr)}
  .page-doctors .doctor-full,.page-doctors .doctor-image,.page-doctors .doctor-info{min-width:0;width:100%;max-width:100%}
  .page-doctors .doctor-info h2{max-width:100%;overflow-wrap:break-word}
  .page-license .license-content-grid{grid-template-columns:minmax(0,1fr);min-width:0}
  .page-license .license-services,.page-license .license-document-card{min-width:0;width:100%;max-width:100%}
  .page-license .license-service-list,.page-license .license-service-list article,.page-license .license-service-list article>div{min-width:0;max-width:100%}
  .page-license .license-service-list article{grid-template-columns:38px minmax(0,1fr)}
  .page-license .license-services h2,.page-license .license-services h3{max-width:100%;overflow-wrap:break-word}
  .nav.open{padding:16px 24px;gap:0}
  .nav.open a{display:flex;align-items:center;width:100%;min-height:48px;padding:10px 0;font-size:18px;line-height:1.25}
}


