﻿:root {
    --bg: #f5fbfb;
    --white: #ffffff;
    --text: #1d2b34;
    --muted: #6c7b88;
    --primary: #1aa3a3;
    --primary-dark: #0f7f7f;
    --accent: #ffbf5f;
    --line: #ddeceb;
    --shadow: 0 20px 60px rgba(19, 60, 71, 0.12);
    --shadow-hover: 0 25px 70px rgba(19, 60, 71, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(26,163,163,.08), transparent 30%), radial-gradient(circle at top right, rgba(255,191,95,.10), transparent 28%), #ffffff;
    line-height: 1.55;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

main {
    overflow: hidden;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    transition: .25s ease;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221,236,235,.7);
}

    .site-header.scrolled {
        box-shadow: 0 10px 35px rgba(14, 48, 60, 0.10);
    }

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}

    .logo img {
        width: 54px;
        height: 54px;
        object-fit: contain;
    }

.logo-text {
    display: flex;
    flex-direction: column;
}

    .logo-text strong {
        font-size: 22px;
        line-height: 1;
    }

    .logo-text span {
        color: var(--muted);
        font-size: 13px;
        margin-top: 4px;
    }

.site-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .site-menu a {
        color: var(--text);
        padding: 12px 16px;
        border-radius: 999px;
        font-weight: 600;
        transition: .2s ease;
    }

        .site-menu a:hover {
            background: rgba(26,163,163,.10);
            color: var(--primary-dark);
        }

.header-contacts {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    white-space: nowrap;
    font-weight: 700;
    color: var(--text);
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    cursor: pointer;
    padding: 10px;
}

    .menu-button span {
        display: block;
        height: 2px;
        background: #fff;
        margin: 5px 0;
        border-radius: 10px;
    }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 700;
    transition: .25s ease;
}

    .button:hover {
        transform: translateY(-2px);
    }

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 14px 30px rgba(26,163,163,.28);
}

.button-secondary {
    background: rgba(255,255,255,.74);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.8);
    backdrop-filter: blur(10px);
}

.button-mini {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
}

.button-full {
    width: 100%;
}

/* REVIEWS */
.reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.modern-review {
    position: relative;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff, #f8fcfc);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.review-mark {
    font-size: 62px;
    line-height: 1;
    color: rgba(26,163,163,.18);
    font-weight: 900;
    margin-bottom: 10px;
}

.modern-review h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.modern-review p {
    margin: 0;
    color: var(--muted);
}

/* CTA */
.cta-section {
    padding-top: 40px;
    padding-bottom: 100px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-radius: 34px;
    padding: 40px;
    background: radial-gradient(circle at top right, rgba(255,255,255,.15), transparent 30%), linear-gradient(135deg, #109a9a, #0f7b7b);
    color: #fff;
    box-shadow: 0 25px 80px rgba(16, 122, 122, .24);
}

.cta-content h2 {
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,.92);
}

.contact-form {
    display: grid;
    gap: 14px;
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        border: 1px solid rgba(255,255,255,.25);
        background: rgba(255,255,255,.96);
        border-radius: 18px;
        padding: 15px 18px;
        font-size: 16px;
        color: var(--text);
        outline: none;
    }

    .contact-form textarea {
        resize: vertical;
        min-height: 130px;
    }

/* INNER PAGES */
.page-head {
    padding: 80px 0 40px;
    background: radial-gradient(circle at left top, rgba(26,163,163,.12), transparent 30%), linear-gradient(180deg, #f8fcfc, #ffffff);
}

    .page-head p {
        max-width: 720px;
        margin-top: 14px;
        font-size: 18px;
        color: var(--muted);
    }

.narrow {
    max-width: 900px;
}

.detail-image {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.content {
    font-size: 18px;
    color: #2d3e48;
}

    .content h2,
    .content h3,
    .content h4 {
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .content p {
        margin: 0 0 16px;
    }

    .content img {
        border-radius: 18px;
        margin: 20px 0;
    }

    .content ul,
    .content ol {
        padding-left: 20px;
        margin-bottom: 16px;
    }

    .content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

        .content table td,
        .content table th {
            border: 1px solid var(--line);
            padding: 10px 12px;
        }

.video-box {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    background: #000;
}

    .video-box iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.price-list {
    display: grid;
    gap: 18px;
}

.price-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(16, 58, 70, .07);
}

    .price-item h3 {
        margin: 0 0 8px;
    }

    .price-item p {
        margin: 0;
        color: var(--muted);
    }

.price-content {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary-dark);
    white-space: nowrap;
}

.contacts {
    display: grid;
    gap: 20px;
}

    .contacts div {
        padding: 22px;
        border-radius: 20px;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: 0 10px 30px rgba(16, 58, 70, .07);
    }

    .contacts b {
        display: block;
        margin-bottom: 6px;
    }

.empty {
    padding: 26px;
    border-radius: 22px;
    background: #f8fcfc;
    border: 1px solid var(--line);
}

.map iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

.form-result {
    padding: 14px 16px;
    border-radius: 16px;
    margin-top: 12px;
}

.form-result-ok {
    background: #e6f8ea;
    color: #0f6a35;
}

.form-result-error {
    background: #ffebeb;
    color: #a22323;
}

/* FOOTER */
.site-footer {
    background: radial-gradient(circle at top right, rgba(26,163,163,.10), transparent 25%), #15242c;
    color: #fff;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

    .footer-brand img {
        width: 54px;
        height: 54px;
        object-fit: contain;
    }

.footer-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

.site-footer a {
    display: block;
    color: rgba(255,255,255,.86);
    margin-bottom: 10px;
}

.site-footer p {
    color: rgba(255,255,255,.72);
    margin: 0 0 10px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .cta-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .header-row {
        grid-template-columns: auto auto;
    }

    .menu-button {
        display: block;
        justify-self: end;
    }

    .header-contacts {
        display: none;
    }

    .site-menu {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 10px;
        box-shadow: var(--shadow);
    }

        .site-menu.is-open {
            display: flex;
        }

        .site-menu a {
            padding: 12px 14px;
        }

    .cards-3,
    .reviews,
    .footer-grid,
    .price-item {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 70px 0;
    }

    .cta-box {
        padding: 24px;
    }

    .card-body h3,
    .modern-review h3 {
        font-size: 20px;
    }
}

/* HOME DIRECTIONS */

.home-directions-section {
    padding: 76px 0 82px;
    background: radial-gradient(circle at 8% 14%, rgba(26, 163, 163, .10), transparent 34%), radial-gradient(circle at 92% 20%, rgba(128, 87, 200, .12), transparent 34%), #ffffff;
}

.home-directions-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

    .home-directions-head h2 {
        margin: 0;
        color: var(--text);
        font-size: clamp(30px, 3vw, 44px);
        line-height: 1.12;
        letter-spacing: -.8px;
    }

    .home-directions-head p {
        max-width: 760px;
        margin: 12px 0 0;
        color: var(--muted);
        font-size: 17px;
    }

.home-directions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.home-directions-card {
    position: relative;
    overflow: hidden;
    padding: 34px 34px 32px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(221, 236, 235, .95);
    box-shadow: 0 18px 54px rgba(19, 60, 71, .10);
}

    .home-directions-card::before {
        content: "";
        position: absolute;
        top: -90px;
        right: -90px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        opacity: .16;
        pointer-events: none;
    }

.home-directions-card--perspektiva::before {
    background: #1aa3a3;
}

.home-directions-card--mediator::before {
    background: #8057c8;
}

.home-directions-top {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.home-directions-name {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.home-directions-card--perspektiva .home-directions-name {
    color: var(--primary-dark);
}

.home-directions-card--mediator .home-directions-name {
    color: #8057c8;
}

.home-directions-subtitle {
    max-width: 430px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.home-directions-list {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 11px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

    .home-directions-list li {
        position: relative;
        padding-left: 24px;
        color: var(--text);
        font-size: 17px;
        line-height: 1.35;
        font-weight: 800;
    }

        .home-directions-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .62em;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary);
            transform: translateY(-50%);
        }

.home-directions-card--mediator .home-directions-list li::before {
    background: #8057c8;
}

.home-directions-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(26, 163, 163, .24);
    transition: .22s ease;
    cursor: pointer;
}

    .home-directions-button:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(26, 163, 163, .30);
    }

.home-directions-button--mediator {
    background: linear-gradient(135deg, #8f6bd0, #6f4bb8);
    box-shadow: 0 14px 30px rgba(111, 75, 184, .24);
}

    .home-directions-button--mediator:hover {
        box-shadow: 0 18px 38px rgba(111, 75, 184, .30);
    }

/* DIRECTIONS MODAL */

.directions-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .directions-modal.is-open {
        display: flex;
    }

.directions-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 30, .62);
    backdrop-filter: blur(6px);
}

.directions-modal__box {
    position: relative;
    z-index: 2;
    width: min(960px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 36px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
}

.directions-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f2f7f7;
    color: var(--text);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.directions-modal__box h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -.6px;
}

.directions-modal__box p {
    max-width: 820px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.directions-modal__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

    .directions-modal__columns ul,
    .directions-modal__item ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .directions-modal__columns li,
    .directions-modal__item li {
        position: relative;
        margin-bottom: 12px;
        padding-left: 22px;
        color: var(--text);
        font-size: 16px;
        line-height: 1.38;
        font-weight: 800;
    }

        .directions-modal__columns li::before,
        .directions-modal__item li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .62em;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary);
            transform: translateY(-50%);
        }

.directions-modal__blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.directions-modal__item {
    padding: 22px;
    border-radius: 22px;
    background: #f8fcfc;
    border: 1px solid var(--line);
}

    .directions-modal__item h3 {
        margin: 0 0 14px;
        color: #6f4bb8;
        font-size: 22px;
        line-height: 1.2;
        font-weight: 950;
    }

.content-label--mediator {
    background: rgba(128, 87, 200, .12);
    color: #6f4bb8;
}

body.directions-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .home-directions-grid {
        grid-template-columns: 1fr;
    }

    .home-directions-card {
        padding: 30px 26px;
        border-radius: 26px;
    }

    .directions-modal__columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .home-directions-section {
        padding: 54px 0 58px;
    }

    .home-directions-head {
        margin-bottom: 24px;
    }

        .home-directions-head h2 {
            font-size: 28px;
        }

        .home-directions-head p {
            font-size: 15px;
        }

    .home-directions-name {
        font-size: 24px;
    }

    .home-directions-subtitle {
        font-size: 15px;
    }

    .home-directions-list {
        gap: 10px;
    }

        .home-directions-list li {
            font-size: 15.5px;
            padding-left: 20px;
        }

    .home-directions-button {
        width: 100%;
    }

    .directions-modal {
        padding: 12px;
    }

    .directions-modal__box {
        padding: 28px 20px 24px;
        border-radius: 24px;
    }

    .directions-modal__close {
        top: 12px;
        right: 12px;
    }

    .directions-modal__box p {
        font-size: 15px;
    }

    .directions-modal__columns li,
    .directions-modal__item li {
        font-size: 15px;
    }
}
