/* =========================================================
   ДЕНТАЛ СТОРИ
   Основные цвета:
   тёплый серый / молочный / белый / графит
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #f3f0ec;
    --bg-light: #ebe6e0;

    --white: #ffffff;

    --dark: #4a4642;
    --text: #35312e;

    --muted: #77716b;
    --gray: #918982;

    --line: #d8d1ca;
    --border: #ded8d2;

    --radius: 22px;

    --shadow:
        0 18px 50px rgba(65, 59, 54, 0.08);

    --shadow-hover:
        0 25px 65px rgba(65, 59, 54, 0.14);

    --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--bg);

    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 60px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   HERO — ГЛАВНЫЙ ЭКРАН
========================================================= */

.hero {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    color: #fff;

    background: #68625d;
}


/* =========================================================
   ФОТО HERO
========================================================= */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:

        /* затемнение фотографии */
        linear-gradient(
            90deg,
            rgba(42, 39, 36, 0.72),
            rgba(71, 66, 61, 0.48) 55%,
            rgba(90, 83, 76, 0.25)
        ),

        /* фотография */
        url("images/dental-clinic.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


/* Дополнительное мягкое затемнение */

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(25, 23, 21, 0.25),
            transparent 35%,
            rgba(25, 23, 21, 0.40)
        );
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;
    z-index: 10;

    width: min(
        calc(100% - 60px),
        1280px
    );

    min-height: 90px;
    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.28);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    display: block;

    width: 82px;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   LICENSE / INN / OGRN
========================================================= */

.header-details {
    display: flex;
    align-items: center;

    margin-left: 18px;
    padding-left: 18px;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.35);

    gap: 16px;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 11px;
    line-height: 1.2;

    white-space: nowrap;
}

.header-details span {
    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 27px;

    margin-left: 42px;
}

.nav-menu a {
    color:
        rgba(255, 255, 255, 0.94);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.nav-menu a:hover {
    opacity: 0.65;

    transform:
        translateY(-1px);
}


/* =========================================================
   PHONE
========================================================= */

.header-phone {
    margin-left: 28px;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        opacity 0.25s ease;
}

.header-phone:hover {
    opacity: 0.7;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.logo img {
    display: block;

    width: 90px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 36px;

    margin-left: auto;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;

    font-weight: 600;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.nav-menu a:hover {
    opacity: 0.65;

    transform: translateY(-1px);
}


/* =========================================================
   HEADER PHONE
========================================================= */

.header-phone {
    color: #fff;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    margin-left: 15px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: relative;

    z-index: 3;

    width: min(
        calc(100% - 60px),
        var(--container)
    );

    margin: auto;

    padding-top: 70px;

    padding-bottom: 120px;
}


/* маленькая надпись */

.hero-label {
    margin-bottom: 18px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.20em;
}


/* =========================================================
   H1
========================================================= */

 .hero h1 {
        max-width: 100%;

        font-size: clamp(42px, 13vw, 58px);
        line-height: .95;

        letter-spacing: -.035em;
    }

/* =========================================================
   HERO TITLE
========================================================= */

.hero-title {
    max-width: 700px;

    margin:
        30px 0 36px;

    color: #fff;

    font-size:
        clamp(24px, 3vw, 42px);

    line-height: 1.2;

    font-weight: 400;
}

.hero-title strong {
    font-weight: 700;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}

.button {
    min-height: 56px;

    padding:
        0 26px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    border-radius: 50px;

    font-size: 15px;

    font-weight: 700;

    transition:
        all 0.25s ease;
}

.button span {
    font-size: 20px;

    line-height: 1;
}


/* Белая кнопка */

.button-white {
    color: var(--dark);

    background: #fff;

    border:
        1px solid
        #fff;
}

.button-white:hover {
    color: var(--dark);

    background: #ebe6e0;

    transform:
        translateY(-2px);
}


/* Прозрачная кнопка */

.button-outline {
    color: #fff;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.70);

    backdrop-filter:
        blur(5px);
}

.button-outline:hover {
    background:
        rgba(255, 255, 255, 0.14);

    transform:
        translateY(-2px);
}


/* Тёмная кнопка */

.button-dark {
    color: #fff;

    background: var(--dark);

    border:
        1px solid
        var(--dark);
}

.button-dark:hover {
    background: #44403c;

    transform:
        translateY(-2px);
}


/* =========================================================
   ADVANTAGES
========================================================= */

.advantages {
    position: relative;

    z-index: 5;

    width: min(
        calc(100% - 60px),
        var(--container)
    );

    margin: 0 auto;

    padding:
        25px 0 35px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.35);
}

.advantage {
    display: flex;

    align-items: center;

    gap: 16px;

    padding:
        0 30px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.28);
}

.advantage:first-child {
    padding-left: 0;
}

.advantage:last-child {
    padding-right: 0;

    border-right: none;
}


/* Иконка */

.advantage-icon {
    width: 48px;

    height: 48px;

    flex:
        0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.70);

    border-radius: 50%;
}


/* Заголовок */

.advantage strong {
    display: block;

    color: #fff;

    font-size: 15px;

    line-height: 1.3;
}


/* Описание */

.advantage span {
    display: block;

    margin-top: 5px;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 12px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding:
        120px 0;
}

.section-label {
    margin-bottom: 12px;

    color: var(--gray);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.18em;
}

h2 {
    margin: 0;

    color: var(--dark);

    font-size:
        clamp(38px, 5vw, 64px);

    line-height: 1.05;

    letter-spacing: -0.04em;

    font-weight: 800;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 60px;

    margin-bottom: 55px;
}

.section-header > p {
    max-width: 470px;

    margin: 0;

    color: var(--muted);

    font-size: 16px;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    background: var(--bg);
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.service-card {
    position: relative;

    min-height: 290px;

    padding: 34px;

    background: #fff;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    transition:
        all 0.3s ease;
}

.service-card:hover {
    transform:
        translateY(-6px);

    border-color:
        #c3bbb4;

    box-shadow:
        var(--shadow-hover);
}


/* Номер */

.service-number {
    display: block;

    margin-bottom: 45px;

    color: #a39b94;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.10em;
}


/* Заголовок */

.service-card h3 {
    margin:
        0 0 15px;

    color: var(--dark);

    font-size: 24px;

    line-height: 1.15;
}


/* Текст */

.service-card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


/* Ссылка */

.service-card a {
    position: absolute;

    left: 34px;

    bottom: 30px;

    color: #625c56;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding:
        120px 0;

    background:
        var(--bg-light);
}

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;
}

.about-text {
    max-width: 600px;

    margin:
        30px 0 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;
}

.about-card {
    padding: 45px;

    background:
        rgba(255, 255, 255, 0.82);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}

.about-card p {
    margin: 0;

    color: var(--text);

    font-size: 19px;

    line-height: 1.65;
}


/* Факты */

.about-facts {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    margin-top: 45px;

    padding-top: 30px;

    border-top:
        1px solid
        var(--line);
}

.about-facts strong {
    display: block;

    color: var(--dark);

    font-size: 27px;
}

.about-facts span {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   DOCTORS
========================================================= */

.doctors {
    background: var(--bg);
}

.doctor-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.doctor-card {
    overflow: hidden;

    background: #fff;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    transition:
        all 0.3s ease;
}

.doctor-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-hover);
}


/* Фото врача */

.doctor-photo {
    aspect-ratio:
        4 / 4.6;

    overflow: hidden;

    background:
        #ded9d4;
}

.doctor-photo img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.doctor-card:hover
.doctor-photo img {
    transform:
        scale(1.04);
}


/* Информация */

.doctor-info {
    padding: 28px;
}

.doctor-info h3 {
    margin:
        0 0 10px;

    color: var(--dark);

    font-size: 20px;

    line-height: 1.25;
}

.doctor-info p {
    margin:
        0 0 20px;

    color: var(--muted);

    font-size: 13px;
}

.doctor-info a {
    color: #625c56;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   CONTACTS
========================================================= */

.contacts {
    padding:
        120px 0;

    background:
        var(--bg-light);
}

.contacts-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;
}

.contacts h2 {
    max-width: 500px;
}

.contacts p {
    margin:
        25px 0 30px;

    color: var(--muted);

    font-size: 17px;
}


/* Карточка контактов */

.contact-card {
    padding:
        10px 35px;

    background: #fff;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}

.contact-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding:
        25px 0;

    border-bottom:
        1px solid
        var(--line);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row span {
    color: var(--muted);

    font-size: 13px;
}

.contact-row strong {
    color: var(--dark);

    font-size: 14px;

    text-align: right;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding:
        30px 0;

    background:
        var(--dark);

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 12px;
}

.footer-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .container {
        width:
            calc(100% - 36px);
    }

    .header {
        width:
            calc(100% - 36px);

        min-height: 75px;
    }

    .logo img {
        width: 140px;
    }

    .nav-menu {
        display: none;
    }

    .header-phone {
        font-size: 13px;
    }

    .hero-content {
        width:
            calc(100% - 36px);

        padding-top: 80px;

        padding-bottom: 80px;
    }

    .advantages {
        width:
            calc(100% - 36px);

        grid-template-columns:
            1fr;

        gap: 18px;

        padding-bottom: 25px;
    }

    .advantage {
        padding:
            10px 0;

        border-right: none;
    }

    .advantage:first-child {
        padding-left: 0;
    }

    .advantage:last-child {
        padding-right: 0;
    }

    .section {
        padding:
            80px 0;
    }

    .section-header {
        display: block;

        margin-bottom: 35px;
    }

    .section-header > p {
        margin-top: 25px;
    }

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

    .about-grid {
        grid-template-columns:
            1fr;

        gap: 40px;
    }

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

    .contacts-grid {
        grid-template-columns:
            1fr;

        gap: 45px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .header-phone {
        font-size: 0;
    }

    .header-phone::after {
        content: "☎";

        width: 42px;

        height: 42px;

        display: flex;

        align-items: center;

        justify-content: center;

        color: #fff;

        font-size: 18px;

        border:
            1px solid
            rgba(255, 255, 255, 0.7);

        border-radius: 50%;
    }

    .hero h1 {
        font-size:
            clamp(43px, 14vw, 70px);
    }

    .hero-title {
        margin-top: 22px;

        font-size: 24px;
    }

    .hero-buttons {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .button {
        width: 100%;
    }

    .advantages {
        padding-top: 20px;
    }

    .advantage {
        align-items:
            flex-start;
    }

    .advantage-icon {
        width: 42px;

        height: 42px;

        flex-basis: 42px;
    }

    h2 {
        font-size: 39px;
    }

    .about-card {
        padding: 28px;
    }

    .about-facts {
        grid-template-columns:
            1fr;
    }

    .contact-card {
        padding:
            5px 22px;
    }

    .contact-row {
        flex-direction:
            column;

        align-items:
            flex-start;

        gap: 6px;
    }

    .contact-row strong {
        text-align:
            left;
    }

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

/* =========================================================
   НОВАЯ МОБИЛЬНАЯ ВЕРСИЯ
========================================================= */

@media (max-width: 600px) {

    /* ---------- ОБЩЕЕ ---------- */

    .container {
        width: calc(100% - 32px);
    }


    /* ---------- HEADER ---------- */

    .header {
        width: calc(100% - 32px);
        min-height: 72px;

        gap: 0;

        padding: 10px 0;
    }

    .logo img {
        width: 92px;
    }

    .header-details {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .header-phone {
        margin-left: auto;
        font-size: 0;
    }

    .header-phone::after {
        content: "☎";

        width: 40px;
        height: 40px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #fff;

        font-size: 17px;

        border: 1px solid rgba(255,255,255,.65);
        border-radius: 50%;
    }


    /* ---------- HERO ---------- */

    .hero {
        min-height: 100svh;
    }

    .hero::before {
        background-position: 62% center;
    }

    .hero-content {
        width: calc(100% - 32px);

        margin: 0 auto;

        padding-top: 70px;
        padding-bottom: 55px;
    }

    .hero-label {
        margin-bottom: 14px;

        font-size: 10px;
        letter-spacing: .16em;
    }

    .hero h1 {
    width: 100%;
    max-width: 100%;

    font-size: clamp(34px, 10.5vw, 52px);
    line-height: 1;

    letter-spacing: -0.045em;

    white-space: nowrap;
}
.hero-content {
    width: calc(100% - 32px);
    max-width: 100%;
    overflow: hidden;
}

    .hero-title {
        max-width: 340px;

        margin: 20px 0 28px;

        font-size: 22px;
        line-height: 1.25;
    }


    /* ---------- КНОПКИ ---------- */

    .hero-buttons {
        display: flex;
        flex-direction: column;

        width: 100%;

        gap: 10px;
    }

    .button {
        width: 100%;
        min-height: 52px;

        padding: 0 20px;

        font-size: 14px;
    }


    /* ---------- ПРЕИМУЩЕСТВА ---------- */

    .advantages {
        width: calc(100% - 32px);

        display: grid;
        grid-template-columns: 1fr;

        gap: 0;

        padding: 18px 0 20px;
    }

    .advantage {
        min-height: 58px;

        padding: 12px 0 !important;

        display: flex;
        align-items: center;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255,255,255,.22);
    }

    .advantage:last-child {
        border-bottom: none;
    }

    .advantage-icon {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

        font-size: 17px;
    }

    .advantage strong {
        font-size: 13px;
    }

    .advantage span {
        margin-top: 2px;

        font-size: 11px;
    }


    /* ---------- СЕКЦИИ ---------- */

    .section,
    .about-section,
    .contacts {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-label {
        margin-bottom: 10px;

        font-size: 10px;
        letter-spacing: .15em;
    }

    h2 {
        font-size: 38px;
        line-height: 1.05;
    }

    .section-header > p {
        margin-top: 18px;

        font-size: 14px;
        line-height: 1.6;
    }


    /* ---------- УСЛУГИ ---------- */

    .service-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .service-card {
        min-height: 245px;

        padding: 25px;
    }

    .service-number {
        margin-bottom: 30px;

        font-size: 11px;
    }

    .service-card h3 {
        font-size: 21px;
    }

    .service-card p {
        font-size: 13px;
        line-height: 1.55;
    }

    .service-card a {
        left: 25px;
        bottom: 23px;

        font-size: 12px;
    }


    /* ---------- О КЛИНИКЕ ---------- */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .about-text {
        margin-top: 20px;

        font-size: 15px;
        line-height: 1.7;
    }

    .about-card {
        padding: 25px;
    }

    .about-card p {
        font-size: 16px;
        line-height: 1.55;
    }

    .about-facts {
        grid-template-columns: 1fr 1fr;

        gap: 15px;

        margin-top: 30px;
        padding-top: 22px;
    }

    .about-facts strong {
        font-size: 22px;
    }

    .about-facts span {
        font-size: 11px;
    }


    /* ---------- ВРАЧИ ---------- */

    .doctor-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .doctor-card {
        border-radius: 18px;
    }

    .doctor-photo {
        aspect-ratio: 1 / 1;
    }

    .doctor-info {
        padding: 22px;
    }

    .doctor-info h3 {
        font-size: 19px;
    }

    .doctor-info p {
        font-size: 12px;
        line-height: 1.5;
    }


    /* ---------- КОНТАКТЫ ---------- */

    .contacts-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .contacts h2 {
        max-width: 100%;
    }

    .contacts p {
        margin: 18px 0 25px;

        font-size: 14px;
        line-height: 1.6;
    }

    .contact-card {
        padding: 5px 20px;

        border-radius: 18px;
    }

    .contact-row {
        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 6px;

        padding: 19px 0;
    }

    .contact-row span {
        font-size: 11px;

        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .contact-row strong {
        font-size: 14px;
        line-height: 1.5;

        text-align: left;
    }


    /* ---------- FOOTER ---------- */

    footer {
        padding: 25px 0;
    }

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

        align-items: flex-start;

        gap: 10px;

        font-size: 11px;
    }
}