/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
    --header-height: 3.5rem;

    /* ===== Colors ===== */
    --first-color: #3385FF;
    --first-color-alt: #2970E6;
    --first-color-light: #E6F2FF;
    --second-color: #FF6B35;
    --title-color: #1A1A2E;
    --text-color: #4A4A68;
    --text-color-light: #8E8E93;
    --body-color: #FAFBFF;
    --container-color: #FFFFFF;
    --border-color: #E5E5EA;
    --shadow-color: rgba(51, 133, 255, 0.1);

    /* ===== Font and typography ===== */
    --body-font: 'Montserrat', sans-serif;
    --biggest-font-size: 2.75rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;

    /* ===== Font weight ===== */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* ===== z index ===== */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* ===== Responsive typography ===== */
@media screen and (max-width: 992px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
}

/* ===== BASE ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
}

.grid {
    display: grid;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section__subtitle {
    display: block;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
}

.main {
    overflow: hidden;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    font-size: var(--normal-font-size);
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
    border: none;
    outline: none;
    touch-action: manipulation;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
    pointer-events: auto !important;
}

.button--secondary {
    background-color: transparent;
    color: var(--first-color);
    border: 2px solid var(--first-color);
}

.button--secondary:hover {
    background-color: var(--first-color);
    color: #fff;
}

.button--outline {
    background-color: transparent;
    color: var(--first-color);
    border: 2px solid var(--first-color);
}

.button--outline:hover {
    background-color: var(--first-color);
    color: #fff;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Убираем возможные блокировки от псевдоэлементов */
.button::before,
.button::after {
    pointer-events: none;
}

/* ===== HEADER & NAV ===== */
.header {
    width: 100%;
    background-color: var(--container-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: box-shadow 0.3s ease;
}

.header.scroll-header {
    box-shadow: 0 2px 24px var(--shadow-color);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    font-size: var(--h3-font-size);
}

.nav__logo i {
    font-size: 1.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--first-color);
}

.nav__link.active-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--first-color);
}

.nav__toggle,
.nav__close {
    display: none;
}

/* ===== HOME ===== */
.home {
    padding-top: calc(var(--header-height) + 2rem);
    position: relative;
    z-index: 1;
}

.home__container {
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.home__content {
    position: relative;
    z-index: 2;
}

.home__data {
    padding-right: 2rem;
    position: relative;
    z-index: 3;
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home__title span {
    color: var(--first-color);
}

.home__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.home__advantages {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: var(--small-font-size);
}

.advantage i {
    color: var(--first-color);
    font-size: 1.25rem;
}

.home__img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.home__blob {
    width: 320px;
    fill: var(--first-color-light);
    position: relative;
    z-index: 1;
}

.home__blob-img {
    width: 170px;
}

/* ===== SERVICES ===== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 24px var(--shadow-color);
    transition: transform 0.3s ease;
    position: relative;
}

.services__card:hover {
    transform: translateY(-8px);
}

.services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.services__icon i {
    font-size: 2rem;
    color: #fff;
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.services__description {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.services__features {
    text-align: left;
}

.services__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.services__features i {
    color: var(--first-color);
}

/* ===== PRICES ===== */
.prices {
    background-color: var(--first-color-light);
}

.prices__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 24px var(--shadow-color);
    position: relative;
    transition: transform 0.3s ease;
}

.price__card:hover {
    transform: translateY(-8px);
}

.price__card--popular {
    border: 2px solid var(--first-color);
    transform: scale(1.05);
}

.price__popular {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--first-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.price__header {
    text-align: center;
    margin-bottom: 2rem;
}

.price__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.price__amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price__currency {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.price__number {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--first-color);
}

.price__period {
    font-size: var(--normal-font-size);
    color: var(--text-color);
}

.price__list {
    margin-bottom: 2rem;
}

.price__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price__item-icon {
    color: var(--first-color);
    font-size: 1.25rem;
}

.price__button {
    width: 100%;
    justify-content: center;
}

.prices__note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color);
}

.prices__note i {
    color: var(--first-color);
    margin-right: 0.5rem;
}

/* ===== PORTFOLIO ===== */
.portfolio__container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio__item {
    background-color: var(--container-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow-color);
    transition: transform 0.3s ease;
}

.portfolio__item:hover {
    transform: translateY(-8px);
}

.portfolio__img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.portfolio__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--first-color-light), var(--first-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--first-color);
}

.portfolio__placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.portfolio__data {
    padding: 1.5rem;
}

.portfolio__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.portfolio__description {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio__category {
    display: inline-block;
    background-color: var(--first-color-light);
    color: var(--first-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

/* ===== ABOUT ===== */
.about__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about__title {
    text-align: left;
    margin-bottom: 2rem;
}

.about__description {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.about__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about__box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about__icon {
    font-size: 2rem;
    color: var(--first-color);
}

.about__box-title {
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-bottom: 0.25rem;
}

.about__box-subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.about__advantages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__advantage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.about__advantage i {
    color: var(--first-color);
    font-size: 1.25rem;
}

.about__img {
    height: 400px;
    background: linear-gradient(135deg, var(--first-color-light), var(--first-color));
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.about__img-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--first-color);
}

.about__img-overlay i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===== CONTACT ===== */
.contact {
    background-color: var(--first-color-light);
}

.contact__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.contact__info {
    display: grid;
    gap: 2rem;
}

.contact__card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 24px var(--shadow-color);
}

.contact__card-icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.contact__card-title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.contact__card-data {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact__form {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 24px var(--shadow-color);
}

.contact__form-div {
    position: relative;
    margin-bottom: 2rem;
}

.contact__form-tag {
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    font-size: var(--small-font-size);
    padding: 0.25rem 0.5rem;
    background-color: var(--container-color);
    color: var(--first-color);
    font-weight: var(--font-medium);
}

.contact__form-input {
    width: 100%;
    background-color: var(--body-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact__form-input:focus {
    border-color: var(--first-color);
}

.contact__form-area {
    height: 7rem;
}

.contact__form-area textarea {
    resize: none;
    height: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--title-color);
    padding-top: 4rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__title {
    color: #fff;
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__title i {
    color: var(--first-color);
}

.footer__description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--first-color);
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.footer__social-link:hover {
    background-color: var(--first-color-alt);
}

.footer__subtitle {
    color: #fff;
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

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

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color-light);
}

.footer__info i {
    color: var(--first-color);
}

.footer__copy {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer__copy-text {
    text-align: center;
    color: var(--text-color-light);
}

/* ===== SCROLL UP ===== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    opacity: 0.8;
    padding: 0.5rem;
    border-radius: 0.4rem;
    z-index: var(--z-tooltip);
    transition: bottom 0.3s ease, opacity 0.3s ease;
}

.scrollup:hover {
    opacity: 1;
}

.scrollup__icon {
    font-size: 1.5rem;
    color: #fff;
}

.show-scroll {
    bottom: 5rem !important;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show-modal {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal__content {
    background-color: var(--container-color);
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show-modal .modal__content {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: var(--first-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.modal__close:hover {
    background-color: var(--first-color);
    color: #fff;
}

.modal__close i {
    color: var(--first-color);
}

.modal__close:hover i {
    color: #fff;
}

.modal__header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal__title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
}

.modal__subtitle {
    color: var(--text-color);
}

.modal__form-group {
    margin-bottom: 1.5rem;
}

.modal__input {
    width: 100%;
    background-color: var(--body-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.modal__input:focus {
    border-color: var(--first-color);
}

.modal__button {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.modal__note {
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal__note i {
    color: var(--first-color);
}

/* ===== FAQ ===== */
.faq-item {
    background-color: var(--container-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--first-color);
}

.faq-answer {
    padding: 0 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ===== */
.show-menu {
    left: 0 !important;
}

.scroll-header {
    box-shadow: 0 2px 24px var(--shadow-color) !important;
}

/* Дополнительные исправления для всех кнопок на сайте */
.nav__button,
.services__button,
.about__button,
.contact__button,
.modal__button,
.calculator__button {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* WhatsApp кнопка */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Кнопка обратного звонка */
.callback-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 120px;
    right: 40px;
    background-color: #28a745;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.callback-float:hover {
    transform: scale(1.1);
    background-color: #218838;
}

/* ===== BREAKPOINTS ===== */
/* For large devices */
@media screen and (max-width: 992px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .section {
        padding: 4rem 0 2rem;
    }

    .home__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home__data {
        padding-right: 0;
        text-align: center;
    }

    .home__img {
        order: -1;
    }

    .about__img {
        order: -1;
        height: 300px;
    }

    .services__container,
    .prices__container,
    .portfolio__container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* For medium devices */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        width: 100%;
        height: calc(100vh - var(--header-height));
        overflow: auto;
        background-color: var(--container-color);
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav__menu.show-menu {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: var(--h3-font-size);
    }

    .nav__close,
    .nav__toggle {
        display: block;
        cursor: pointer;
    }

    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: var(--first-color);
    }

    .nav__toggle {
        font-size: 1.25rem;
        color: var(--first-color);
    }

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

    .home__advantages {
        justify-content: center;
    }

    .about__info {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__container {
        gap: 2rem;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .whatsapp-float,
    .callback-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .callback-float {
        bottom: 100px;
        right: 20px;
    }

    /* Исправляем для мобильных устройств */
    .button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* For small devices */
@media screen and (max-width: 576px) {
    .home__advantages {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about__info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__box {
        justify-content: center;
    }

    .services__container,
    .prices__container,
    .portfolio__container {
        grid-template-columns: 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal__content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .price__card--popular {
        transform: none;
    }
}

@media screen and (max-width: 350px) {
    .container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .home__buttons {
        gap: 0.5rem;
    }

    .button {
        padding: 0.75rem 1.5rem;
        font-size: var(--small-font-size);
    }

    .services__card,
    .price__card,
    .contact__form {
        padding: 1.5rem;
    }
}
/* ===== TESTIMONIALS (ОТЗЫВЫ) - УЛУЧШЕННЫЙ ДИЗАЙН ===== */
.testimonials {
    background: linear-gradient(135deg, var(--first-color-light) 0%, #f8fbff 50%, var(--body-color) 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233385FF' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.testimonials__header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.testimonials__title {
    font-size: var(--h1-font-size);
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.testimonials__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.testimonial__stat {
    text-align: center;
}

.testimonial__stat-number {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    display: block;
}

.testimonial__stat-text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 0.25rem;
}

.testimonials__container {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    position: relative;
}

.testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow:
            0 20px 40px rgba(51, 133, 255, 0.1),
            0 8px 16px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(51, 133, 255, 0.1);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-alt), var(--second-color));
    border-radius: 2rem 2rem 0 0;
}

.testimonial-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
            0 32px 64px rgba(51, 133, 255, 0.15),
            0 16px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-card--featured {
    background: linear-gradient(145deg, #ffffff, var(--first-color-light));
    border: 2px solid var(--first-color);
    transform: scale(1.05);
    position: relative;
}

.testimonial-card--featured::after {
    content: '⭐ Лучший отзыв';
    position: absolute;
    top: -1rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    box-shadow: 0 8px 16px rgba(51, 133, 255, 0.3);
}

.testimonial__quote-icon {
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(51, 133, 255, 0.3);
}

.testimonial__rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem;
}

.testimonial__star {
    color: #FFD700;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    transition: transform 0.2s ease;
}

.testimonial__star:hover {
    transform: scale(1.2);
}

.testimonial__star--empty {
    color: #E5E5EA;
}

.testimonial-text {
    font-style: italic;
    font-size: var(--normal-font-size);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--first-color);
    font-family: Georgia, serif;
    position: absolute;
    opacity: 0.3;
}

.testimonial-text::before {
    top: -1rem;
    left: -0.5rem;
}

.testimonial-text::after {
    bottom: -2rem;
    right: -0.5rem;
    transform: rotate(180deg);
}

.testimonial__author-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--first-color-light);
    position: relative;
}

.testimonial__avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(51, 133, 255, 0.3);
    border: 3px solid #fff;
}

.testimonial__author-info {
    flex: 1;
}

.testimonial-author {
    font-weight: var(--font-bold);
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.testimonial__service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--first-color-light), rgba(51, 133, 255, 0.1));
    color: var(--first-color);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    border: 1px solid rgba(51, 133, 255, 0.2);
}

.testimonial__service i {
    font-size: 0.875rem;
}

.testimonial__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.testimonial__date {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

/* ===== CALCULATOR (КАЛЬКУЛЯТОР) - УЛУЧШЕННЫЙ ДИЗАЙН ===== */
.calculator {
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow:
            0 24px 48px rgba(51, 133, 255, 0.1),
            0 12px 24px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(51, 133, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-alt), var(--second-color));
    border-radius: 2rem 2rem 0 0;
}

.calculator__header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.calculator__title {
    font-size: var(--h2-font-size);
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.calculator__title i {
    font-size: 2rem;
    color: var(--first-color);
    background: linear-gradient(135deg, var(--first-color-light), rgba(51, 133, 255, 0.1));
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(51, 133, 255, 0.1);
}

.calculator__subtitle {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.calculator__form {
    display: grid;
    gap: 2rem;
}

.calculator-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.calculator__group {
    position: relative;
}

.calculator__label {
    display: block;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    margin-bottom: 0.75rem;
    font-size: var(--normal-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator__label i {
    color: var(--first-color);
    font-size: 1.25rem;
}

.calculator__select,
.calculator__input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calculator__select:focus,
.calculator__input:focus {
    border-color: var(--first-color);
    box-shadow:
            0 0 0 4px rgba(51, 133, 255, 0.1),
            inset 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-2px);
}

.calculator__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233385FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    appearance: none;
}

.calculator__checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.calculator__checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calculator__checkbox-item:hover {
    border-color: var(--first-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 133, 255, 0.1);
}

.calculator__checkbox-item.active {
    border-color: var(--first-color);
    background: linear-gradient(145deg, var(--first-color-light), rgba(51, 133, 255, 0.1));
}

.calculator__checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculator__checkbox:checked {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-color: var(--first-color);
}

.calculator__checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: bold;
}

.calculator__checkbox-text {
    flex: 1;
    font-weight: var(--font-medium);
    color: var(--text-color);
}

.calculator__checkbox-price {
    font-weight: var(--font-bold);
    color: var(--first-color);
    font-size: var(--small-font-size);
}

.calculator__result {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 16px 32px rgba(51, 133, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.calculator__result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.calculator__result-content {
    position: relative;
    z-index: 2;
}

.calculator__result-title {
    color: #fff;
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.calculator__result-title i {
    font-size: 1.5rem;
}

.calculator-price {
    font-size: 3rem;
    color: #fff;
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calculator-price__currency {
    font-size: 1.5rem;
    opacity: 0.9;
}

.calculator__result-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--small-font-size);
    margin-bottom: 1.5rem;
}

.calculator__result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.calculator__result-button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.calculator__result-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.calculator__result-button--primary {
    background: #fff;
    color: var(--first-color);
    border-color: #fff;
}

.calculator__result-button--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
/* ===== CALCULATOR BUTTONS ===== */
.calculator__button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.calculator__calculate-btn {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: #fff;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 1.5rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    font-family: var(--body-font);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(51, 133, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
    justify-content: center;
}

.calculator__calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.calculator__calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(51, 133, 255, 0.4);
}

.calculator__calculate-btn:hover::before {
    left: 100%;
}

.calculator__calculate-btn:active {
    transform: translateY(-1px);
}

.calculator__calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.calculator__calculate-btn-loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.calculator__calculate-btn.loading .calculator__calculate-btn-loader {
    display: block;
}

.calculator__calculate-btn.loading span,
.calculator__calculate-btn.loading > i {
    opacity: 0;
}

.calculator__reset-btn {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 1.25rem 2rem;
    border-radius: 1.5rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    font-family: var(--body-font);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator__reset-btn:hover {
    border-color: var(--first-color);
    color: var(--first-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 133, 255, 0.1);
}

.calculator__reset-btn:active {
    transform: translateY(0);
}

/* Адаптивность для кнопок */
@media screen and (max-width: 576px) {
    .calculator__button-group {
        flex-direction: column;
        align-items: center;
    }

    .calculator__calculate-btn,
    .calculator__reset-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .testimonials {
        padding: 6rem 0;
    }

    .testimonials__stats {
        gap: 1.5rem;
    }

    .testimonials__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card--featured {
        transform: none;
    }

    .testimonial__author-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .calculator {
        padding: 2rem 1.5rem;
    }

    .calculator-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator__checkbox-group {
        grid-template-columns: 1fr;
    }

    .calculator-price {
        font-size: 2.5rem;
    }

    .calculator__result-actions {
        flex-direction: column;
    }
}


@media screen and (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem 1rem;
    }

    .testimonial__quote-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .calculator {
        padding: 1.5rem 1rem;
    }

    .calculator-price {
        font-size: 2rem;
    }
}
/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--first-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification--success {
    border-left-color: #28a745;
}

.notification--error {
    border-left-color: #dc3545;
}

.notification--info {
    border-left-color: var(--first-color);
}

.notification i {
    font-size: 1.25rem;
    color: var(--first-color);
}

.notification--success i {
    color: #28a745;
}

.notification--error i {
    color: #dc3545;
}

.notification span {
    flex: 1;
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.notification__close {
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.notification__close:hover {
    background: var(--first-color-light);
    color: var(--first-color);
}

@media screen and (max-width: 576px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}