.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #101820;
    background-image: url("../assets/images/hero-poster.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 110px 0;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #101820 url("../assets/images/hero-poster.jpg") center / cover no-repeat;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero__video.is-ready {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.5) 0%, rgba(5, 10, 20, 0.32) 42%, rgba(5, 10, 20, 0.58) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero__lead {
    font-size: 20px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

.hero .btn:focus-visible {
    outline-color: #fff;
}

.about {
    padding: 40px 0;
    background: var(--color-light);
}

.about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.about__media,
.about__content {
    flex: 1;
}

.about__media img {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    object-fit: cover;
}

.about__content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 360px;
}

.about__title {
    margin-bottom: 20px;
}

.about__text {
    display: flex;
    font-size: 18px;
    text-indent: 64px;
    color: var(--color-secondary);
    text-align: justify;
}

.about__features {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.about__feature {
    text-align: center;
}

.about__feature-value {
    font-size: 28px;
    color: var(--color-primary);
    display: block;
}

.about__feature-label {
    font-size: 14px;
    color: var(--color-secondary);
}

.services {
    padding: 40px 0;
}

.services__container {
    padding: 0 20px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.service-card__icon img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.service-card__title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 18px;
    color: var(--color-secondary);
    margin: 15px 0 10px;
}

.service-card__text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.service-card__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.service-card__link:hover {
    color: var(--color-primary);
}

.process {
    padding: 40px 0;
    background: var(--color-light);
}

.process__container {
    padding: 0 20px;
    text-align: center;
}

.process__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    list-style: none;
}

.process__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.process__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process__icon img {
    width: 50px;
    height: 50px;
}

.process__title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.process__text {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
}

.process__item .special {
    width: 70px;
    height: 70px;
}

.process__item .fourth {
    width: 60px;
    height: 60px;
}

.about-page {
    padding: 60px 0;
    background: var(--color-light);
    text-align: center;
}

.about-page__title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 42px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.about-page__lead {
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-page__legal {
    font-size: 14px;
    color: #555;
    max-width: 720px;
    margin: 24px auto 0;
    line-height: 1.55;
}

body.dark .about-page__legal {
    color: #c8c8c8;
}

body.dark .about-page {
    background: #1a2640;
}

body.dark .about-page__title {
    color: var(--color-light);
}

body.dark .about-page__lead {
    color: #f0f0f0;
}

.seo-content {
    padding: 25px 0;
    background: var(--color-light);
}

.seo-content__block {
    margin-bottom: 40px;
}

.seo-content__block h2 {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 28px;
    color: var(--color-secondary);
    margin-bottom: 20px;
    margin-top: 40px;
}

.seo-content__block h2:first-child {
    margin-top: 0;
}

.seo-content__block h3 {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 24px;
    color: var(--color-secondary);
    margin-bottom: 20px;
    margin-top: 30px;
}

.seo-content__block h3:first-child {
    margin-top: 0;
}

.seo-content__block p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.seo-content__block ul {
    margin: 20px 0;
    padding-left: 30px;
}

.seo-content__block li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.seo-content__block strong {
    color: var(--color-secondary);
    font-family: 'Montserrat-SemiBold', sans-serif;
}

body.dark .seo-content {
    background: #1a2640;
}

body.dark .seo-content__block h2,
body.dark .seo-content__block h3 {
    color: var(--color-light);
}

body.dark .seo-content__block p,
body.dark .seo-content__block li {
    color: #f0f0f0;
}

body.dark .seo-content__block strong {
    color: var(--color-light);
}

.faq {
    padding: 40px 0;
}

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

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.faq__item {
    padding: 0 20px;
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.25s ease;
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 16px;
    color: var(--color-secondary);
    padding: 18px 0;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq__question:hover {
    color: var(--color-primary);
}

.faq__question:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq__icon {
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq__item--active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    font-size: 15px;
    color: var(--color-secondary);
    line-height: 1.6;
    transition: grid-template-rows 0.42s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq__answer > * {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.3s ease,
        transform 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq__item--active .faq__answer {
    grid-template-rows: 1fr;
}

.faq__item--active .faq__answer > * {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .faq__answer {
        transition-duration: 0.01ms;
    }

    .faq__answer > * {
        transition-duration: 0.01ms;
        transform: none;
    }

    .faq__icon {
        transition-duration: 0.15s;
    }
}

.faq__item--hidden {
    display: none;
}

.faq__show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 20px;
    margin-top: 20px;
    background: none;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 16px;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq__show-more:hover {
    background: var(--color-primary);
    color: #fff;
}

.faq__show-more-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq__show-more.active .faq__show-more-icon {
    transform: rotate(180deg);
}

.faq__show-more.active .faq__show-more-text {
    display: none;
}

.faq__show-more.active::after {
    content: 'Скрыть вопросы';
}

body.dark .faq__show-more {
    border-color: var(--color-light);
    color: var(--color-light);
}

body.dark .faq__show-more:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.contact {
    padding: 40px 0;
    background: var(--color-light);
    color: var(--color-secondary);
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.contact__info {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__lead {
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.contact__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.contact__icon img {
    width: 20px;
    height: 20px;
}

body.dark .contact__icon img {
    filter: brightness(0) invert(1);
}

.contact__item a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.contact__item a:hover {
    color: var(--color-accent);
}

.contact__worktime {
    background: #f3f5fa;
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.contact__map-block {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact__map {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact__btn {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
}

.cookie {
    position: fixed;
    bottom: 30px;
    left: 20px;
    right: 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    border-radius: 8px;
    display: none;
    z-index: 10000;
}

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

.cookie__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie__title {
    font-size: 16px;
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--color-accent);
}

.cookie__close {
    font-size: 28px;
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie__close:hover {
    color: var(--color-accent);
}

.cookie__text {
    font-size: 14px;
    margin-top: 10px;
    color: var(--color-secondary);
    line-height: 1.5;
}

.cookie__link {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie__link:hover {
    color: var(--color-accent);
}

.cookie__settings {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.cookie__category {
    margin-bottom: 15px;
}

.cookie__category:last-child {
    margin-bottom: 0;
}

.cookie__checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.cookie__checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.cookie__checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--color-secondary);
}

.cookie__checkbox-text strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--color-secondary);
}

.cookie__checkbox-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.cookie__actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie__settings-btn {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.cookie__settings-btn:hover {
    background: var(--color-light);
    border-color: var(--color-secondary);
}

.cookie__accept {
    flex: 1;
    min-width: 120px;
    border: none;
}

.cookie__decline {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.cookie__decline:hover {
    background: var(--color-light);
    border-color: var(--color-secondary);
}

.modal__input[type="number"] {
    appearance: textfield;
}

body.dark .cookie {
    background: #1e2a44;
    border: 1px solid #2a3b5c;
}

body.dark .cookie__text {
    color: #f0f0f0;
}

body.dark .cookie__link {
    color: var(--color-light);
}

body.dark .cookie__link:hover {
    color: var(--color-primary);
}

body.dark .cookie__settings {
    border-top-color: #2a3b5c;
}

body.dark .cookie__checkbox-text {
    color: #f0f0f0;
}

body.dark .cookie__checkbox-text strong {
    color: var(--color-light);
}

body.dark .cookie__checkbox-desc {
    color: #ccc;
}

body.dark .cookie__decline,
body.dark .cookie__settings-btn {
    border-color: #2a3b5c;
    color: #f0f0f0;
}

body.dark .cookie__decline:hover,
body.dark .cookie__settings-btn:hover {
    background: #2a3b5c;
    border-color: #3a4b6c;
}

body.dark .hero {
    position: relative;
    color: #fff;
}

body.dark .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 28, 0.62);
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

body.dark .hero__container {
    position: relative;
    z-index: 2;
}

body.dark .hero__title,
body.dark .hero__lead {
    color: #fff;
}

body.dark .hero__actions .btn {
    color: #fff;
}

body.dark .hero__actions .btn:hover {
    background: var(--color-secondary);
}

body.dark .about {
    background: #1a2640;
    color: #f9f9f9;
}

body.dark .about__text,
body.dark .lead {
    color: #f0f0f0;
}

body.dark .about__feature-label {
    color: var(--color-light);
}

body.dark .about__features .feature strong {
    color: var(--color-light);
}

body.dark .about__features .feature span {
    color: #ccc;
}

body.dark .about__media img {
    filter: brightness(0.8);
    border-radius: 10px;
}

body.dark .services {
    background: #121c35;
    color: #f9f9f9;
}

body.dark .service-card {
    background: #1e2a44;
    border: 1px solid #2a3b5c;
    color: #f0f0f0;
}

body.dark .service-card__title {
    color: var(--color-light);
}

body.dark .service-card__text {
    color: #ccc;
}

body.dark .service-card__more {
    color: var(--color-light);
}

body.dark .service-card__more:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

body.dark .service-card__icon img {
    filter: brightness(0) invert(1);
}

body.dark .process {
    background: #121c35;
    color: #f9f9f9;
}

body.dark .process__item {
    background: #1e2a44;
    border: 1px solid #2a3b5c;
    color: #f0f0f0;
}

body.dark .process__title {
    color: var(--color-light);
}

body.dark .process__text {
    color: #ccc;
}

body.dark .process__icon img {
    filter: brightness(0) invert(1);
}

body.dark .faq {
    background: #121c35;
    color: #f0f0f0;
}

body.dark .faq__item {
    background: #1f2a44;
    border: 1px solid #2c3a5a;
    border-radius: 8px;
}

body.dark .faq__question:focus-visible {
    outline-color: var(--color-light);
}

body.dark .faq__question {
    color: #fff;
}

body.dark .faq__answer {
    color: #ccc;
}

body.dark .faq__icon {
    color: var(--color-light);
}

body.dark .faq__item--active .faq__icon {
    transform: rotate(45deg);
}

body.dark .service-card__link {
    color: var(--color-light);
}

body.dark .service-card__link:hover {
    color: #ea0409;
}

body.dark .contact {
    background: #1a2640;
    color: #f0f0f0;
}

body.dark .contact__text,
body.dark .contact__item {
    color: #e0e6f0;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    background: #1f2a44;
    border: 1px solid #2c3a5a;
    color: #f0f0f0;
}

body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder {
    color: #aaa;
}

body.dark .contact-form button {
    background: var(--color-primary);
    color: #fff;
}

body.dark .contact-form button:hover {
    background: var(--color-secondary);
}

body.dark .contact__map iframe {
    filter: brightness(0.6);
}

body.dark .contact {
    background: #0d1a33;
    color: #f0f0f0;
}

body.dark .contact__lead {
    color: #e0e6f0;
}

body.dark .contact__item a {
    color: var(--color-light);
}

body.dark .contact__item a:hover {
    color: var(--color-accent);
}

body.dark .contact__worktime {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-accent);
}

/* ====== TESTIMONIALS ====== */
.testimonials {
    padding: 40px 0;
    background: #fff;
}

.testimonials__container {
    padding: 0 20px;
}

.testimonials__subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card__header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-card__rating {
    display: flex;
    align-items: center;
}

.testimonial-card__stars {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-card__author strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 16px;
    color: var(--color-secondary);
}

.testimonial-card__company {
    font-size: 14px;
    color: #666;
}

.testimonial-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.testimonials__stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.testimonials__stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testimonials__stat-value {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 36px;
    color: var(--color-primary);
    display: block;
}

.testimonials__stat-label {
    font-size: 14px;
    color: #666;
}

body.dark .testimonials {
    background: #121c35;
}

body.dark .testimonial-card {
    background: #1e2a44;
    border-color: #2a3b5c;
}

body.dark .testimonial-card__author strong {
    color: var(--color-light);
}

body.dark .testimonial-card__company {
    color: #ccc;
}

body.dark .testimonial-card__text {
    color: #e0e0e0;
}

body.dark .testimonials__subtitle {
    color: #ccc;
}

body.dark .testimonials__stats {
    border-top-color: #2a3b5c;
}

body.dark .testimonials__stat-value {
    color: var(--color-primary);
}

body.dark .testimonials__stat-label {
    color: #ccc;
}

/* ====== HERO IMPROVEMENTS ====== */
.hero__trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.hero__trust-item strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__trust-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


.hero__cta-note {
    margin-top: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ====== PARTNERS ====== */
.partners {
    padding: 40px 0;
    background: var(--color-light);
}

.partners__container {
    padding: 0 20px;
}

.partners__subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partners__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.partners__certificates,
.partners__advantages {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partners__section-title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 25px;
    text-align: center;
}

.partners__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partners__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: var(--color-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.partners__item strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 16px;
    color: var(--color-secondary);
}

.partners__item span {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

body.dark .partners {
    background: #121c35;
}

body.dark .partners__subtitle {
    color: var(--color-light);
}

body.dark .partners__certificates,
body.dark .partners__advantages {
    background: #1e2a44;
    border-color: #2a3b5c;
}

body.dark .partners__section-title {
    color: var(--color-accent);
}

body.dark .partners__item {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--color-primary);
}

body.dark .partners__item strong {
    color: var(--color-light);
}

body.dark .partners__item span {
    color: #ccc;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ====== APPLICATION FORM ====== */
.application {
    padding: clamp(32px, 4vw, 48px) 0;
    background: var(--color-light);
}

.application__container {
    max-width: 1080px;
}

.application .section-title {
    margin-bottom: 12px;
}

.application__subtitle {
    text-align: center;
    font-size: clamp(15px, 0.4vw + 14px, 18px);
    color: var(--color-secondary);
    margin: 0 auto clamp(22px, 3vw, 32px);
    max-width: 640px;
    line-height: 1.55;
}

.application__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(16px, 2.4vw, 28px);
    align-items: stretch;
}

.application__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.4vw, 28px);
    background: rgba(46, 80, 149, 0.06);
    border: 1px solid rgba(48, 66, 102, 0.12);
    border-radius: 16px;
}

.application__info-title {
    margin: 0;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: clamp(18px, 0.5vw + 16px, 22px);
    line-height: 1.3;
    color: var(--color-secondary);
}

.application__lead {
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: clamp(15px, 0.3vw + 14px, 16px);
    line-height: 1.6;
    color: var(--color-secondary);
    margin: 0;
}

.application__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.application__benefits li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    min-width: 0;
}

.application__benefits li::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2 4.7 8.8 9.8 3.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.application__benefits strong,
.application__benefits li span {
    grid-column: 2;
    min-width: 0;
}

.application__benefits strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-secondary);
}

.application__benefits li span {
    font-size: 14px;
    line-height: 1.5;
    color: #5a6478;
}

.application__note {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(48, 66, 102, 0.12);
    font-size: 14px;
    line-height: 1.5;
    color: #5a6478;
}

.application-form {
    scroll-margin-top: 126px;
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.4vw, 28px);
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 40px rgba(48, 66, 102, 0.1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    container-type: inline-size;
    container-name: application-form;
}

.application-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

@container application-form (min-width: 486px) {
    .application-form__row--contacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container application-form (min-width: 640px) {
    .application-form__row--details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.application-form__field {
    min-width: 0;
}

.application-form__label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: #4a5568;
}

.application-form__optional {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #8b95a8;
}

.application-form__control {
    position: relative;
}

.application-form__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.55;
}

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

.application-form__field--select .application-form__select,
.application-form__input,
.application-form__textarea {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-secondary);
    background-color: #f7f9fc;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-form__input,
.application-form__field--select .application-form__select {
    min-height: 48px;
}

.application-form__input {
    padding: 12px 14px 12px 42px;
}

.application-form__input::placeholder,
.application-form__textarea::placeholder {
    color: #8b95a8;
}

.application-form__field--select .application-form__control::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 36px;
    border-radius: 0 9px 9px 0;
    pointer-events: none;
    background-color: #f7f9fc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23304266' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 8px;
}

.application-form__field--select .application-form__select {
    padding: 12px 42px 12px 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    text-overflow: ellipsis;
}

.application-form__select:has(option[value=""]:checked) {
    color: #8b95a8;
}

.application-form__select option {
    color: var(--color-secondary);
}

.application-form__textarea {
    min-height: 96px;
    max-height: 220px;
    padding: 12px 14px;
    resize: vertical;
}

.application-form__input:hover,
.application-form__textarea:hover,
.application-form__select:hover {
    border-color: #c5d0e4;
}

.application-form__input:focus,
.application-form__textarea:focus,
.application-form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 80, 149, 0.15);
}

.application-form__input.input-error,
.application-form__textarea.input-error,
.application-form__select.input-error {
    border-color: var(--color-accent);
}

.application-form__agreement {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.application-form__agreement-label {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
    color: #5a6478;
}

.application-form__agreement-text {
    min-width: 0;
}

.application-form__agreement a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.application-form__agreement a:hover {
    color: var(--color-secondary);
}

.application-form__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.application-form__box {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    border: 1.5px solid #c5d0e4;
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.application-form__checkbox:checked + .application-form__box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.application-form__checkbox:checked + .application-form__box::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg);
}

.application-form__checkbox:focus-visible + .application-form__box {
    box-shadow: 0 0 0 3px rgba(46, 80, 149, 0.25);
}

.application-form__checkbox.input-error + .application-form__box {
    border-color: var(--color-accent);
}

.application-form__error {
    display: none;
    font-size: 12px;
    line-height: 1.35;
    color: var(--color-accent);
}

.application-form__submit {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 16px;
    margin-top: auto;
}

.application-form__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

body.dark .application {
    background: linear-gradient(180deg, #0e1629 0%, #121c30 100%);
}

body.dark .application__subtitle,
body.dark .application__info-title,
body.dark .application__lead,
body.dark .application__benefits strong {
    color: #f0f4ff;
}

body.dark .application__info {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .application__benefits li span,
body.dark .application__note {
    color: rgba(240, 244, 255, 0.78);
}

body.dark .application__note {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.dark .application-form {
    background: #152238;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.dark .application-form__label {
    color: rgba(240, 244, 255, 0.82);
}

body.dark .application-form__optional,
body.dark .application-form__input::placeholder,
body.dark .application-form__textarea::placeholder {
    color: rgba(240, 244, 255, 0.45);
}

body.dark .application-form__input,
body.dark .application-form__textarea,
body.dark .application-form__select {
    background-color: #0e1629;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f0f4ff;
}

body.dark .application-form__field--select .application-form__control::after {
    background-color: #0e1629;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f0f4ff' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
}

body.dark .application-form__select:has(option[value=""]:checked) {
    color: rgba(240, 244, 255, 0.45);
}

body.dark .application-form__input:focus,
body.dark .application-form__textarea:focus,
body.dark .application-form__select:focus {
    box-shadow: 0 0 0 3px rgba(46, 80, 149, 0.35);
}

body.dark .application-form__agreement-label {
    color: rgba(240, 244, 255, 0.75);
}

body.dark .application-form__box {
    background: #0e1629;
    border-color: rgba(255, 255, 255, 0.28);
}

body.dark .application-form__checkbox:checked + .application-form__box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

body.dark .application-form__icon img {
    filter: brightness(0) invert(1);
}

/* ====== CALCULATOR ====== */
.calculator {
    padding: 40px 0;
    background: var(--color-light);
}

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

.calculator__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.calculator__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 16px 20px;
    background: rgba(46, 80, 149, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(48, 66, 102, 0.12);
}

.calculator__intro {
    flex: 1 1 280px;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-secondary);
}

.calculator__modal-btn {
    flex-shrink: 0;
}

.calculator__head .btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.calculator__head .btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}


.calculator__wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 40px rgba(48, 66, 102, 0.1);
    position: relative;
}

.calculator__form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.calculator__form.hidden {
    display: none;
}

.calculator__row {
    display: contents;

}

.calculator__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input[list]::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
}

.calculator__input[type="number"]::-webkit-inner-spin-button,
.calculator__input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calculator__input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.calculator__group-transport {
    position: relative;
}

.modal__input[type="number"]::-webkit-inner-spin-button,
.modal__input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.dark .calculator__result-note p:last-child {
    color: rgba(240, 244, 255, 0.9);
}

.modal__input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.arrow__svg {
    position: absolute;
    top: 41px;
    left: 210px;
    fill: var(--color-secondary);
    pointer-events: none;
}

body.dark .arrow__svg {
    fill: var(--color-light);
}

.calculator__label {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.calculator__hint {
    font-size: 13px;
    line-height: 1.45;
    color: #5a6478;
}

.calculator__input {
    padding: 12px 16px;
    font-size: 16px;
    color: var(--color-secondary);
    background: #f7f9fc;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    background-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calculator__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 44px 12px 16px;
    font-size: 16px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    color: var(--color-secondary);
    background: #f7f9fc;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calculator__input::placeholder {
    color: #5a6478;
}

.calculator__input:focus,
.calculator__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 80, 149, 0.15);
}

.calculator__input[readonly] {
    background: #eef2f9;
    cursor: not-allowed;
    color: #5a6478;
}

body.dark .calculator__input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(240, 244, 255, 0.55);
}

.calculator__submit {
    padding: 12px 16px;
    font-size: 16px;
    align-self: center;
    margin-top: 10px;
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 250px;
}

.calculator__result {
    animation: fadeIn 0.3s ease;
}

.calculator__result.hidden {
    display: none;
    animation: none;
}

/* Предотвращаем смещение при переключении */
.calculator__wrapper {
    position: relative;
}

.calculator__form,
.calculator__result {
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator__result-title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 24px;
    color: var(--color-secondary);
    margin-bottom: 25px;
    text-align: center;
}

.calculator__result-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--color-light);
    border-radius: 8px;
}

.calculator__result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.calculator__result-item:last-child {
    border-bottom: none;
}

.calculator__result-label {
    font-size: 15px;
    color: #5a6478;
}

.calculator__result-value {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 16px;
    color: var(--color-secondary);
}

.calculator__result-value--price {
    font-size: 24px;
    color: var(--color-primary);
}

.calculator__result-note {
    font-size: 13px;
    color: #5a6478;
    text-align: left;
    margin-bottom: 25px;
    padding: 15px;
    background: #f7f9fc;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.calculator__result-note p {
    margin-bottom: 10px;
}

.calculator__result-note p:last-child {
    margin-bottom: 0;
    margin-top: 15px;
    font-weight: 500;
}

.calculator__result-factors {
    margin: 10px 0 10px 20px;
    padding: 0;
    list-style: disc;
}

.calculator__result-factors li {
    margin-bottom: 5px;
    font-size: 12px;
    color: #4a5568;
}

.calculator__result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.calculator__result-actions .btn--secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.calculator__result-actions .btn--secondary:hover {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

body.dark .calculator {
    background: linear-gradient(180deg, #0e1629 0%, #121c30 100%);
}

body.dark .calculator__subtitle {
    color: rgba(240, 244, 255, 0.8);
}

body.dark .calculator__head {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .calculator__intro {
    color: rgba(240, 244, 255, 0.85);
}

body.dark .calculator__head .btn--secondary {
    background: var(--color-secondary);
    color: var(--color-light);
    border-color: transparent;
}

body.dark .calculator__head .btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

body.dark .calculator__wrapper {
    background: #152238;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.dark .calculator__result-title {
    color: var(--color-accent);
}

body.dark .calculator__input,
body.dark .calculator__select {
    background: #0e1629;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f0f4ff;
}

body.dark .calculator__input:focus,
body.dark .calculator__select:focus {
    box-shadow: 0 0 0 3px rgba(46, 80, 149, 0.35);
}

body.dark .calculator__input::placeholder {
    color: rgba(240, 244, 255, 0.45);
}

body.dark .calculator__label {
    color: #f0f4ff;
}

body.dark .calculator__result-content {
    background: rgba(255, 255, 255, 0.03);
}

body.dark .calculator__result-label {
    color: rgba(240, 244, 255, 0.65);
}

body.dark .calculator__result-value {
    color: #f0f4ff;
}

body.dark .calculator__result-note {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-primary);
    color: rgba(240, 244, 255, 0.75);
}

body.dark .calculator__result-factors li {
    color: rgba(240, 244, 255, 0.65);
}

body.dark .calculator__hint {
    color: rgba(240, 244, 255, 0.55);
}

body.dark .calculator__result-actions .btn--secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

body.dark .calculator__result-actions .btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ====== CASES ====== */
.cases {
    padding: 40px 0;
    background: #fff;
}

.cases__container {
    padding: 0 20px;
}

.cases__subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.case-card__header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.case-card__title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 20px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.case-card__type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.case-card__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.case-card__detail {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.case-card__detail strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--color-secondary);
    min-width: 100px;
}

.case-card__detail span {
    color: #666;
}

.case-card__result {
    padding: 15px;
    background: var(--color-light);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.case-card__result strong {
    color: var(--color-accent);
}

body.dark .cases {
    background: #121c35;
}

body.dark .case-card {
    background: #1e2a44;
    border-color: #2a3b5c;
}

body.dark .case-card__title {
    color: var(--color-light);
}

body.dark .cases__subtitle {
    color: var(--color-light);
}

body.dark .case-card__detail strong {
    color: var(--color-light);
}

body.dark .case-card__detail span {
    color: #ccc;
}

body.dark .case-card__result {
    background: rgba(255, 255, 255, 0.03);
    color: #e0e0e0;
}

/* ====== COMPARISON ====== */
.comparison {
    padding: 40px 0;
    background: var(--color-light);
}

.comparison__container {
    padding: 0 20px;
}

.comparison__subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.comparison__table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
}

.comparison__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison__table thead {
    background: var(--color-primary);
    color: #fff;
}

.comparison__table th {
    padding: 15px;
    text-align: left;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 16px;
}

.comparison__table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    color: #555;
}

.comparison__table tbody tr:hover {
    background: var(--color-light);
}

.comparison__table tbody tr:last-child td {
    border-bottom: none;
}

.comparison__recommendations {
    margin-top: 40px;
}

.comparison__recommendations-title {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 25px;
    text-align: center;
}

.comparison__recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.comparison__recommendation {
    padding: 20px;
    background: #fff;
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.comparison__recommendation strong {
    font-family: 'Montserrat-SemiBold', sans-serif;
    color: var(--color-primary);
}

body.dark .comparison {
    background: #121c35;
}

body.dark .comparison__table {
    background: #1e2a44;
}

body.dark .comparison__table td {
    color: #e0e0e0;
    border-bottom-color: #2a3b5c;
}

body.dark .comparison__subtitle {
    color: var(--color-light);
}

body.dark .comparison__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark .comparison__recommendations-title {
    color: var(--color-accent);
}

body.dark .comparison__recommendation {
    background: #1e2a44;
    border-left-color: var(--color-primary);
}

body.dark .comparison__recommendation strong {
    color: var(--color-accent);
}


/* ====== TEAM ====== */
.team {
    padding: 40px 0;
    background: #fff;
}

.team__container {
    padding: 0 20px;
}

.team__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 50px;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team__member {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 21px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team__member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team__member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team__member-placeholder {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
}

.team__member-name {
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.team__member-role {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.team__member-experience {
    font-size: 13px;
    color: #9A96AA;
    margin-bottom: 12px;
}

.team__member-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

body.dark .team {
    background: #121c35;
}

body.dark .team__member {
    background: #1e2a44;
    border-color: #2a3b5c;
}

body.dark .team__member-name {
    color: var(--color-light);
}

body.dark .team__member-role {
    color: var(--color-border);
}

body.dark .team__member-description {
    color: #e0e0e0;
}

body.dark .team__subtitle {
    color: var(--color-light);
}

/* ======================
   Popup
====================== */

.popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-secondary);
    opacity: .85;
}


/* ======================
   Card
====================== */

.popup__card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.95);
    background: #fff;
    color: var(--color-secondary);
    border-radius: 14px;
    padding: 20px;
    max-width: 950px;
    width: 92%;
    transition: .3s ease;
    border: 1px solid var(--color-border);
}

.popup.active .popup__card {
    transform: translate(-50%, -50%) scale(1);
}


/* ======================
   Dark theme
====================== */

body.dark .popup__card {
    background: var(--color-secondary);
    color: var(--color-light);
}

body.dark .popup__item {
    background: var(--color-primary);
}

body.dark .popup__name {
    color: var(--color-light);
}

body.dark .popup__btn {
    background: var(--color-primary);
    color: var(--color-light);
}

body.dark .popup__contact span {
    color: var(--color-light);
}

body.dark .popup__contact a {
    color: var(--color-light);
}

body.dark .popup__contact a:hover {
    color: red;
}

/* ======================
   Close button
====================== */

.popup__close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 26px;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

.popup__close:hover {
    color: var(--color-accent);
}


/* ======================
   Layout
====================== */

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

.popup__image img {
    width: 360px;
    border-radius: 10px;
}


/* ======================
   Content
====================== */

.popup__title {
    font-size: 19px;
    margin-bottom: 20px;
    font-weight: 600;
}


/* ======================
   Items
====================== */

.popup__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popup__item {
    background: var(--color-light);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    transition: .2s;
}

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

.popup__name {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 5px;
}


.popup__contacts {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup__contact {
    display: flex;
    gap: 8px;
    font-size: 15px;
}

.popup__contact span {
    color: var(--color-secondary);
    font-weight: 500;
}

.popup__contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: .2s;
}

.popup__contact a:hover {
    color: var(--color-accent);
}




/* ======================
Floating button
====================== */

.popup-floating {
    position: fixed;
    right: 30px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    animation: pulse 2s infinite;
}

.popup-floating img {
    filter: brightness(0) invert(1);
}

.popup-floating:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    animation: none;
}


/* Пульсация */

@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(46, 80, 149, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(46, 80, 149, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 80, 149, 0);
    }

}


/* Dark theme */

body.dark .popup-floating {
    background: var(--color-primary);
}

body.dark .popup-floating {
    animation: pulse-dark 2s infinite;
}

@keyframes pulse-dark {

    0% {
        box-shadow: 0 0 0 0 rgba(249, 249, 249, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(249, 249, 249, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 249, 249, 0);
    }

}


/* Mobile */

@media (max-width: 768px) {

    .popup-floating {
        right: 20px;
    }

    .theme-toggle {
        right: 20px;
    }
}

.seo-text {
    position: absolute;
    left: -9999px;
    opacity: 0;
}