/*==================================================
                RESPONSIVE
==================================================*/


/*==================================================
                TABLET
==================================================*/

@media (max-width: 1100px) {

    .container {
        width: min(var(--container-width), calc(100% - 40px));
    }


    /* HEADER */

    .header .container {
        gap: 22px;
    }

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 12px;
    }

    .phone {
        font-size: 13px;
    }


    /* HERO */

    .hero {
        padding: 150px 0 90px;
    }

    .hero-grid {
        grid-template-columns: 1fr 430px;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(50px, 6vw, 68px);
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-image img {
        height: 580px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* TARIFFS */

    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* CONTACTS */

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contacts-map,
    .contacts-map iframe {
        min-height: 500px;
    }


    /* APPOINTMENT */

    .appointment-box {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 55px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

}



/*==================================================
                TABLET / LARGE MOBILE
==================================================*/

@media (max-width: 800px) {

    /* GLOBAL */

    html,
    body {
        overflow-x: hidden;
    }

    section {
        padding: 80px 0;
    }

    .container {
        width: calc(100% - 32px);
    }


    /* HEADER */

    .header {
        height: 74px;
    }

    .header .container {
        gap: 12px;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
    }

    .logo span {
        font-size: 19px;
    }

    .nav {
        display: none;
    }

    .phone {
        display: inline-flex;
        font-size: 12px;
        white-space: nowrap;
    }


    /* HERO */

    .hero {
        padding: 120px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .hero h1 {
        max-width: 100%;
        margin-bottom: 24px;
        font-size: clamp(46px, 12vw, 64px);
        line-height: .98;
    }

    .hero-description {
        max-width: 100%;
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 1.8;
    }

    .hero-meta {
        gap: 8px;
        margin-bottom: 28px;
    }

    .hero-meta span {
        padding: 8px 13px;
        font-size: 11px;
    }

    .hero-buttons {
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        flex: 1;
        min-height: 54px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 460px;
    }

    .hero-image::after {
        inset: 10px;
    }


    /* SECTION TITLES */

    .section-subtitle {
        margin-bottom: 15px;
        font-size: 11px;
    }

    .section-subtitle::before {
        width: 22px;
    }

    .section-title {
        max-width: 100%;
        margin-bottom: 22px;
        font-size: clamp(40px, 10vw, 54px);
    }

    .section-description {
        font-size: 16px;
        line-height: 1.8;
    }


    /* NOTICE */

    .notice {
        padding: 24px 0;
    }

    .notice p {
        font-size: 13px;
        line-height: 1.7;
    }


    /* ABOUT */

    .about-status {
        margin: -5px 0 40px;
        font-size: 21px;
    }

    .about-row {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 22px 0;
    }

    .about-row span {
        font-size: 10px;
    }

    .about-row strong {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.7;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .service-card {
        min-height: 205px;
        padding: 32px 28px;
    }

    .service-card h3 {
        margin-bottom: 12px;
        font-size: 28px;
    }

    .service-card p {
        max-width: 100%;
        font-size: 14px;
    }


    /* APPOINTMENT */

    .appointment-box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 28px;
    }

    .appointment-info {
        padding-top: 0;
    }

    .appointment-info p {
        font-size: 15px;
        line-height: 1.8;
    }

    .appointment-form {
        gap: 12px;
    }

    .appointment-form input,
    .appointment-form select,
    .appointment-form textarea {
        padding: 15px 16px;
        font-size: 14px;
    }

    .appointment-form textarea {
        min-height: 130px;
    }

    .appointment-form .btn {
        width: 100%;
        margin-top: 6px;
    }


    /* DOCUMENTS */

    .documents {
        padding: 80px 0;
    }

    .documents-list {
        margin-top: 42px;
    }

    .document-item summary {
        padding: 21px 0;
        gap: 15px;
        font-size: 24px;
        line-height: 1.2;
    }

    .document-item summary::after {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        font-size: 18px;
    }

    .document-item summary:hover {
        padding-left: 0;
    }

    .document-content {
        max-width: 100%;
        padding: 0 35px 25px 0;
    }

    .document-content li {
        padding-left: 18px;
        font-size: 14px;
    }


    /* INFORMATION */

    .information-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .information-card {
        min-height: 130px;
        padding: 27px 25px;
        font-size: 14px;
    }


    /* TARIFFS */

    .tariffs-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
        gap: 15px;
    }

    .tariff-card {
        min-height: 220px;
        padding: 32px 28px;
    }

    .tariff-card h3 {
        margin-bottom: 15px;
        font-size: 28px;
    }

    .tariff-card p {
        font-size: 14px;
    }


    /* RESOURCES */

    .resources-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .resource-card {
        min-height: 95px;
        padding: 25px 28px;
        font-size: 22px;
    }

    .resource-card:hover {
        padding-left: 28px;
    }


    /* CONTACTS */

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-item {
        margin-bottom: 28px;
    }

    .contact-item span {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .contact-item p,
    .contact-item a {
        font-size: 16px;
        line-height: 1.7;
    }

    .contacts-map,
    .contacts-map iframe {
        min-height: 420px;
    }


    /* CTA */

    .cta {
        padding: 80px 0;
    }

    .cta h2 {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.05;
    }

    .cta::before {
        width: 360px;
        height: 360px;
    }

    .cta .btn {
        width: 100%;
        max-width: 360px;
    }


    /* FOOTER */

    .footer {
        padding: 55px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-logo {
        font-size: 25px;
    }

    .footer-left p {
        max-width: 100%;
    }

}



/*==================================================
                MOBILE
==================================================*/

@media (max-width: 600px) {

    /* HEADER */

    .header .container {
        justify-content: space-between;
    }

    .logo {
        gap: 9px;
    }

    .logo img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
    }

    .logo span {
        font-size: 18px;
    }

    .phone {
        font-size: 11px;
    }


    /* HERO */

    .hero {
        padding-top: 110px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(44px, 13vw, 58px);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-meta span {
        width: fit-content;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100%;
        flex: none;
    }

    .hero-image img {
        height: 400px;
    }


    /* TITLES */

    .section-title {
        font-size: clamp(38px, 12vw, 48px);
    }


    /* SERVICES */

    .service-card {
        min-height: 195px;
        padding: 30px 24px;
    }

    .service-card h3 {
        font-size: 27px;
    }


    /* APPOINTMENT */

    .appointment-box {
        padding: 32px 20px;
    }


    /* DOCUMENTS */

    .document-item summary {
        font-size: 22px;
    }

    .document-content {
        padding-right: 15px;
    }


    /* INFORMATION */

    .information-card {
        padding: 25px 22px;
    }


    /* TARIFFS */

    .tariff-card {
        padding: 30px 24px;
    }


    /* RESOURCES */

    .resource-card {
        padding: 23px 24px;
        font-size: 20px;
    }

    .resource-card:hover {
        padding-left: 24px;
    }


    /* MAP */

    .contacts-map,
    .contacts-map iframe {
        min-height: 360px;
    }


    /* CTA */

    .cta {
        padding: 70px 0;
    }

    .cta::before {
        width: 300px;
        height: 300px;
    }

}



/*==================================================
                SMALL MOBILE
==================================================*/

@media (max-width: 480px) {

    .container {
        width: calc(100% - 28px);
    }


    /* HEADER */

    .header {
        height: 70px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
    }

    .logo span {
        font-size: 16px;
    }

    .phone {
        font-size: 10px;
    }


    /* HERO */

    .hero {
        padding: 105px 0 65px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-image img {
        height: 360px;
    }

    .hero-image::after {
        inset: 8px;
    }


    /* SECTION */

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 40px;
    }

    .section-description {
        font-size: 15px;
    }


    /* NOTICE */

    .notice {
        padding: 22px 0;
    }

    .notice p {
        font-size: 12px;
    }


    /* ABOUT */

    .about-status {
        font-size: 19px;
    }

    .about-row {
        padding: 20px 0;
    }

    .about-row strong {
        font-size: 15px;
    }


    /* SERVICES */

    .services-grid {
        margin-top: 35px;
    }

    .service-card {
        min-height: auto;
        padding: 28px 22px;
    }

    .service-card h3 {
        font-size: 25px;
    }

    .service-card p {
        font-size: 13px;
        line-height: 1.75;
    }


    /* APPOINTMENT */

    .appointment-box {
        padding: 28px 18px;
    }

    .appointment-info p {
        font-size: 14px;
    }

    .appointment-form input,
    .appointment-form select,
    .appointment-form textarea {
        padding: 14px;
    }


    /* DOCUMENTS */

    .documents-list {
        margin-top: 32px;
    }

    .document-item summary {
        padding: 20px 0;
        font-size: 20px;
    }

    .document-item summary::after {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 16px;
    }

    .document-content {
        padding: 0 5px 22px 0;
    }

    .document-content li {
        font-size: 13px;
        line-height: 1.7;
    }


    /* INFORMATION */

    .information-grid {
        margin-top: 32px;
    }

    .information-card {
        min-height: 120px;
        padding: 23px 20px;
        font-size: 13px;
    }


    /* TARIFFS */

    .tariffs-grid {
        margin-top: 32px;
    }

    .tariff-card {
        min-height: auto;
        padding: 28px 22px;
    }

    .tariff-card h3 {
        font-size: 25px;
    }

    .tariff-card p {
        font-size: 13px;
        line-height: 1.75;
    }


    /* RESOURCES */

    .resources-grid {
        margin-top: 32px;
    }

    .resource-card {
        min-height: 90px;
        padding: 22px;
        font-size: 19px;
    }

    .resource-card:hover {
        padding-left: 22px;
    }


    /* CONTACTS */

    .contact-item {
        margin-bottom: 25px;
    }

    .contact-item p,
    .contact-item a {
        font-size: 15px;
    }

    .contacts-map,
    .contacts-map iframe {
        min-height: 320px;
    }


    /* CTA */

    .cta {
        padding: 65px 0;
    }

    .cta h2 {
        font-size: 38px;
        margin-bottom: 25px;
    }

    .cta::before {
        width: 260px;
        height: 260px;
    }


    /* FOOTER */

    .footer {
        padding-top: 48px;
    }

    .footer-grid {
        gap: 28px;
        margin-bottom: 35px;
    }

    .footer-logo {
        font-size: 23px;
    }

    .footer-left p,
    .footer-links a,
    .footer-contacts a {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 11px;
        line-height: 1.6;
    }

}



/*==================================================
                VERY SMALL PHONES
==================================================*/

@media (max-width: 360px) {

    .container {
        width: calc(100% - 24px);
    }


    /* HEADER */

    .logo span {
        font-size: 15px;
    }

    .logo img {
        width: 31px !important;
        height: 31px !important;
        max-width: 31px !important;
    }

    .phone {
        font-size: 9px;
    }


    /* HERO */

    .hero h1 {
        font-size: 41px;
    }

    .hero-image img {
        height: 330px;
    }


    /* TITLES */

    .section-title {
        font-size: 36px;
    }


    /* CARDS */

    .service-card,
    .tariff-card {
        padding: 24px 18px;
    }

    .service-card h3,
    .tariff-card h3 {
        font-size: 23px;
    }


    /* DOCUMENTS */

    .document-item summary {
        font-size: 18px;
    }

    .document-item summary::after {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }


    /* CTA */

    .cta h2 {
        font-size: 34px;
    }

}

/*==================================================
                MOBILE MENU
==================================================*/


.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    background: transparent;
    border: 1px solid rgba(23, 58, 99, .15);

    border-radius: 2px;

    color: var(--color-primary);

    transition:
        background .3s ease,
        border-color .3s ease;
}


.mobile-menu-button span {
    display: block;

    width: 19px;
    height: 1px;

    background: var(--color-primary);

    transition:
        transform .3s ease,
        opacity .3s ease;
}


.mobile-menu-button:hover {
    border-color: var(--color-accent);
}


/*==================================================
                MOBILE MENU WINDOW
==================================================*/


.mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: min(420px, 88vw);
    height: 100vh;

    padding: 25px 28px;

    display: flex;
    flex-direction: column;

    background: #f8f8f6;

    box-shadow:
        -20px 0 60px rgba(15, 39, 70, .12);

    transform: translateX(105%);

    transition:
        transform .45s cubic-bezier(.2, .7, .2, 1);

    z-index: 2001;
}


.mobile-menu.active {
    transform: translateX(0);
}


/*==================================================
                MOBILE MENU HEADER
==================================================*/


.mobile-menu-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--color-border);
}


.mobile-menu-logo {
    display: flex;

    align-items: center;

    gap: 9px;
}


.mobile-menu-logo img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}


.mobile-menu-logo span {
    font-family: var(--font-title);

    font-size: 19px;
    font-weight: 600;

    color: var(--color-primary);
}


/*==================================================
                CLOSE BUTTON
==================================================*/


.mobile-menu-close {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(23, 58, 99, .15);

    background: transparent;

    color: var(--color-primary);

    font-size: 28px;
    font-weight: 300;

    line-height: 1;

    transition:
        color .3s ease,
        border-color .3s ease,
        background .3s ease;
}


.mobile-menu-close:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}


/*==================================================
                MOBILE NAV
==================================================*/


.mobile-nav {
    display: flex;

    flex-direction: column;

    margin-top: 35px;
}


.mobile-nav a {
    position: relative;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px 0;

    border-bottom: 1px solid var(--color-border);

    font-family: var(--font-title);

    font-size: 25px;
    font-weight: 600;

    line-height: 1.15;

    color: var(--color-primary);

    transition:
        color .3s ease,
        padding-left .3s ease;
}


.mobile-nav a:first-child {
    border-top: 1px solid var(--color-border);
}


.mobile-nav a span {
    min-width: 24px;

    font-family: var(--font-body);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;

    color: var(--color-accent);
}


.mobile-nav a:hover {
    padding-left: 8px;
    color: var(--color-accent);
}


/*==================================================
                MOBILE MENU FOOTER
==================================================*/


.mobile-menu-footer {
    margin-top: auto;

    display: flex;

    flex-direction: column;

    gap: 6px;

    padding-top: 25px;

    border-top: 1px solid var(--color-border);
}


.mobile-menu-footer span {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;

    color: var(--color-accent);
}


.mobile-menu-footer a {
    margin-bottom: 8px;

    font-size: 17px;
    font-weight: 600;

    color: var(--color-primary);
}


/*==================================================
                OVERLAY
==================================================*/


.mobile-menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(13, 33, 57, .35);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

    z-index: 2000;
}


.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/*==================================================
                MOBILE ONLY
==================================================*/


@media (max-width: 800px) {

    .mobile-menu-button {
        display: flex;
    }

}


/*==================================================
                SMALL MOBILE
==================================================*/


@media (max-width: 480px) {

    .mobile-menu {
        width: 92vw;
        padding: 22px 22px;
    }

    .mobile-nav {
        margin-top: 28px;
    }

    .mobile-nav a {
        padding: 16px 0;
        font-size: 22px;
    }

    .mobile-menu-footer a {
        font-size: 16px;
    }

}


/*==================================================
                VERY SMALL MOBILE
==================================================*/


@media (max-width: 360px) {

    .mobile-menu {
        width: 94vw;
        padding: 20px 18px;
    }

    .mobile-nav a {
        font-size: 20px;
        gap: 13px;
    }

}

@media (max-width: 480px) {

    .working-hours-row {
        grid-template-columns: 70px 1fr;
        gap: 8px 16px;
    }

    .working-hours-row span {
        grid-column: 2;
    }

    .working-hours-row span + span {
        margin-top: -8px;
    }
.document-item summary {
    gap: 15px;
    padding: 20px 0;
    font-size: 22px;
}

.document-item summary::after {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 17px;
}

.document-content {
    padding: 0 0 24px;
}

.document-content li {
    font-size: 14px;
}

}

/* =========================
   LEGAL PAGES — MOBILE
========================= */

@media (max-width: 700px) {

    .legal-page {
        padding: 110px 0 70px;
    }

    .legal-back {
        margin-bottom: 35px;
    }

    .legal-page h1 {
        font-size: 42px;
        line-height: 1.05;
    }

    .legal-page h2 {
        margin-top: 35px;
        font-size: 28px;
    }

    .legal-page p,
    .legal-page li {
        font-size: 14px;
        line-height: 1.7;
    }

    .legal-button {
        width: 100%;
    }
}