/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Remove list styles */
ul,
ol {
    list-style: none;
}

/* Remove text decoration from links */
a {
    text-decoration: none;
    color: inherit;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove button styles */
button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

/* Remove input styles */
input,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
}

/* CSS Custom Properties for Colors */
:root {
    /* Primary Colors */
    --color-border: #8AC5FF;
    --color-primary: #5CABFA;
    --color-primary-dark: #58A4EF;

    /* btn Colors */
    --color-btn-normal: #E64993;
    --color-btn-normal-hover: #FF67B1;
    --color-btn-normal-active: #C82B75;
    --color-btn-normal-disabled: #D6D6D6;

    /* second btn colors  */
    --color-btn-secondary: #1850AC;
    --color-btn-secondary-hover: #246CE2;
    --color-btn-secondary-active: #113A7E;
    --color-btn-secondary-disabled: #A9A9A9;

    /* Background Colors */
    --color-background: #ffffff;
    --color-background-alt: #f8f9fa;
    --color-background-dark: #222;

    /* Text Colors */
    --color-text: #4D4D6A;
    --color-text-white: #ffffff;

}

/* Responsive Container */
[class$='__container'] {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Container breakpoints */
@media (min-width: 576px) {
    [class$='__container'] {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    [class$='__container'] {
        max-width: 720px;
    }
}


@media (min-width: 1200px) {
    [class$='__container'] {
        max-width: 1200px;
    }
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
}
 /* btn */
.btn {
    padding: 12px 80px;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text-white);
    background-color: var(--color-btn-normal);
}

.btn--alt {
    background-color: var(--color-primary);
    width: 100%;
    color: var(--color-text-white);
    font-size: 1.125rem;
    border-radius: 4px;
}

.btn--alt:hover {
    background-color: var(--color-btn-secondary-hover);
    transition: .3s ease;
}

.btn--alt:active {
    background-color: var(--color-btn-secondary-active);
}

/* Header styles */
.header {
    background-color: var(--color-background);
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo {
    z-index: 3;
    transition: opacity 0.3s ease-in-out;
}

.header__logo img {
    display: block;
    max-height: 72px;
    height: 100%;
    width: auto;
}

/* Burger menu styles */
.header__burger {
    display: none;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 103;
    position: relative;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 6px 0;
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

/* Navigation styles */
.header__nav {
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 2;
}

.header__menu {
    display: flex;
    gap: 30px;
}

.header__menu-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
}

.header__menu-item:hover,
.header__menu-item:active {
    color: var(--color-btn-normal);
    transition: color 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .header__logo img{
        max-height: 54px;
    }
}

@media (max-width: 991px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 120px 0 0 0;
        transition: right 0.3s ease-in-out;
        z-index: 102;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .header__menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .header__menu-item {
        font-size: 1.25rem;
    }

    /* Open menu state */
    .header__nav.is-active {
        right: 0;
    }

    /* Hide logo when menu is open */
    .is-active~.header__logo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* Burger animation */
    .header__burger.is-active span {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        background-color: var(--color-text);
    }

    .header__burger.is-active span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .header__burger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.is-active span:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}


/* hero */
.hero {
    background: url(../img/hero/hero-bcg-full.webp) no-repeat top center / cover;
    padding-top: 200px;
    margin-top: -105px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.hero__container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: calc(100vh - 200px);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 60px;
}

.hero__title-bold {
    font-weight: 400;
}

.hero__buttons {
    margin: 0 0 60px 0;
    display: flex;
    gap: 40px;
}

.hero__button {
    padding: 18px 25px;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text-white);
    background-color: var(--color-btn-normal);
    transition: background-color 0.3s ease;
    border: 2px solid var(--color-btn-normal);
}

.hero__button:hover {
    background-color: var(--color-btn-normal-hover);
    border: 2px solid var(--color-btn-normal-hover);
    transition: background-color 0.3s ease;
}

.hero__button:active {
    background-color: var(--color-btn-normal-active);
    border: 2px solid var(--color-btn-normal-active);
}

.hero__button--secondary {
    background-color: transparent;
    color: var(--color-text);
}

.hero__button--secondary:hover {
    background-color: transparent;
}

.hero__button--secondary:active {
    background-color: var(--color-btn-normal-active);
    border: 2px solid var(--color-btn-normal-active);
    color: var(--color-text-white);
}

.hero__contacts {
    padding-bottom: 60px;
}

.hero__phone-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero__icon {
    padding: 12px;
    background-color: var(--color-btn-normal);
    border-radius: 4px;
}

.hero__icon-whatsapp {
    width: 24px;
    height: 24px;

}

.hero__phone-block-inner {
    line-height: 1;
}

.hero__phone {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--color-text);
}

.hero__callback {
    font-size: 1.12rem;
    font-weight: normal;
    color: var(--color-text);
}

.hero__address-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero__icon--address {
    background-color: transparent;
    border: 2px solid var(--color-btn-normal);
    padding: 10px;
    border-radius: 4px;
}

.hero__icon-location {
    width: 24px;
    height: 24px;
}

.hero__address-text {
    font-size: 1.125rem;
    font-weight: normal;
    font-style: normal;
    color: var(--color-text);
}

/* Hero Mobile Styles */
@media (max-width: 768px) {
    .header__container {
        padding: 0 20px;
    }

    .header__nav {
        padding: 110px 0 0 0;
    }

    .hero {
        padding-top: 140px;
        margin-top: -80px;
        background-size: cover;
        background-position: center;
    }

    .hero__container {
        padding: 0 20px;
        min-height: calc(100vh - 140px);
    }

    .hero__title {
        font-size: 2rem;
        text-align: left;
        margin-bottom: 40px;
    }

    .hero__buttons {
        margin: 0 0 40px 0;
        flex-direction: column;
        gap: 20px;
    }

    .hero__contacts {
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 0 20px;
    }

    .header__nav {
        padding: 100px 0 0 0;
    }

    .hero {
        padding-top: 120px;
        margin-top: -70px;
    }

    .hero__container {
        min-height: calc(100vh - 120px);
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .hero__buttons {
        margin: 0 0 30px 0;
        gap: 15px;
    }

    .hero__phone-block,
    .hero__address-block {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 10px;
    }

    .hero__address-text {
        text-align: left;
    }

    .hero__contacts {
        padding-bottom: 30px;
    }
}

/* Services Section */
.services {
    padding-top: 80px;
    background-color: var(--color-background);
}

.services__title {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-text);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
}

.services__divider {
    width: 48px;
    height: 3px;
    background-color: var(--color-border);
    margin: 0 auto 16px auto;
}

.services__list {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    border: 2px solid var(--color-border);
}

.services__item {
    flex: 1 1 0;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.services__item:nth-child(2) {
    border-left: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border);
}

.services__card {
    padding: 48px 10px 32px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 420px;
    width: 100%;
    position: relative;
}

.services__card-title {
    font-size: 1.75rem;
    color: var(--color-text);
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
    margin: auto 0 10px 0;
}

.services__card-subtitle {
    text-transform: none;
}

.services__button {
    margin-top: auto;
}

.services__card-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 40px;
    display: block;
}

@media (max-width: 991px) {
    .services {
        padding-top: 60px;
    }

    .services__list {
        flex-direction: column;
        border: none;
    }

    .services__item {
        max-width: 100%;
        border: 2px solid var(--color-border);
        margin-bottom: -2px;
    }

    .services__item:nth-child(2) {
        border-left: 2px solid var(--color-border);
        border-right: 2px solid var(--color-border);
    }

    .services__card {
        min-height: 360px;
        padding: 32px 20px;
    }

    .services__card-img {
        width: 180px;
        height: 180px;
        margin-bottom: 40px;
    }

    .services__card-title {
        font-size: 1.5rem;
        margin: auto 0 20px 0;
    }

    .services__button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services {
        padding-top: 40px;
    }

    .services__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .services__divider {
        margin-bottom: 12px;
    }

    .services__card {
        min-height: 320px;
        padding: 24px 16px;
    }

    .services__card-title {
        font-size: 1.25rem;
        margin: auto 0 15px 0;
    }
}

/* about */
.about {
    background: url(../img/about/about-bg.webp) no-repeat bottom center / cover;
    margin-top: 261px;
    padding-bottom: 80px;
}

.about__container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
}

.about__advantages {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
}

.about__wrapper {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    margin-top: -137px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card {
    background: url(../img/about/about-person.webp) no-repeat bottom left,
        url(../img/about/about-bg-2.webp) no-repeat top 30px right 30px;
    background-color: var(--color-primary);
}

.card__header {
    padding: 90px 0 40px 30px;
}

.card__title {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-text-white);
    text-transform: uppercase;
    position: relative;
}

.card__title::before {
    position: absolute;
    content: '';
    height: 3px;
    width: 47px;
    background-color: var(--color-text-white);
    top: -20px;
    left: 0;
}

.card__content {
    margin: 0 40px 40px 45%;
}

.card__text,
.card__signature,
.card__name {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-white);
}

.card__signature {
    margin-top: 40px;
    text-align: right;

}

.card__signature-name {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-white);
    text-transform: uppercase;

}

.card__name {
    text-align: right;
    margin: 16px 0 35px 0;
}

.about__description-text {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-white);

}

.advantages {
    margin-top: 40px;
}

.advantages__title {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-text-white);
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
}

.advantages__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0;
    margin: 0;
}

@media (max-width: 700px) {
    .advantages__list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.advantages__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantages__img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.advantages__text {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-white);
    max-width: 90%;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .about {
        margin-top: 60px;
        padding: 40px 0;
    }

    .about__container {
        flex-direction: column;
        gap: 40px;
    }

    .about__wrapper {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 0;
        gap: 30px;
    }

    .about__advantages {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card {
        background: var(--color-primary) url(../img/about/about-bg-2.webp) no-repeat top 30px right 30px;
    }

    .card__header {
        padding: 60px 20px 30px;
    }

    .card__content {
        margin: 0 20px 30px;
    }

    .card__title {
        font-size: 1.5rem;
    }

    .advantages__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .advantages__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .advantages__img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .about {
        margin-top: 40px;
        padding: 30px 0;
    }

    .about__container {
        gap: 30px;
    }

    .about__wrapper {
        gap: 20px;
    }

    .card {
        background: var(--color-primary);
    }

    .card__header {
        padding: 60px 15px 20px;
    }

    .card__content {
        margin: 0 15px 20px;
    }

    .card__title {
        font-size: 1.25rem;
    }

    .card__text {
        font-size: 0.875rem;
    }

    .card__signature {
        margin-top: 20px;
        font-size: 0.875rem;
    }

    .card__signature-name {
        font-size: 0.875rem;
    }

    .card__name {
        font-size: 0.875rem;
        margin: 10px 0;
    }

    .advantages__title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .advantages__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantages__img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .advantages__text {
        font-size: 0.875rem;
    }

    .about__description-text {
        font-size: 0.875rem;
    }
}

/* Numbers Block */
.numbers {
    background-color: var(--color-background);
    padding: 45px 0 0 0;
}

.numbers__container {
    max-width: 931px;
}

.numbers__list {
    display: flex;
    gap: 77px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.numbers__item {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}

.numbers__icon {
    margin-bottom: 24px;
}

.numbers__value {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--color-primary-dark);
    text-align: center;
}

.numbers__desc {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-primary);
    text-align: center;
}

@media (max-width: 991px) {
    .numbers {
        padding: 40px 0;
    }

    .numbers__list {
        gap: 40px;
        padding: 0 20px;
    }

    .numbers__value {
        font-size: 2rem;
    }

    .numbers__icon {
        margin-bottom: 20px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .numbers {
        padding: 30px 0;
    }

    .numbers__list {
        flex-direction: column;
        gap: 50px;
        padding: 0 15px;
    }

    .numbers__item {
        flex: none;
        padding: 20px 0;
    }

    .numbers__value {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .numbers__icon {
        margin-bottom: 10px;
        height: 85px;
    }

    .numbers__desc {
        font-size: 1.25rem;
    }
}

/* Request Form Block */
.request {
    padding-top: 60px;
    background: url(../img/request/bg.webp) no-repeat bottom center;
}

.request__container {
    display: flex;
    justify-content: center;
    align-items: end;
}

.request__image {
    flex: 1 1 0;
    max-width: 603px;
    width: 100%;
}

.request__content {
    flex: 1 1 0;
}

.request__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 109px;
}

.request__wrapper {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.request__wrapper .request__select {
    width: 100%;
}

.request__input {
    background-color: var(--color-background);
    width: 100%;
    height: 64px;
    border-radius: 4px;
    color: var(--color-text);
    padding: 0 20px;
    font-size: 1rem;
    font-weight: normal;
}

.request__input--select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    z-index: 2;
    position: relative;
    background-color: transparent;
}

.request__select {
    position: relative;
    background: var(--color-background);
}

.request__select::after {
    content: '';
    height: 64px;
    width: 64px;
    background-color: var(--color-btn-normal);
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0 4px 4px 0;
}

.request__select::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 64px;
    height: 64px;
    background: url(../img/request/arrow.svg) no-repeat center center;
    z-index: 1;
    pointer-events: none;
}

.request__select:focus-within::before {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.request__submit {
    font-size: 1.125rem;
    max-width: 301px;
    font-weight: 500;
    padding: 16px 32px;
    margin: 40px auto 0 auto;
}

.request__title {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
}

.request__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: -16px;
    width: 48px;
    height: 3px;
    background-color: var(--color-border);
}

@media (max-width: 991px) {
    .request {
        padding-top: 40px;
    }

    .request__container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .request__content {
        width: 100%;
        max-width: 600px;
    }

    .request__image {
        display: none;
    }

    .request__form {
        padding-bottom: 40px;
    }

    .request__submit {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .request {
        padding-top: 30px;
        background-position: center left;
    }

    .request__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .request__form {
        gap: 15px;
        padding-bottom: 30px;
    }

    .request__wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .request__input {
        height: 56px;
        font-size: 0.875rem;
    }

    .request__select::after,
    .request__select::before {
        height: 56px;
        width: 56px;
    }

    .request__submit {
        margin-top: 30px;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .request__image {
        display: none;
    }
}

/* Specialists */
.specialists {
    margin-top: 90px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.specialists__slider-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.specialists__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.specialists__arrow svg {
    width: 18px;
    height: 44px;
    display: block;
}

.specialists__arrow--left {
    left: -60px;
}

.specialists__arrow--right {
    right: -60px;
    transform: translateY(-50%) rotate(180deg);
}

.specialists__row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.specialists__card {
    background: var(--color-background-alt);
    flex: 1 1 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 32px; */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.specialists__card--image {
    padding: 0;
}

.specialists__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    background: none;
}

.specialists__card--content {}

.specialists__post-title {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    max-width: 50%;
    line-height: 1.2;
}

.specialists__post-content {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text);
    text-align: center;
    max-width: 70%;
    line-height: 1.5;
}

.specialists__post-divider {
    color: var(--color-primary);
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 10px 0;
}

@media (max-width: 991px) {
    .specialists {
        margin-top: 60px;
    }

    .specialists__slider-wrap {
        flex-direction: column;
        max-width: 100%;
        padding: 0 20px;
    }

    .specialists__arrow--left,
    .specialists__arrow--right {
        display: none;
    }

    .specialists__row {
        flex-direction: column;
        gap: 0;
        align-items: center;
        max-width: 100%;
    }

    .specialists__card {
        width: 100%;
        height: auto;
        padding: 24px 20px;
    }

    .specialists__card--content {
        padding: 40px 20px;
    }

    .specialists__card--image {
        padding: 0;
    }

    .specialists__img {
        max-width: 100%;
        max-height: 350px;
        border-radius: 8px;
    }

    .specialists__post-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .specialists__post-content {
        max-width: 100%;
        text-align: center;
    }

    .specialists__post-divider {
        margin: 8px 0;
    }
}

@media (max-width: 768px) {
    .specialists__card {
        max-width: 100%;
    }

    .specialists {
        margin-top: 40px;
    }

    .specialists__slider-wrap {
        padding: 0 15px;
    }

    .specialists__card--content {
        padding: 32px 15px;
    }

    .specialists__img {
        max-height: 300px;
    }

    .specialists__post-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
        padding: 0 20px;
    }

    .specialists__post-content {
        font-size: 0.875rem;
    }

    .specialists__post-divider {
        font-size: 2rem;
        margin: 6px 0;
    }
}

@media (max-width: 480px) {
    .specialists__slider-wrap {
        padding: 0 10px;
    }

    .specialists__card--content {
        padding: 28px 10px;
    }

    .specialists__img {
        max-height: 260px;
    }

    .specialists__post-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        padding: 0 15px;
    }

    .specialists__post-content {
        font-size: 0.875rem;
    }


    .specialists__post-divider {
        font-size: 1.75rem;
        margin: 4px 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .specialists__card--content {
        touch-action: manipulation;
    }

    .specialists__carousel {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .specialists__img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* video-overview */

.video {
    margin-top: 84px;
    /* background: linear-gradient(to bottom, #8AC5FF 22%, #ADD6FF 71%, #F0F7FF 99%); */
    background-color: #91C9FF;

    padding: 60px 0 107px 0;
}

.video__container {
    display: flex;
    align-items: center;
    gap: 28px;
}

.video__content {
    flex: 2;
}

.video__title {
    color: var(--color-text-white);
    text-transform: uppercase;
    font-size: 1.74rem;
    font-weight: normal;
    line-height: 1.4;
    position: relative;
}

.video__title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 47px;
    height: 3px;
    background-color: var(--color-text-white);
}

.video__desc {
    margin-top: 20px;
    background-color: #91C9FF;
    color: var(--color-text-white);
    font-size: 1rem;
    padding: 20px;
    border-radius: 4px;
    line-height: 1.5;
}

.video__media {
    position: relative;
    flex: 1;
}

.video__tumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video__play:hover {
    transform: scale(1.3) translate(-38%, -37%);
    transition: .3s ease;
    cursor: pointer;
}

@media (max-width: 991px) {
    .video {
        margin-top: 60px;
        padding: 40px 0 60px 0;
    }

    .video__container {
        flex-direction: column;
        gap: 30px;
    }

    .video__content {
        flex: none;
        width: 100%;
    }

    .video__title {
        font-size: 1.5rem;
        text-align: center;
        margin-top: 30px;
    }

    .video__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .video__desc {
        margin-top: 20px;
        padding: 20px;
        text-align: center;
    }

    .video__media {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .video__tumb {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .video__play {
        transform: scale(1.3) translate(-40%, -40%);
    }
}

@media (max-width: 768px) {
    .video {
        margin-top: 40px;
        padding: 30px 0 40px 0;
    }

    .video__container {
        gap: 20px;
        padding: 0 20px;
    }

    .video__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .video__desc {
        font-size: 0.875rem;
        padding: 15px;
    }

    .video__media {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .video {
        margin-top: 30px;
        padding: 20px 0 30px 0;
    }

    .video__container {
        gap: 15px;
        padding: 0 15px;
    }


    .video__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .video__desc {
        font-size: 0.875rem;
        padding: 12px;
        margin-top: 15px;
    }

    .video__media {
        max-width: 300px;
    }

    .video__play {
        width: 60px;
        height: 60px;
    }

    .video__play:hover {
        transform: scale(1.1) translate(-45%, -45%);
    }
}

/* Touch device optimizations for video */
@media (hover: none) and (pointer: coarse) {
    .video__play {
        touch-action: manipulation;
    }

    .video__play:hover {
        transform: scale(1.1) translate(-45%, -45%);
    }

    .video__tumb {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Before & after  */

.ba {
    margin-top: 76px;
}

.ba__title {
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.4;
    text-transform: uppercase;
    position: relative;
}

.ba__title::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 47px;
    height: 3px;
    background-color: var(--color-border);

}

.ba__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 36px auto 0 auto;
    /* justify-items: center; */
    align-items: center;
    max-width: 70%;
}

.ba__card {}

.ba__img--wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba__btn {
    padding: 16px 22px;
    margin-top: 10px;
}


.ba__link {
    text-decoration: none;
    font-size: 24px;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-top: 20px;
    display: block;
    text-align: center;
}

.ba__link:hover {
    color: var(--color-btn-secondary);
    transition: .3s ease;
}

/* img-comparison-slider */

img-comparison-slider {
    --divider-width: 3px;
    --divider-color: var(--color-background);
    outline: none;
}

.ba__handle {
    content: '';
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
    position: relative;
}

.ba__handle--icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Before & After Mobile Styles */
@media (max-width: 991px) {
    .ba {
        margin-top: 60px;
    }

    .ba__title {
        font-size: 1.5rem;
        text-align: center;
        margin-top: 45px;
    }

    .ba__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .ba__cards {
        max-width: 100%;
        gap: 30px;
        margin: 30px auto 0 auto;
        padding: 0 20px;
    }

    .ba__btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .ba__link {
        font-size: 1.375rem;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .ba {
        margin-top: 40px;
    }

    .ba__cards {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 24px auto 0 auto;
        padding: 0 15px;
    }

    .ba__btn {
        padding: 12px 18px;
        font-size: 0.875rem;
    }

    .ba__link {
        font-size: 1.25rem;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .ba {
        margin-top: 30px;
    }

    .ba__title {
        font-size: 1.25rem;
        margin-bottom: 20px;
        margin-top: 45px;
    }

    .ba__cards {
        gap: 20px;
        margin: 20px auto 0 auto;
        padding: 0 10px;
    }

    .ba__btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .ba__link {
        font-size: 1.125rem;
        margin-top: 20px;
    }
}

/* reviews */

.reviews {
    margin-top: 90px;
}

.reviews__title {
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.4;
    text-transform: uppercase;
    position: relative;
    text-align: center;
}

.reviews__title::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 47px;
    height: 3px;
    background-color: var(--color-border);

}

.reviews__content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.reviews__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 40px;
    position: relative;
}

.reviews__text {
    font-size: 1.125rem;
    font-weight: normal;
    line-height: 1.4;
    color: var(--color-text);
    text-align: center;
}

.reviews__signature {
    margin-top: 30px;
    text-align: center;
    position: relative;
    display: block;
}

.reviews__signature::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -143px;
    transform: translateY(-50%);
    width: 80px;
    height: 1px;
    background-color: var(--color-border);
}

.reviews__signature::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -143px;
    transform: translateY(-50%);
    width: 80px;
    height: 1px;
    background-color: var(--color-border);
}

.reviews__img--wrapper {
    margin-top: 40px;
    max-width: 320px;
    max-height: 100px;
    overflow: hidden;
}

.reviews__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.reviews__author {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.reviews__date {
    font-size: 1.125rem;
    font-weight: normal;
    line-height: 1.4;
    color: var(--color-text);
}

/* Reviews Mobile Styles */
@media (max-width: 991px) {
    .reviews {
        margin-top: 60px;
    }

    .reviews__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .reviews__content {
        flex-direction: column;
        max-width: 100%;
        padding: 0 20px;
    }

    .reviews__row {
        margin-top: 30px;
    }

    .reviews__text {
        font-size: 1rem;
        padding: 0 20px;
    }

    .reviews__signature {
        margin-top: 20px;
    }


    .reviews__img--wrapper {
        margin-top: 30px;
        max-width: 280px;
    }

    .reviews__author {
        font-size: 1rem;
    }

    .reviews__date {
        font-size: 1rem;
    }

    .specialists__arrow--left,
    .specialists__arrow--right {
        display: none;
    }
}

@media (max-width: 768px) {


    .reviews__content {
        padding: 0 15px;
    }

    .reviews__row {
        margin-top: 24px;
    }

    .reviews__text {
        font-size: 0.875rem;
        padding: 0 15px;
        line-height: 1.6;
    }

    .reviews__signature {
        margin-top: 15px;
    }

    .reviews__signature::before,
    .reviews__signature::after {
        width: 50px;
        left: -65px;
        right: -65px;
    }

    .reviews__img--wrapper {
        margin-top: 20px;
        max-width: 240px;
        max-height: 80px;
    }

    .reviews__author {
        font-size: 0.875rem;
    }

    .reviews__date {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {


    .reviews__title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .reviews__content {
        padding: 0 10px;
    }

    .reviews__row {
        margin-top: 20px;
    }

    .reviews__text {
        font-size: 0.875rem;
        padding: 0 10px;
        line-height: 1.5;
    }

    .reviews__signature {
        margin-top: 12px;
    }

    .reviews__signature::before,
    .reviews__signature::after {
        display: none;
    }

    .reviews__img--wrapper {
        margin-top: 15px;
        max-width: 200px;
        max-height: 70px;
    }

    .reviews__author {
        font-size: 0.875rem;
        margin-bottom: 5px;
    }

    .reviews__date {
        font-size: 0.875rem;
    }
}

/* Touch device optimizations for reviews */
@media (hover: none) and (pointer: coarse) {
    .reviews__content {
        touch-action: manipulation;
    }

    .reviews__carousel {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .reviews__img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .reviews__text {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* FAQ */

.faq {
    margin-top: 90px;
    overflow: hidden;
    background: url(../img/faq/bg.webp) no-repeat top 63px right 83px;
    background-color: #F2F2FA;
}

.faq__wrapper {
    display: flex;
    position: relative;
    max-width: calc(100% - ((100% - 1200px) / 2));
    margin-right: auto;
}

.faq__img--wrapper {
    flex: 1 50%;
    top: 0;
    align-self: flex-start;
    height: 130vh;
}

.faq__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    display: block;
}

.faq__content {
    flex: 1 50%;
    margin-left: 20px;

    margin-right: auto;
}

.faq__title {
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.4;
    text-transform: uppercase;
    position: relative;
    margin-top: 79px;
}

.faq__title::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 47px;
    height: 3px;
    background-color: var(--color-border);
}

.faq__list {
    margin-top: 32px;
}

.faq__header {
    display: flex;
    align-items: center;
    gap: 20px;

}

.faq__line--vert {
    height: 13px;
    width: 2px;
    background-color: var(--color-border);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__line--hor {
    height: 2px;
    width: 13px;
    background-color: var(--color-border);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
}

.faq__item-content {
    font-size: 1rem;
    margin: 10px 0 10px 52px;
    max-height: 0;
    overflow: hidden;
    transition: .3s ease-out;
    opacity: 0;

}

.faq__item.active .faq__item-content {
    max-height: 1000px;
    opacity: 1;
    transition: .3s ease-in;
}

.faq__icon {
    min-width: 32px;
    min-height: 32px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: .3s ease;
}

.faq__line--vert,
.faq__line--hor {
    transition: .3s ease;
    transform-origin: center;
}

.faq__item.active .faq__line--vert {
    transform: rotate(90deg) translateX(-6px);
}

.faq__item.active .faq__line--hor {
    opacity: 0;
}

/* FAQ Mobile Styles */
@media (max-width: 991px) {
    .faq {
        margin-top: 60px;
        background: #F2F2FA;
    }

    .faq__wrapper {
        max-width: 100%;
        margin: 0 auto;
    }

    .faq__img--wrapper {
        display: none;
    }

    .faq__content {
        flex: 1 100%;
        margin: 0;
        padding: 0 20px;
    }

    .faq__title {
        font-size: 1.5rem;
        margin-top: 60px;
        text-align: center;
    }

    .faq__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .faq__list {
        margin-top: 30px;
    }

    .faq__header {
        gap: 15px;
    }

    .faq__item-content {
        margin: 10px 0 10px 47px;
    }
}

@media (max-width: 768px) {
    .faq {
        margin-top: 40px;
    }

    .faq__content {
        padding: 0 15px;
    }

    .faq__title {
        font-size: 1.5rem;
        margin-top: 45px;
    }

    .faq__list {
        margin-top: 24px;
    }

    .faq__header {
        gap: 12px;
    }

    .faq__item-content {
        font-size: 0.875rem;
        margin: 8px 0 8px 44px;
        line-height: 1.6;
    }

    .faq__icon {
        min-width: 28px;
        min-height: 28px;
    }
}

@media (max-width: 480px) {
    .faq {
        margin-top: 30px;
    }

    .faq__content {
        padding: 0 10px;
    }

    .faq__title {
        font-size: 1.25rem;
    }

    .faq__list {
        margin-top: 20px;
    }

    .faq__header {
        gap: 10px;
    }

    .faq__item-title {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .faq__item-content {
        font-size: 0.875rem;
        margin: 6px 0 6px 38px;
        line-height: 1.5;
    }

    .faq__icon {
        min-width: 24px;
        min-height: 24px;
    }

    .faq__line--vert {
        height: 11px;
        width: 1.5px;
    }

    .faq__line--hor {
        height: 1.5px;
        width: 11px;
    }
}

/* news */

.news {
    margin-top: 80px;
}

.news__title {
    font-size: 1.75rem;
    font-weight: normal;
    line-height: 1.4;
    text-transform: uppercase;
    position: relative;
    margin-top: 79px;
}

.news__title::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 47px;
    height: 3px;
    background-color: var(--color-border);
}

.news__link {
    font-size: 1.125rem;
    font-weight: normal;
    line-height: 1.4;
    color: var(--color-primary-dark);
    text-decoration: none;
    margin-top: 14px;
    display: block;
    text-align: right;
}

.news__link:hover {
    color: var(--color-btn-secondary);
    transition: .3s ease;
}

.news__row {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.news__carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 458px), 1fr));
    gap: 40px;
    margin-top: 40px;
    width: 100%;
}

.news__item {
    display: flex;
    flex-direction: column;
}

.news__img--wrapper {
    overflow: hidden;
    aspect-ratio: 458/279;
    background-color: #F2F2FA;
}

.news__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news__img--placeholder {
    width: 100%;
    height: 100%;
    background-color: #F2F2FA;
    display: block;
    position: relative;
}

.news__img--placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--color-border);
    border-radius: 50%;
    opacity: 0.5;
}

.news__content {
    background-color: var(--color-primary);
    overflow: hidden;
    min-height: 116px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news__item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 409px;
    color: var(--color-text-white);
    margin: 20px 25px 10px 25px;
    flex-grow: 1;
}

.news__date {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.4;
    color: var(--color-text-white);
    text-align: right;
    margin: 0 25px 12px;
}

.news__link-item {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}

.news__link-item:hover {
    transform: translateY(-2px);
}

/* News Mobile Styles */
@media (max-width: 991px) {
    .news {
        margin-top: 60px;
    }

    .news__title {
        font-size: 1.5rem;
        margin-top: 60px;
        text-align: center;
    }

    .news__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .news__link {
        font-size: 1rem;
        text-align: center;
        margin-top: 20px;
    }

    .news__row {
        flex-direction: column;
        max-width: 100%;
        padding: 0 20px;
    }

    .news__carousel {
        margin-top: 30px;
        gap: 30px;
    }

    .news__item-title {
        font-size: 0.875rem;
        margin: 16px 20px 8px 20px;
    }

    .news__date {
        font-size: 0.875rem;
        margin: 0 20px 10px;
    }

    .news__content {
        min-height: 100px;
    }

    .specialists__arrow--left,
    .specialists__arrow--right {
        display: none;
    }
}

@media (max-width: 768px) {
    .news {
        margin-top: 40px;
    }

    .news__title {
        font-size: 1.5rem;
        margin-top: 45px;
    }

    .news__row {
        padding: 0 15px;
    }

    .news__carousel {
        margin-top: 24px;
        gap: 24px;
    }

    .news__item-title {
        font-size: 0.875rem;
        margin: 14px 15px 8px 15px;
        line-height: 1.5;
    }

    .news__date {
        font-size: 0.875rem;
        margin: 0 15px 8px;
    }

    .news__content {
        min-height: 90px;
    }

    .news__img--wrapper {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 480px) {
    .news {
        margin-top: 30px;
    }

    .news__title {
        font-size: 1.25rem;
        margin-top: 30px;
    }

    .news__link {
        font-size: 0.875rem;
        margin-top: 15px;
    }

    .news__row {
        padding: 0 10px;
    }

    .news__carousel {
        margin-top: 20px;
        gap: 20px;
    }

    .news__item-title {
        font-size: 0.875rem;
        margin: 12px 12px 6px 12px;
        line-height: 1.4;
    }

    .news__date {
        font-size: 0.875rem;
        margin: 0 12px 6px;
    }

    .news__content {
        min-height: 80px;
    }

    .news__img--wrapper {
        aspect-ratio: 16/9;
    }
}

/* Touch device optimizations for news */
@media (hover: none) and (pointer: coarse) {
    .news__content {
        touch-action: manipulation;
    }

    .news__carousel {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .news__img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Map styles */
.map {
    padding: 60px 0;
    position: relative;
}

.map__title {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
}

.map__title::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 47px;
    height: 3px;
    background-color: var(--color-border);
}

#yandex-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    z-index: 2;
}

.map__card {
    background: var(--color-background);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 445px;
}

.map__content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map__item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.map__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.map__link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
}

.map__link:hover {
    color: var(--color-btn-normal);
    transition: color 0.3s ease;
}

.map__desc {
    font-style: normal;
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
}

.map__socials {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.map__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.map__social-link:hover {
    transform: translateY(-5px);
    transition: .3s ease;
}

.map__social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Map Mobile Styles */
@media (max-width: 991px) {
    .map {
        padding: 40px 0;
    }

    .map__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .map__title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    #yandex-map {
        height: 400px;
    }

    .map__container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 20px;
    }

    .map__card {
        max-width: 500px;
        padding: 30px;
        margin: 0 auto;
    }

    .map__item {
        gap: 12px;
        margin-bottom: 16px;
    }

    .map__link,
    .map__desc {
        font-size: 0.875rem;
    }

    .map__socials {
        gap: 20px;
        margin: 20px 0 0 0;
    }

    .map__social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .map {
        padding: 30px 0;
    }

    .map__title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    #yandex-map {
        height: 350px;
        border-radius: 4px;
        margin-top: 24px;
    }


    .map__container {
        position: static;
        transform: none;
        padding: 0 15px;
        margin-top: 0;
    }

    .map__card {
        padding: 24px;
        border-radius: 4px;
        margin: 45px auto 0 auto;
    }

    .map__item {
        gap: 10px;
        margin-bottom: 14px;
    }

    .map__icon {
        width: 20px;
        height: 20px;
    }

    .map__link,
    .map__desc {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .map__socials {
        gap: 16px;
        margin: 16px 0 0 0;
    }

    .map__social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .map {
        padding: 20px 0;
    }

    .map__title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    #yandex-map {
        height: 300px;
        border-radius: 4px;
        margin-top: 20px;
    }

    .map__container {
        position: static;
        transform: none;
        padding: 0 10px;
        margin-top: 0;
    }

    .map__card {
        padding: 20px;
        border-radius: 4px;
    }

    .map__item {
        gap: 8px;
        margin-bottom: 12px;
    }

    .map__icon {
        width: 18px;
        height: 18px;
    }

    .map__link,
    .map__desc {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .map__socials {
        gap: 14px;
        margin: 14px 0 0 0;
    }

    .map__social-link {
        width: 32px;
        height: 32px;
    }
}

/* Touch device optimizations for map */
@media (hover: none) and (pointer: coarse) {
    .map__card {
        touch-action: manipulation;
    }

    .map__social-link:hover {
        transform: none;
    }

    .map__link:hover {
        color: var(--color-text);
    }
}

/* Footer styles */
.footer {
    background-color: var(--color-background);
    padding: 80px 0 40px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.footer__logo {
    grid-column: 1;
}

.footer__tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 20px;
    line-height: 1.4;
}

.footer__sections {
    grid-column: 2;
}

.footer__title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

.footer__wrapper {
    display: flex;
    align-items: start;
    gap: 40px;
}

.footer__vote {
    max-width: 180px;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.footer__vote-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__menu {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.footer__menu-item a {
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.footer__menu-item a:hover {
    color: var(--color-btn-normal);
}

.footer__contacts {
    grid-column: 3;
    display: flex;
    flex-direction: column;
}

.footer__contacts .hero__button {
    width: 100%;
    text-align: center;
    max-width: 270px;
    margin-bottom: 20px;
}

.footer__socials {
    margin: 0;
}

.footer__contacts .map__content {
    margin-top: 0;
}

.footer__info {
    grid-column: 1 / span 2;
    margin-top: 40px;
}

.footer__text {
    font-size: 0.75rem;
    color: var(--color-text);
    line-height: 1.4;
    margin-top: 10px;
}

.footer__company {
    margin-top: 40px;
}

.footer__bottom {
    grid-column: 1;
    margin-top: 30px;
}

.footer__copyright {
    font-size: 0.75rem;
    color: var(--color-text);
    margin-top: 20px;

}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.footer__link {
    font-size: 0.75rem;
    color: var(--color-text);
    transition: color 0.3s ease;
    text-decoration: underline;
}

.footer__link:hover {
    color: var(--color-btn-normal);
}

.footer__warning {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.75rem;
    color: #D9D9D9;
    letter-spacing: -1.62%;
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
}

/* Footer Mobile Styles */
@media (max-width: 991px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer__logo {
        grid-column: 1;
        text-align: center;
    }

    .footer__logo img {
        margin: 0 auto;
        display: block;
    }

    .footer__tagline {
        font-size: 0.875rem;
        margin-top: 15px;
    }

    .footer__sections {
        grid-column: 1;
    }

    .footer__wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer__vote {
        max-width: 160px;
    }

    .footer__menu {
        align-items: center;
        gap: 8px;
    }

    .footer__contacts {
        grid-column: 1;
    }

    .footer__contacts .hero__button {
        max-width: 100%;
    }

    .footer__info {
        grid-column: 1;
        margin-top: 30px;
    }

    .footer__bottom {
        grid-column: 1;
        margin-top: 20px;
        text-align: center;
    }

    .footer__copyright {
        margin-top: 15px;
    }

    .footer__warning {
        font-size: 1.5rem;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer__container {
        gap: 24px;
        padding: 0 15px;
    }

    .footer__tagline {
        font-size: 0.875rem;
        margin-top: 12px;
    }

    .footer__wrapper {
        gap: 24px;
    }

    .footer__vote {
        max-width: 140px;
    }

    .footer__menu {
        gap: 6px;
    }

    .footer__menu-item a {
        font-size: 0.875rem;
    }

    .footer__contacts .hero__button {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .footer__info {
        margin-top: 24px;
    }

    .footer__text {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .footer__bottom {
        margin-top: 16px;
    }

    .footer__copyright {
        font-size: 0.75rem;
        margin-top: 12px;
    }

    .footer__links {
        gap: 6px;
        margin-top: 6px;
    }

    .footer__link {
        font-size: 0.75rem;
    }

    .footer__warning {
        font-size: 1.25rem;
        margin-top: 24px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer__container {
        gap: 20px;
        padding: 0 10px;
    }

    .footer__tagline {
        font-size: 0.875rem;
        margin-top: 10px;
    }

    .footer__wrapper {
        gap: 20px;
    }

    .footer__vote {
        max-width: 120px;
    }

    .footer__menu {
        gap: 4px;
    }

    .footer__menu-item a {
        font-size: 0.875rem;
    }

    .footer__contacts .hero__button {
        padding: 12px 18px;
        font-size: 0.875rem;
    }

    .footer__info {
        margin-top: 20px;
    }

    .footer__text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .footer__company {
        margin-top: 20px;
    }

    .footer__bottom {
        margin-top: 15px;
    }

    .footer__copyright {
        font-size: 0.75rem;
        margin-top: 10px;
    }

    .footer__links {
        gap: 4px;
        margin-top: 4px;
    }

    .footer__link {
        font-size: 0.75rem;
    }

    .footer__warning {
        font-size: 1.125rem;
        margin-top: 20px;
        padding: 0 5px;
        line-height: 1.3;
    }
}

/* 404 Error Page */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background-color: var(--color-background);
}

.error-404__container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404__content {
    text-align: center;
    max-width: 600px;
}

.error-404__title {
    font-size: 8rem;
    font-weight: bold;
    color: var(--color-btn-normal);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404__subtitle {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--color-text);
    margin-bottom: 20px;
}

.error-404__text {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-404__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.error-404__button {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

.error-404__button--secondary {
    background-color: transparent;
    border: 2px solid var(--color-btn-normal);
    color: var(--color-text);
}

.error-404__button--secondary:hover {
    background-color: var(--color-btn-normal-hover);
    border-color: var(--color-btn-normal-hover);
    color: var(--color-text-white);
}

@media (max-width: 991px) {
    .error-404__title {
        font-size: 6rem;
    }

    .error-404__subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .error-404 {
        padding: 40px 0;
    }

    .error-404__title {
        font-size: 4rem;
    }

    .error-404__subtitle {
        font-size: 1.5rem;
    }

    .error-404__buttons {
        flex-direction: column;
    }

    .error-404__button {
        width: 100%;
    }
}

/* Pagination styles */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-white);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: var(--color-border);
    color: var(--color-text-white);
}

/* Blog page specific styles */

.news__content:hover {
    background-color: var(--color-btn-secondary);
    transition: .3s ease;
}

/* Blog grid styles */
.news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(458px, 1fr));
    gap: 40px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

@media (max-width: 991px) {
    .news__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin: 30px 0 0 0;
    }
}

@media (max-width: 768px) {
    .news__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 24px 0 0 0;
    }
}

@media (max-width: 480px) {
    .news__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0 0 0;
    }
}

/* Single Post Styles */
.post {
    padding: 60px 0;
}

.post__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.post__header {
    margin-bottom: 40px;
    text-align: center;
}

.post__title {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

.post__title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background-color: var(--color-border);
}

.post__meta {
    margin-top: 30px;
}

.post__date {
    font-size: 1rem;
    color: var(--color-text);
}

.post__thumbnail {
    margin: 0 -20px 40px -20px;
    max-height: 500px;
    overflow: hidden;
}

.post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post__content p {
    margin-bottom: 1.5em;
}

.post__content h2,
.post__content h3,
.post__content h4 {
    margin: 1.5em 0 1em;
    color: var(--color-text);
}

.post__content h2 {
    font-size: 1.75rem;
}

.post__content h3 {
    font-size: 1.5rem;
}

.post__content h4 {
    font-size: 1.25rem;
}

.post__content ul,
.post__content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.post__content li {
    margin-bottom: 0.5em;
}

.post__content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.post__navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.post__nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post__nav-link {
    flex: 1;
    padding: 20px;
    background-color: var(--color-background-alt);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post__nav-link:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

.post__nav-link--prev {
    text-align: left;
}

.post__nav-link--next {
    text-align: right;
}

.post__nav-title {
    font-size: 0.875rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.post__nav-name {
    font-size: 1.125rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .post {
        padding: 40px 0;
    }

    .post__title {
        font-size: 2rem;
    }

    .post__nav-links {
        flex-direction: column;
    }

    .post__nav-link {
        text-align: center;
    }
}


.services__button:hover {
    background-color: var(--color-btn-normal-hover);
    border-color: var(--color-btn-normal-hover);
    transition: background-color 0.3s;
}

.services__button:active {
    background-color: var(--color-btn-normal-active);
    border-color: var(--color-btn-normal-active);
}

/* Popup styles */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
}
.popup--active {
  display: flex;
}
.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.popup__content {
  position: relative;
  z-index: 2;
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 40px 32px 32px 32px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text);
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.popup__close:hover {
  color: var(--color-btn-normal);
  transform: scale(1.2) rotate(90deg);
}
.popup__title {
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}
.popup__title::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: var(--color-border);
}
.popup__subtitle {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: center;
}
.popup__input {
  margin-bottom: 16px;
}
.popup__checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
  gap: 8px;
  cursor: pointer;
}
.popup__checkbox {
  margin-right: 8px;
  accent-color: var(--color-btn-normal);
}
.popup__submit {
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .popup__content {
    padding: 24px 10px 16px 10px;
    max-width: 95vw;
  }
  .popup__title {
    font-size: 1.25rem;
  }
  .popup__subtitle {
    font-size: 0.9rem;
  }
}

.popup__input:focus,
.request__input:focus {
  outline: 2px solid var(--color-btn-normal);
  outline-offset: 2px;
  background-color: #f7faff;
}

.popup__phone-block-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 24px 0 0 0;
}
.popup__phone-block-inner .hero__phone {
  font-size: 1.5rem;
  display: block;
  color: var(--color-text);
  margin-bottom: 8px;
}
.popup__phone-block-inner .hero__callback {
  text-align: center;
  font-size: 1.12rem;
  color: var(--color-text);
}

.popup--video .popup__content {
  max-width: 98vw;
  width: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.popup__video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
}
.popup--video iframe {
  width: 960px;
  height: 540px;
  max-width: 98vw;
  max-height: 80vh;
  border-radius: 8px;
  background: #000;
  display: block;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}
@media (max-width: 1100px) {
  .popup__video-wrapper,
  .popup--video iframe {
    max-width: 98vw;
    width: 98vw;
    height: 55vw;
    min-height: 200px;
    max-height: 80vh;
  }
}
@media (max-width: 700px) {
  .popup__video-wrapper,
  .popup--video iframe {
    width: 100vw;
    height: 56vw;
    min-height: 180px;
    max-height: 60vh;
  }
}
.popup--video .popup__close { display: none !important; }

/* slider */
.slider {
    /* background: url(../img/hero/hero-bcg-full.webp) no-repeat top center / cover;
    padding-top: 200px; */
    margin-top: -105px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}

.slider__background {
    overflow: hidden;
}
.slider__row {
    height: 100vh;
    width: 100%;
    position: relative;
}
.slider__row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    background: linear-gradient(90deg, rgba(256, 256, 256, 0.60) 0%, rgba(0, 0, 0, 0) 100%);
}
.slider__img--wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    overflow: hidden;
}
.slider__img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    animation: sliderFloat 10s linear infinite;
    animation-play-state: running !important;

}
.slider__container {
    display: flex;
    align-items: center;
    height: 75%;
    justify-content: start;
}
.slider__title {
    width: 50%;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 60px;
    z-index: 20;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.slider__content {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 90%;
    
}
.slider__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.slider__wrapper * {
    pointer-events: auto;
}
@media (max-width: 768px) {
    .slider__title {
        font-size: 2rem;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .slider__title {
        font-size: 1.75rem;
        width: 100%;
    }
}

@keyframes sliderFloat {
    0% {
        transform: translate(0, -5%) scale(1.2);
    }
    25% {
        transform: translate(0, 0) scale(1.2);
    }
    50% {
        transform: translate(0, 5%) scale(1.2);
    }
    75% {
        transform: translate(0, 0) scale(1.2);
    }
    100% {
        transform: translate(0, -5%) scale(1.2);
    }
}