/* 1 rem = 100 макетных пикселей при ширине 1680 (390 на мобильном). */
html {
    font-size: min(calc(100vw / 16.8), 100px);
}
@font-face {
    font-family: Rubik;
    src: url(rubik.woff2) format("woff2");
    font-display: swap;
}
@font-face {
    font-family: Rubik;
    src: url(rubik-medium.woff2) format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url(inter-portal.ttf) format("truetype");
    font-display: swap;
}
@font-face {
    font-family: Bebas;
    src: url(bebas-neue-cyrillic.ttf) format("truetype");
    font-display: swap;
}
:root {
    --blue: #549dbf;
    --pale: #f6f8f9;
    --pad: 0.4rem;
    --gap: 1rem;
    --rail-gap: 0.51rem;
    --heading: Bebas, "Arial Narrow", sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0.2rem;
}
body {
    margin: 0;
    color: #000;
    background: white;
    font:
        0.2rem/1.32 Rubik,
        Arial,
        sans-serif;
}
h1,
h2,
h3,
p,
dl,
dd {
    margin: 0;
}
a,
button {
    color: inherit;
}
a {
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
}
a:hover,
nav button:hover {
    color: #357d9f;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 0.03rem solid #2181b0;
    outline-offset: 0.04rem;
}
.wrap {
    width: min(100%, 16.8rem);
    margin-inline: auto;
    padding-inline: var(--pad);
}
.section {
    margin-top: var(--gap);
}
h1,
h2,
.brand strong,
dt {
    font: 400 0.8rem/1 var(--heading);
    text-transform: uppercase;
}
em {
    color: var(--blue);
    font-style: normal;
}
.mast {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.18rem;
    padding-top: 0.24rem;
    font-size: 0.18rem;
}
.brand {
    display: grid;
    gap: 0.08rem;
    flex-shrink: 0;
}
.brand strong {
    font-size: 0.42rem;
    color: var(--blue);
    line-height: 0.94;
}
nav,
.head-contact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
nav button,
.menu-toggle {
    border: 0;
    padding: 0;
    background: none;
}
.menu-toggle {
    display: none;
}
.social {
    display: flex;
    width: 0.96rem;
    height: 0.42rem;
    background: url(imgSocial.svg) center/contain no-repeat;
}
.social > * {
    flex: 1;
}
.cta {
    background: black;
    border: none;
    color: white;
    padding: 0.2rem 0.3rem;
    font-size: 0.24rem;
    line-height: 1;
    border-radius: 0.08rem;
}
.cta:hover {
    background: #275b73;
}
.cta.small {
    background: var(--blue);
    font-size: inherit;
    padding: 0.11rem 0.2rem;
    border-radius: 0.04rem;
}
.hero {
    padding-top: 1.4rem;
}
.tagline {
    font-size: 0.28rem;
    margin-bottom: 0.42rem;
}
h1 {
    font-size: 1.28rem;
    line-height: 1.05;
}
.hero .cta {
    margin-top: 0.42rem;
}
.wide-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1600/560;
    object-fit: cover;
    border-radius: 0.32rem;
}
.hero .wide-photo {
    margin-top: 0.62rem;
}
.about {
    display: grid;
    grid-template-columns: 43% 57%;
}
.numbers {
    padding-left: 12.6%;
}
dl {
    display: grid;
    gap: 0.46rem;
}
dl div {
    display: flex;
    align-items: center;
    gap: 0.32rem;
}
dt {
    min-width: 1.52em;
    white-space: nowrap;
}
dd {
    max-width: 9.3em;
    font-size: 0.28rem;
    line-height: 1.05;
}
.license {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.11rem 0.2rem;
    border-radius: 0.08rem;
    background: var(--pale);
    margin-top: 0.55rem;
}
.license img {
    width: 0.32rem;
}
.copy {
    max-width: 65ch;
    white-space: pre-line;
}
.about .copy {
    margin-top: 0.61rem;
    max-width: 32.4em;
}
.doctor {
    display: grid;
    grid-template-columns: 39.8% 39.8%;
    gap: 11.75%;
    align-items: center;
}
.doctor img {
    width: 100%;
    aspect-ratio: 637/792;
    object-fit: cover;
    border-radius: 0.2rem;
}
.specialty {
    margin: 0.5rem 0 0.84rem;
}
.services {
    background: var(--pale);
    padding: 0.8rem 0;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.16rem;
    margin-bottom: 0.5rem;
}
.slide-buttons {
    width: 1.12rem;
    height: 0.46rem;
    display: flex;
    justify-content: space-between;
    background: url(imgArrow.svg) center/contain no-repeat;
    flex: none;
}
.slide-buttons button {
    width: 43%;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
}
.slide-buttons button:disabled {
    cursor: default;
}
.rail {
    display: grid;
    grid-auto-flow: column;
    gap: var(--rail-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar {
    display: none;
}
.rail > * {
    scroll-snap-align: start;
}
.service-rail {
    grid-auto-columns: calc((100% - var(--rail-gap) * 2) / 3);
}
.service-rail article {
    border-radius: 0.2rem;
    background: white;
    min-height: 3.12rem;
    padding: 0.4rem 0.3rem;
    font-size: 0.2rem;
    line-height: 1.6;
}
h3,
summary {
    font-size: 0.36rem;
    line-height: 1.12;
    font-weight: 400;
}
h3 {
    margin-bottom: 0.36rem;
}
.price h2,
#contacts h2 {
    margin-bottom: 0.5rem;
}
details + details {
    margin-top: 0.2rem;
}
summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    list-style: none;
    cursor: pointer;
    background: var(--pale);
    border-radius: 0.2rem;
    padding: 0.4rem 0.3rem;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "";
    width: 0.46rem;
    aspect-ratio: 1;
    background: url(imgVector.svg) center/contain no-repeat;
    flex: none;
}
details[open] summary {
    color: #fff;
    background: var(--blue);
}
details[open] summary::after {
    background-image: url(imgVector1.svg);
}
.price-list {
    padding: 0 0.3rem;
}
.price-list > div {
    padding: 0.24rem 0;
    background: url(imgLine1.svg) left bottom/100% 0.01rem no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.18rem;
    font-size: 0.24rem;
}
.price-list strong {
    white-space: nowrap;
    font-weight: 400;
}
.price-list p {
    padding-block: 0.2rem;
}
.doc-rail {
    grid-auto-columns: calc((100% - var(--rail-gap) * 3) / 4);
}
.doc {
    display: flex;
    flex-direction: column;
    min-height: 2.8rem;
    padding: 0.3rem;
    background: var(--pale);
    border-radius: 0.2rem;
}
.doc a {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.doc:nth-child(2) {
    color: white;
    background: var(--blue);
}
.doc strong {
    font-weight: 500;
    padding-bottom: 0.14rem;
    background: url(imgLine4.svg) left bottom/100% 0.01rem no-repeat;
}
.doc:nth-child(2) strong {
    background-image: url(imgLine5.svg);
}
.doc span {
    padding-top: 0.1rem;
}
.doc img {
    margin-top: auto;
    width: 0.4rem;
    align-self: flex-start;
}
.contact-grid,
footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.24rem;
}
.contact-grid p {
    margin: 0.4em 0;
}
.contact-actions {
    display: grid;
    gap: 0.2rem;
}
.contact-actions a {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.contact-actions img {
    width: 0.58rem;
    object-fit: contain;
}
.map {
    border: 0;
    display: block;
    margin-top: 0.8rem;
}
footer {
    align-items: center;
    font-size: 0.16rem;
    padding-block: 0.8rem 0.24rem;
}
footer div {
    display: flex;
    gap: 0.28rem;
}
footer > a {
    color: inherit;
}
dialog {
    border: 0;
    border-radius: 0.2rem;
    padding: 0.4rem;
    width: min(5.2rem, calc(100% - 0.36rem));
    color: inherit;
}
dialog::backdrop {
    background: #101c24a8;
}
dialog h2 {
    padding-right: 0.24rem;
    font-size: 0.48rem;
}
dialog .copy {
    margin-block: 0.22rem 0.12rem;
}
dialog > a {
    color: #357d9f;
}
dialog form button {
    position: absolute;
    right: 0.12rem;
    top: 0.1rem;
    width: 0.4rem;
    height: 0.4rem;
    border: 0;
    background: transparent;
    font-size: 0.32rem;
}
/* Отступы и размеры текста десктопного фрейма 1680. */
@media screen and (min-width: 720px) {
    .mast {
        line-height: 0.22rem;
    }
    .brand {
        width: 2.43rem;
        gap: 0.12rem;
    }
    .brand strong {
        width: 2.71rem;
    }
    .mast nav {
        gap: 0.49rem;
    }
    .head-contact {
        align-items: flex-end;
    }
    .cta,
    .tagline {
        line-height: 0.22rem;
    }
    .cta.small {
        padding-block: 0.1rem;
    }
    .hero h1 {
        line-height: 1.35rem;
    }
    .hero {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero .wide-photo {
        flex: none;
    }
    .numbers {
        padding-left: 0.87rem;
    }
    dt {
        min-width: 0;
    }
    dl > div:nth-child(2) dt {
        min-width: 1.2rem;
    }
    dd {
        max-width: 2.88rem;
        line-height: 0.28rem;
    }
    dl > div:first-child dd {
        max-width: 2rem;
    }
    .license {
        gap: 0.22rem;
        line-height: 0.22rem;
    }
    .about .copy {
        line-height: 0.26rem;
    }
    .about .copy p + p {
        margin-top: 0.1rem;
    }
    .doctor {
        grid-template-columns: 6.37rem 6.37rem;
        gap: 1.88rem;
    }
    .doctor > div {
        min-height: 6.12rem;
    }
    .doctor .copy,
    .specialty {
        line-height: 0.28rem;
    }
    .doctor .copy p + p {
        margin-top: 0.28rem;
    }
    .specialty {
        min-height: 0.46rem;
        margin-block: 0.5rem;
    }
    .copy p:first-child {
        text-box-trim: trim-start;
        text-box-edge: cap alphabetic;
    }
    .copy p:last-child {
        text-box-trim: trim-end;
        text-box-edge: cap alphabetic;
    }
    .service-rail h3,
    .service-lines p,
    .price-list span,
    .price-list strong,
    .contact-grid > div:not(.contact-actions) > *,
    .specialty {
        text-box: trim-both cap alphabetic;
    }
    .service-rail h3,
    .service-lines p {
        line-height: 0.22rem;
    }
    .service-lines {
        display: grid;
        gap: 0.25rem;
    }
    .services {
        padding-bottom: 0;
        position: relative;
        background: none;
    }
    .services::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -0.12rem 0 -0.82rem;
        background: var(--pale);
    }
    .price {
        padding-top: 0.8rem;
    }
    .price-list {
        display: grid;
        gap: 0.3rem;
        padding: 0.61rem 0.4rem 0 0.3rem;
    }
    .price-list > div {
        min-height: 0.5rem;
        line-height: 0.42rem;
        padding: 0 0 0.33rem;
        align-items: flex-start;
    }
    .doc strong {
        line-height: 0.24rem;
        padding-bottom: 0.2rem;
    }
    .doc span {
        font-size: 0.18rem;
        line-height: 0.21rem;
        padding-top: 0.2rem;
    }
    #contacts h2 {
        margin-bottom: 0.6rem;
    }
    .contact-grid {
        align-items: center;
    }
    .contact-grid > div:not(.contact-actions) {
        display: grid;
        gap: 0.25rem;
        width: 3.62rem;
        line-height: 0.22rem;
    }
    .contact-grid > div:nth-child(2) {
        width: 3.68rem;
        gap: 0.22rem;
    }
    .contact-grid strong {
        font-weight: 500;
        font-size: 0.24rem;
    }
    .contact-grid p {
        margin: 0;
    }
    .contact-actions img {
        width: 0.6rem;
        height: 0.6rem;
    }
    .contact-actions a {
        font-family: Inter, Rubik, sans-serif;
    }
    footer {
        font-size: 0.14rem;
        line-height: 0.17rem;
        padding-bottom: 0.29rem;
    }
    footer div {
        gap: 0.27rem;
    }
}
@media screen and (max-width: 719px) {
    .copy p + p {
        margin-top: 1em;
    }
}
@media screen and (max-width: 719px) {
    html {
        font-size: calc(100vw / 3.9);
    }

    :root {
        --gap: 0.58rem;
        --pad: 0.2rem;
        --rail-gap: 0.12rem;
    }
    body {
        font-size: 0.16rem;
    }
    .mast {
        align-items: center;
        position: relative;
        padding-top: 0.16rem;
        gap: 0.12rem;
    }
    .brand {
        gap: 0.04rem;
        font-size: 0.14rem;
    }
    .brand strong {
        font-size: 0.28rem;
    }
    .head-contact {
        margin-left: auto;
    }
    .head-contact > a,
    .head-contact .social {
        display: none;
    }
    .cta.small {
        padding: 0.1rem;
        font-size: 0.14rem;
    }
    .menu-toggle {
        display: block;
        order: 2;
        font-size: 0.23rem;
        min-width: 0.38rem;
        min-height: 0.42rem;
    }
    .mast nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.1rem);
        left: var(--pad);
        right: var(--pad);
        width: auto;
        z-index: 2;
        padding: 0.12rem 0.18rem;
        border-radius: 0.12rem;
        background: white;
        box-shadow: 0 0.08rem 0.3rem #11253226;
        align-items: stretch;
        gap: 0;
    }
    .mast nav.open {
        display: flex;
        flex-direction: column;
    }
    nav a,
    nav button {
        text-align: left;
        padding: 0.1rem 0;
    }
    .hero {
        padding-top: 0.6rem;
    }
    .hero .cta {
        margin-top: 0.24rem;
    }
    .hero .wide-photo {
        margin-top: 0.3rem;
    }
    .cta {
        font-size: 0.18rem;
        padding: 0.14rem 0.2rem;
    }
    .tagline {
        margin-bottom: 0.22rem;
    }
    .services {
        padding: 0.44rem 0;
    }
    .service-rail article {
        font-size: 0.16rem;
        padding: 0.22rem 0.2rem;
    }
    h3,
    summary {
        font-size: 0.24rem;
    }
    h3 {
        margin-bottom: 0.18rem;
    }
    .doc {
        padding: 0.18rem;
    }
    summary {
        padding: 0.18rem;
    }
    .price-list > div {
        padding: 0.13rem 0;
        font-size: 0.16rem;
    }
    .price h2,
    #contacts h2 {
        margin-bottom: 0.24rem;
    }
    .map {
        margin-top: 0.35rem;
    }
    footer {
        font-size: 0.12rem;
        padding-block: 0.3rem 0.24rem;
    }
    .numbers {
        padding-left: 0;
    }
    .tagline {
        font-size: 0.18rem;
    }
    h1 {
        font-size: 0.51rem;
        line-height: 1.02;
    }
    h2,
    dt {
        font-size: 0.44rem;
    }
    .wide-photo {
        aspect-ratio: 1.7;
        border-radius: 0.16rem;
    }
    .about,
    .doctor {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    .numbers {
        order: 2;
        width: 100%;
    }
    dl {
        gap: 0.14rem;
    }
    dl div {
        gap: 0.18rem;
    }
    dt {
        min-width: 1rem;
    }
    dd {
        max-width: none;
        font-size: 0.18rem;
    }
    .license {
        margin-top: 0.22rem;
    }
    .about .copy {
        margin-top: 0.2rem;
    }
    .specialty {
        margin: 0.16rem 0 0.24rem;
    }
    .doctor img {
        width: min(100%, 4.7rem);
        align-self: center;
    }
    .section-head {
        margin-bottom: 0.23rem;
    }
    .slide-buttons {
        width: 0.85rem;
        height: 0.4rem;
    }
    .service-rail,
    .doc-rail {
        grid-auto-columns: min(86%, 3.6rem);
    }
    .service-rail article {
        min-height: 2.05rem;
    }
    .doc {
        min-height: 1.85rem;
    }
    summary {
        border-radius: 0.12rem;
    }
    summary::after {
        width: 0.32rem;
    }
    .price-list > div {
        gap: 0.12rem;
    }
    .contact-grid,
    footer,
    footer div {
        display: grid;
        gap: 0.18rem;
    }
    .contact-actions {
        justify-items: start;
    }
    .contact-actions img {
        width: 0.4rem;
    }
    .map.wide-photo {
        aspect-ratio: 1.35;
    }
    footer div {
        gap: 0.08rem;
    }
    dialog {
        padding: 0.3rem 0.24rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
@supports (text-box-trim: trim-both) {
    h1,
    h2,
    .brand strong,
    dt {
        text-box-trim: trim-both;
        text-box-edge: cap alphabetic;
    }
}
.doc strong {
    background-size: 0.6rem 0.01rem;
}

.mast nav {
    flex-wrap: wrap;
}
.mast nav a,
.mast nav button {
    overflow-wrap: anywhere;
}
.doc strong {
    overflow-wrap: anywhere;
}
