/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CirceRounded', Arial, sans-serif;
    line-height: 1.5;
    color: #201e1d;
    overflow-x: hidden; /* Prevent horizontal scroll for diagonal design */
    background-color: #F8F5F3;
    scroll-behavior: smooth; /* Плавная прокрутка для всей страницы */
}

/* Common styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

/* Стили для внутренних ссылок */
.internal-link {
    color: #ff7e3e;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.internal-link:hover {
    color: #fa7939;
    text-decoration: none;
    transform: translateY(-1px);
}

.internal-link:active {
    transform: translateY(0);
}

.internal-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff7e3e;
    transition: width 0.3s ease-in-out;
}

.internal-link:hover::after {
    width: 100%;
}

/* Стили для подзаголовков с внутренними ссылками */
.services-overview__subtitle,
.portfolio__subtitle,
.quality__subtitle,
.faq__subtitle,
.team__subtitle,
.process__subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-overview__subtitle {
    margin-top: 20px;
}

.portfolio__subtitle {
    margin-top: 15px;
    margin-bottom: 40px;
}

.quality__subtitle {
    margin-top: 20px;
    margin-bottom: 40px;
}

.faq__subtitle {
    margin-top: 15px;
    margin-bottom: 30px;
}

.team__subtitle {
    margin-top: 20px;
    margin-bottom: 40px;
}

.process__subtitle {
    margin-top: 15px;
    margin-bottom: 40px;
}

/* Эффект при наведении на блок с подзаголовком */
.services-overview__subtitle:hover,
.portfolio__subtitle:hover,
.quality__subtitle:hover,
.faq__subtitle:hover,
.team__subtitle:hover,
.process__subtitle:hover {
    color: #555;
    transition: color 0.3s ease;
}

/* Стили для лучшей читаемости */
.services-overview__subtitle .internal-link,
.portfolio__subtitle .internal-link,
.quality__subtitle .internal-link,
.faq__subtitle .internal-link,
.team__subtitle .internal-link,
.process__subtitle .internal-link {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #ff7e3e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #fa7939;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 126, 62, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 126, 62, 0.3);
}

/* Анимация пульсации для кнопки "Оставить заявку" */
.btn-primary[href="#quiz"] {
    animation: pulse 2s infinite 1s; /* Задержка 1 секунда перед началом */
}

/* Стили для кнопки "РАССЧИТАТЬ СТОИМОСТЬ" */
.btn-primary[href="#services"] {
    text-decoration: none;
    display: inline-block;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 126, 62, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 126, 62, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 62, 0);
    }
}

.btn-primary[href="#quiz"]:hover {
    animation: none;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Фиксированная высота шапки для соответствия оригиналу */
    background-color: rgba(248, 244, 242, 0.95);
    box-shadow: 0px 2px 3px rgba(0, 11, 48, 0.25);
    z-index: 1000;
}

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

.header__logo img {
    max-width: 80px;
    height: auto;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header__menu a {
    color: #252525;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header__menu a:hover {
    color: #8d8d8d;
}

/* Специальные стили для ссылки "Услуги" */
.header__menu a[href="#services"] {
    position: relative;
}

.header__menu a[href="#services"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff7e3e;
    transition: width 0.3s ease;
}

.header__menu a[href="#services"]:hover::after {
    width: 100%;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 30px;
    height: 30px;
    display: flex;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    justify-content: center;
    align-items: center;
}

.social-link.phone {
    background-image: url('/static/assets/icons/phone.svg');
}

.social-link.telegram {
    background-image: url('/static/assets/icons/telegram.svg');
}

.social-link.whatsapp {
    background-image: url('/static/assets/icons/whatsapp.svg');
}

/* Main page layout styles */
.main-container {
    position: relative;
    height: calc(100vh - 90px); /* Adjust height to account for header */
    width: 100vw;
    top: 90px; /* Position below the header */
    left: 0;
    overflow: hidden; /* Ensure content does not overflow */
}

.left-panel, .right-panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%; /* Each panel takes full width and height, then clip-path defines visibility */
}

.left-panel {
    left: 0;
    /* Adjust these values to match the diagonal from the image */
    clip-path: polygon(0% 0%, 60% 0%, 25% 100%, 0% 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 5vw; /* Add left padding */
    padding-top: 15vh; /* Add top padding to push content down */
    box-sizing: border-box;
    z-index: 2; /* Make sure the left panel content is clickable */
}

.right-panel {
    right: 0;
    left: 100px;
    background-color: #000;
    background-image: url('/static/images/shockolad.jpg'); /* Ensure this path is correct */
    background-position: left 150% top;
    background-size: 80% 100%;
    transform: skew(-10deg, 0);
    /* background-position: center; */
    /* Adjust these values to match the diagonal from the image */
    clip-path: polygon(60% 0%, 100% 0%, 70% 100%, 25% 100%);
    z-index: 1; /* Behind the left panel content */
}

.content-wrapper {
    max-width: 500px;
    text-align: left;
    padding: 0 20px; /* Add some side padding */
    color: #201e1d; /* Default text color */
}

.left-panel h1 {
    font-size: clamp(24px, 3.5vw, 60px); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: -2cm; /* Поднимаем заголовок на 2 см выше */
    line-height: 1.2;
}

.left-panel p {
    font-size: clamp(14px, 1.2vw, 20px); /* Responsive font size */
    color: #333;
    margin-bottom: 40px;
}

.left-panel .btn-primary {
    background-color: #ff7833;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.left-panel .btn-primary:hover {
    background-color: #e06a2e;
}

.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ff7833;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 100;
}

.chat-icon::before {
    content: '💬';
    font-size: 30px;
    color: #fff;
}

/* Responsive adjustments for main page layout */
@media (max-width: 768px) {
    /* Адаптивные стили для внутренних ссылок */
    .internal-link {
        font-size: 14px;
        padding: 2px 4px;
        border-radius: 4px;
    }
    
    .internal-link:hover {
        background-color: rgba(255, 126, 62, 0.1);
    }
    
    /* Адаптивные стили для подзаголовков */
    .services-overview__subtitle,
    .portfolio__subtitle,
    .quality__subtitle,
    .faq__subtitle,
    .team__subtitle,
    .process__subtitle {
        font-size: 16px;
        padding: 0 20px;
        margin-bottom: 25px;
    }
    
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .left-panel, .right-panel {
        position: relative; /* Take out of absolute positioning */
        width: 100%;
        height: 50vh; /* Each section takes half the viewport height */
        clip-path: none; /* Remove clip-path for vertical stack */
        padding: 0;
        justify-content: center;
    }

    .left-panel {
        padding-right: 0; /* Remove right padding */
        justify-content: center; /* Center content horizontally */
    }

    .content-wrapper {
        max-width: 90%;
        text-align: center;
        padding: 20px;
    }
    
    .left-panel h1 {
        margin-top: 0cm; /* Опускаем заголовок на 1 см ниже на мобильных устройствах */
    }

    .right-panel {
        display: none; /* Скрываем правую панель с изображением шоколада на мобильных устройствах */
    }
}

/* Request form styles */
.request-form {
    padding: 80px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.request-form__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.request-form__title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #201e1d;
}

.form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.form__group {
    flex: 1;
    max-width: 300px;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    font-size: 16px;
}

.form__input:focus {
    outline: none;
    border-color: #ff7e3e;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 998;
}

.mobile-menu-backdrop.active {
    opacity: 1;
}

/* Body scroll lock */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile menu styles */
.mobile-menu {
    display: none; /* Default hidden state */
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
    display: flex; /* Make it visible */
    flex-direction: column; /* Stack children vertically */
}

.mobile-menu__nav {
    /* Removed padding: 20px; */
}

.mobile-menu__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__nav li {
    margin-bottom: 15px;
}

.mobile-menu__nav a {
    display: block;
    padding: 10px 0;
    color: #252525;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-menu__nav a:hover {
    color: #8d8d8d;
}

.mobile-menu__contacts {
    margin-top: auto; /* Push contacts to the bottom */
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mobile-menu__contacts .social-links {
    justify-content: center;
    margin-bottom: 20px;
}

.mobile-menu__contacts .btn {
    width: 100%;
    max-width: 250px;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none; /* Hidden by default for desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Ensure it's above the menu */
    border: none;
    background: transparent;
    padding: 0;
}

.menu-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #201e1d;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
}

.menu-toggle__line:nth-child(1) { top: 0; }
.menu-toggle__line:nth-child(2) { top: 9px; }
.menu-toggle__line:nth-child(3) { top: 18px; }

.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Focus styles for accessibility */
.menu-link {
    position: relative; /* For the pseudo-element underline */
}

.menu-link:hover,
.menu-link:focus {
    color: #ff7e3e;
}

.menu-link.active {
    font-weight: 700;
    color: #ff7e3e;
}

.menu-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #ff7e3e;
}

/* Специальные стили для ссылки "Услуги" в мобильном меню */
.menu-link[href="#services"] {
    position: relative;
}

.menu-link[href="#services"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff7e3e;
    transition: width 0.3s ease;
}

.menu-link[href="#services"]:hover::after,
.menu-link[href="#services"]:focus::after {
    width: 100%;
}

.menu-toggle:focus-visible,
.btn:focus-visible {
    outline: 2px solid #ff7e3e;
    outline-offset: 2px;
}

/* Стили для планшетов */
@media screen and (max-width: 980px) and (min-width: 769px) {
    .services-overview__subtitle,
    .portfolio__subtitle,
    .quality__subtitle,
    .faq__subtitle,
    .team__subtitle,
    .process__subtitle {
        font-size: 17px;
        padding: 0 30px;
    }
}

@media screen and (max-width: 980px) {
    .header__nav,
    .header__contacts {
        display: none;
    }

    .mobile-menu {
        display: flex; /* Display the mobile menu toggle button */
    }

    .menu-toggle {
        display: flex;
    }

    .header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .header__menu a {
        padding: 10px 0;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero__title {
        font-size: 36px;
    }

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

    .form__group {
        width: 100%;
        max-width: 300px;
    }

    .mobile-menu-backdrop.active {
        display: block;
    }

    .mobile-menu__nav,
    .mobile-menu__contacts {
        width: 100%;
        text-align: center;
    }

    .mobile-menu__contacts .social-links {
        justify-content: center;
        margin-bottom: 20px;
    }

    .mobile-menu__contacts .social-links .social-link {
        width: 40px;
        height: 40px;
    }

    .mobile-menu__contacts .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (forced-colors: active) {
    .menu-toggle__line {
        forced-color-adjust: none;
        background-color: CanvasText;
    }

    .menu-link.active::after {
        forced-color-adjust: none;
        background-color: Highlight;
    }
}

/* Services Overview Section */
.services-overview {
    padding: 80px 0;
    text-align: center;
    background-color: #F8F5F3;
    scroll-margin-top: 100px; /* Отступ для фиксированного хедера */
}

/* Анимация при переходе к секции услуг */
.services-overview:target {
    animation: servicesHighlight 1s ease-in-out;
}

@keyframes servicesHighlight {
    0% {
        background-color: #F8F5F3;
    }
    50% {
        background-color: #fff3e0;
    }
    100% {
        background-color: #F8F5F3;
    }
}

.services-overview__container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

.services-overview__title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 40px;
    color: #201e1d;
}

.services-overview__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-overview__item {
    background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    animation: fadeInUp 0.6s ease-out;
}

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

.service-overview__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-overview__item:hover::before {
    opacity: 1;
}

.service-overview__item--video::before {
    background-image: url('/static/images/Frame_19.jpg');
}

.service-overview__item--media::before {
    background-image: url('/static/images/Frame_20.jpg');
}

.service-overview__item--letters::before {
    background-image: url('/static/images/Frame_21.jpg');
}

.service-overview__item--signs::before {
    background-image: url('/static/images/Frame_22.jpg');
}

.service-overview__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.service-overview__content {
    position: relative;
    z-index: 2;
}

.service-overview__item h3 {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-overview__item .btn-secondary {
    background-color: #ff7e3e;
    color: #ffffff;
    border-radius: 25px;
    padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 24px);
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.service-overview__item:hover .btn-secondary {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.service-overview__item .btn-secondary:hover {
    background-color: #fa7939;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Дополнительные стили для кнопок в секции услуг */
.service-overview__item .btn-secondary[href="#services"] {
    position: relative;
    overflow: hidden;
}

.service-overview__item .btn-secondary[href="#services"]::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;
}

.service-overview__item .btn-secondary[href="#services"]:hover::before {
    left: 100%;
}

/* Trust Factors Section */
.trust-factors {
    padding: 80px 0;
    text-align: center;
    background-color: #F8F5F3;
}

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

.trust-factors__title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #201e1d;
}

.trust-factors__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
}

.trust-factors__list li {
    background-color: #F8F5F3;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 18px;
    color: #201e1d;
}

/* Quality Section */
.quality {
    padding: 80px 0;
    text-align: center;
    background-color: #F8F5F3;
}

.quality__container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

.quality__title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #201e1d;
}

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

.quality__item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s;
    min-height: 320px;
}
.quality__item:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
}
.quality__img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #f8f8f8;
}
.quality__item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #201e1d;
}
.quality__item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}
@media (max-width: 900px) {
    .quality__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .quality__item {
        min-height: 260px;
        padding: 24px 10px 18px 10px;
    }
}
@media (max-width: 600px) {
    .quality__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .quality__item {
        min-height: 0;
        padding: 18px 4vw 12px 4vw;
    }
    .quality__img {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
}

/* FAQ Tilda-style (t668) */
.faq {
    background: #faf6f3;
    padding: 60px 0;
    text-align: center;
}

.faq__image {
    margin-bottom: 20px;
    text-align: left;
}

.faq__image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .faq__image img:hover {
        transform: scale(1.05);
    }

/* Team Section */
.team {
    background: #faf6f3;
    padding: 80px 0;
    text-align: center;
}

.team__container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

.team__title {
    font-size: 36px;
    font-weight: 700;
    color: #201e1d;
    margin-bottom: 60px;
    line-height: 1.3;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 85%;
    margin: 0 auto;
}

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

.team__photo {
    width: 450px;
    height: 580px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team__photo:hover {
    transform: translateY(-5px);
}

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

.team__info {
    text-align: center;
}

.team__position {
    font-size: 20px;
    font-weight: 700;
    color: #201e1d;
    margin-bottom: 10px;
}

.team__name {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

    .team__line {
        width: 60px;
        height: 3px;
        background: #ff7e3e;
        margin: 0 auto;
        border-radius: 2px;
    }

/* Process Section */
.process {
    background: #faf6f3;
    padding: 80px 0;
}

.process__container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

.process__title {
    font-size: 36px;
    font-weight: 700;
    color: #201e1d;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

.process__steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    gap: 20px;
}

.process__step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process__icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    transform: scale(1.3);
}

.process__step:hover .process__icon {
    transform: scale(1.5);
}

.process__step-title {
    font-size: 20px;
    font-weight: 700;
    color: #201e1d;
    margin-bottom: 15px;
    line-height: 1.3;
}

.process__step-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 280px;
}

.process__dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    align-self: flex-start;
    margin-top: 30px;
    flex-shrink: 0;
}

.process__dots span {
    width: 8px;
    height: 8px;
    background: #ff7e3e;
    border-radius: 50%;
    display: inline-block;
}
.t668__accordion-list {
     
   width: 85%;
   margin: 0 auto;
    display: flex;
    flex-direction: column;
  gap: 18px;
}
.t668__accordion {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.t668__accordion:not(:last-child) {
  margin-bottom: 0;
}
.t668__trigger-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  outline: none;
  padding: 28px 32px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  color: #181818;
  transition: background 0.2s;
  position: relative;
}
.t668__trigger-button:hover, .t668__trigger-button:focus {
  background: #f5ede7;
}
.t668__title {
  font-size: 1.18em;
  font-weight: 700;
  color: #181818;
  text-align: left;
}
.t668__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 16px;
  position: relative;
}
.t668__plus {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
}
.t668__plus::before, .t668__plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2.5px;
  background: #ff7e3e;
  border-radius: 2px;
  transition: transform 0.3s;
}
.t668__plus::before {
  transform: translate(-50%, -50%) rotate(0deg);
}
.t668__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.t668__trigger-button[aria-expanded="true"] .t668__plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.t668__content {
  background: #fff;
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.3s;
  opacity: 0;
}
.t668__trigger-button[aria-expanded="true"] + .t668__content {
  padding: 20px 32px 28px 32px;
  opacity: 1;
}
.t668__trigger-button[aria-expanded="true"] .t668__icon {
  /* Можно добавить анимацию */
}
.t668__content[hidden] {
  display: none;
}
.t668__textwrapper {
  padding: 0;
}
.t668__text {
  font-size: 1.05rem;
  color: #222;
  text-align: left;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .t668__trigger-button {
    padding: 18px 14px;
    font-size: 1rem;
  }
  .t668__content, .t668__trigger-button[aria-expanded="true"] + .t668__content {
    padding: 0 14px 14px 14px;
  }
}

@media (max-width: 992px) {
    .services-overview__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-overview__item {
        min-height: 250px;
        padding: 25px;
    }
    
    .service-overview__item h3 {
        font-size: 24px;
    }
}
    
.process__steps {
    justify-content: center;
    gap: 30px;
}

.process__step {
    min-width: 200px;
    flex: 0 1 calc(50% - 15px);
}

@media (max-width: 768px) {
    .services-overview {
        padding: 50px 0;
    }

    .services-overview__title,
    .trust-factors__title,
    .quality__title,
    .faq__title,
    .team__title,
    .process__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq__image img {
        max-width: 250px;
    }

    .service-overview__item,
    .trust-factors__list li,
    .quality__item,
    .faq__item {
        padding: 15px;
    }

    .service-overview__item h3,
    .quality__item h3,
    .faq__question {
        font-size: 20px;
    }

    .trust-factors__list {
        grid-template-columns: 1fr;
    }

    .faq__answer {
        font-size: 15px;
    }
}

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

    .services-overview__title,
    .trust-factors__title,
    .quality__title,
    .faq__title,
    .team__title,
    .process__title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .faq__image img {
        max-width: 200px;
    }

    .team__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team__photo {
        width: 320px;
        height: 410px;
    }

    .team__photo {
        width: 380px;
        height: 490px;
    }

    .service-overview__item h3,
    .quality__item h3,
    .faq__question {
        font-size: 18px;
    }

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

    .service-overview__item {
        min-height: 200px;
        padding: 20px;
    }

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

    .process__step {
        min-width: 100%;
        flex: none;
        order: 1;
    }

    .process__dots {
        order: 2;
        transform: rotate(90deg);
        margin: 15px 0;
        margin-top: 15px;
    }

    .process__step:nth-child(3) {
        order: 3;
    }

    .process__dots:nth-child(4) {
        order: 4;
    }

    .process__step:nth-child(5) {
        order: 5;
    }

    .process__dots:nth-child(6) {
        order: 6;
    }

    .process__step:nth-child(7) {
        order: 7;
    }

    .process__step-title {
        font-size: 18px;
    }

    .process__step-description {
        font-size: 16px;
        max-width: 100%;
    }
}

/* Portfolio styles */
.portfolio {
    padding: 120px 0 60px;
}

.portfolio__container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio__title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #201e1d;
}

/* Portfolio Tabs Styles */
.portfolio__tabs {
    margin-bottom: 40px;
}

.portfolio__tab-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.portfolio__tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border: 2px solid #ff7e3e;
    border-radius: 12px;
    background: none;
    color: #201e1d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.portfolio__tab-btn:hover {
    background-color: rgba(255, 126, 62, 0.1);
    transform: translateY(-2px);
}

.portfolio__tab-btn.active {
    background-color: #ff7e3e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 126, 62, 0.3);
}

.tab-icon {
    font-size: 24px;
    line-height: 1;
}

.tab-text {
    text-align: center;
    line-height: 1.2;
}

.portfolio__tab-content {
    position: relative;
}

.portfolio__tab-panel {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.portfolio__tab-panel.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease-in-out;
}

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

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 10px; /* Small row height for masonry effect */
    gap: 20px;
    align-items: start;
}

.portfolio__item {
    /* Items will span multiple rows based on content height */
}

.portfolio__item {
    display: block;
    background: #F8F5F3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Manual height control for portfolio items */
.portfolio__item {
    height: auto; /* Default auto height */
}

/* Fixed height classes */
.portfolio__item--height-200 { height: 200px; }
.portfolio__item--height-250 { height: 250px; }
.portfolio__item--height-300 { height: 300px; }
.portfolio__item--height-350 { height: 350px; }
.portfolio__item--height-400 { height: 400px; }
.portfolio__item--height-450 { height: 450px; }
.portfolio__item--height-500 { height: 500px; }

/* Small heights */
.portfolio__item--height-150 { height: 150px; }
.portfolio__item--height-180 { height: 180px; }

/* Large heights */
.portfolio__item--height-600 { height: 600px; }
.portfolio__item--height-700 { height: 700px; }

.portfolio__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio__image {
    position: relative;
    overflow: hidden;
}

.portfolio__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio__item:hover .portfolio__image img {
    transform: scale(1.05);
}

.portfolio__content {
    padding: 20px;
}

.portfolio__item-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #201e1d;
}

.portfolio__item-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .portfolio {
        padding: 100px 0 40px;
    }

    .portfolio__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .portfolio__tab-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 30px;
    }

    .portfolio__tab-btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .tab-icon {
        font-size: 20px;
    }

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

    .portfolio__item {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .portfolio__grid {
        grid-template-columns: 1fr; /* 1 колонка для мобильных */
        gap: 10px;
    }

    .portfolio__item {
        margin-bottom: 10px;
    }

    .portfolio__tab-buttons {
        grid-template-columns: 1fr;
    }

    .portfolio__tab-btn {
        width: 100%;
    }
} 

/* Lead Form Section Styles */
.lead-form-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    overflow: hidden;
}
.lead-form-section__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/static/images/meufvko23myiz8nzaf4n.jpg') center center/cover no-repeat;
    filter: brightness(0.5) blur(1px);
    z-index: 1;
}
.lead-form-section__content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: rgba(0,0,0,0.0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 32px 24px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
}
.lead-form-section__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.lead-form-section__subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
    color: #fff;
}
.lead-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}
.lead-form__input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    background: #fff;
    color: #222;
    margin-bottom: 0;
    outline: none;
    box-sizing: border-box;
}
.lead-form__input:focus {
    border: 2px solid #ff7e3e;
}
.lead-form__phone-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    padding-left: 12px;
}
.lead-form__flag {
    font-size: 1.3rem;
    margin-right: 8px;
    user-select: none;
}
.lead-form__input--phone {
    border: none;
    background: transparent;
    flex: 1;
    padding-left: 0;
}
.lead-form__btn {
    width: 100%;
    background: #ff7e3e;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 16px 0;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lead-form__btn:hover {
    background: #fa7939;
}
.lead-form-section__policy {
    font-size: 0.85rem;
    color: #fff;
    margin-top: 10px;
    opacity: 0.85;
}
.lead-form-section__policy a {
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .lead-form-section__content {
        padding: 32px 8px 24px 8px;
        max-width: 98vw;
    }
    .lead-form-section__title {
        font-size: 1.3rem;
    }
} 

/* intl-tel-input стили для поля телефона в lead-form (единое поле, без разделителя) */
.iti {
    width: 100%;
}
.iti__input {
    height: 48px;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #222 !important;
    background: #fff;
    border-radius: 6px;
    border: none;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: border 0.2s;
}
.iti__input::placeholder {
    color: #222 !important;
    opacity: 1;
}
.iti__flag-container {
    border: none;
    background: none;
    height: 100%;
}
.iti__country-list {
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.iti__country {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}
.iti__country-name {
    order: 1;
    margin-right: auto;
    color: #222 !important;
    font-size: 1rem;
    display: inline;
}
.iti__country-right {
    display: flex;
    align-items: center;
    gap: 6px;
    order: 2;
    margin-left: 12px;
}
.iti__country-code {
    color: #888;
    font-size: 1rem;
    order: 1;
    margin: 0 0 0 0;
}
.iti__flag-box {
    order: 2;
}
@media (max-width: 600px) {
    .iti__input {
        padding: 12px 10px;
        font-size: 1rem;
    }
} 

.lead-form__input, .iti__input {
    background: #fff !important;
} 

.quality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.quality-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding-left: 24px;
    min-width: 40%;
    max-width: 50%;
    height: 200px;

    flex: 1 1 380px;
    transition: box-shadow 0.2s;
}
.quality-card__content {
    flex: 1;
    text-align: left;
}
.quality-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #201e1d;
}
.quality-card__descr {
    font-size: 1rem;
    color: #555;
}
.quality-card__image {
    width: 300px;
    max-height: 100%;
    max-width: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-left: 32px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    align-self: stretch;
}
@media (max-width: 900px) {
    .quality-list {
        flex-direction: column;
        gap: 16px;
    }
    .quality-card {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        padding: 18px 10px;
    }
    .quality-card__image {
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
        height: 180px;
        max-width: 100%;
        max-height: 100%;
    }
} 

.quiz {
  padding: 60px 0;
  background: #f8f4f2;
  scroll-margin-top: 100px; /* Отступ для фиксированного хедера */
}

/* Анимация при переходе к квизу */
.quiz:target {
  animation: quizHighlight 1s ease-in-out;
}

@keyframes quizHighlight {
  0% {
    background: #f8f4f2;
  }
  50% {
    background: #fff3e0;
  }
  100% {
    background: #f8f4f2;
  }
}
.quiz__container {
  max-width: 85%;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 30px -10px rgba(0,11,48,0.13);
  padding: 32px 24px 24px 24px;
  position: relative;
}
.quiz__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.quiz__icon {
  flex-shrink: 0;
  margin-right: 8px;
}
.quiz__desc {
  flex: 1;
}
.quiz__desc-title {
  font-size: 1.1rem;
  color: #222;
  font-weight: 600;
  margin-bottom: 2px;
}
.quiz__desc-counter {
  font-size: 1rem;
  color: #888;
  font-weight: 500;
}
.quiz__progressbar {
  flex-basis: 120px;
  height: 8px;
  background: #f4f4f4;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 16px;
  min-width: 120px;
}
.quiz__progress {
  height: 100%;
  background: #ff7e3e;
  border-radius: 6px;
  transition: width 0.3s;
}
.quiz__steps {
  margin-bottom: 24px;
}
.quiz__step {
  animation: fadein 0.4s;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.quiz-step__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #201e1d;
}
.quiz-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.quiz-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 140px;
  border-radius: 12px;
  background: #faf9f7;
  border: 2px solid transparent;
  transition: box-shadow 0.2s, border 0.2s;
  position: relative;
  padding: 0 0 10px 0;
}
.quiz-option input[type="radio"] {
  display: none;
}
.quiz-option__img {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  position: relative;
  transition: box-shadow 0.2s, border 0.2s;
}
.quiz-option__text {
  font-size: 1rem;
  color: #222;
  text-align: center;
  margin-bottom: 4px;
}
.quiz-option input[type="radio"]:checked + .quiz-option__img {
  box-shadow: 0 0 0 4px #ff7e3e;
  border: 2px solid #ff7e3e;
}
.quiz-option input[type="radio"]:checked + .quiz-option__img::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 76.887 55.552\'><path fill=\'%23ffffff\' d=\'M34.373 49.541L76.887 5.889 70.739 0 28.426 43.458 6.078 20.632 0 26.585l22.488 22.972 6.029 5.995-.091-.085.091.085 5.856-6.011z\'/></svg>') no-repeat center center;
  background-size: 24px 24px;
  border-radius: 50%;
  background-color: #ff7e3e;
  border: 2px solid #fff;
  z-index: 2;
}
.quiz-option input[type="radio"]:checked ~ .quiz-option__text {
  font-weight: 700;
  color: #ff7e3e;
}
.quiz-option:hover .quiz-option__img {
  box-shadow: 0 0 0 4px #ff7e3e33;
}
.quiz__buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.quiz__btn {
  background: #ff7e3e;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.quiz__btn:hover, .quiz__btn:focus-visible {
  background: #fa7939;
}
@media (max-width: 700px) {
  .quiz__container {
    padding: 16px 4vw 16px 4vw;
  }
  .quiz-step__title {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .quiz-options {
    gap: 10px;
  }
  .quiz-option, .quiz-option__img {
    width: 90px;
    height: 90px;
  }
  .quiz-option__img {
    margin-bottom: 6px;
    width: 90px;
    height: 90px;
  }
} 

.quiz-input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 8px;
  border: none;
  background: #f8f8f8;
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border 0.2s;
}
.quiz-input:focus {
  outline: none;
  border: 2px solid #ff7e3e;
}
.quiz-step__subtitle {
  color: #888;
  font-size: 0.98rem;
  margin-bottom: 12px;
} 

.quiz-range-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  position: relative;
}
.quiz-range-min, .quiz-range-max {
  font-size: 1rem;
  color: #888;
  min-width: 32px;
}
.quiz-range-max {
  margin-left: 8px;
}
.quiz-range {
  flex: 1;
  appearance: none;
  width: 100%;
  height: 4px;
  /* background: #ff7e3e; */
  background: #eee;
  border-radius: 2px;
  outline: none;
  margin: 0 8px;
  transition: background 0.2s;
}
.quiz-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff7e3e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 3px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.quiz-range:focus::-webkit-slider-thumb {
  background: #fa7939;
}
.quiz-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff7e3e;
  border: 3px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.quiz-range:focus::-moz-range-thumb {
  background: #fa7939;
}
.quiz-range::-ms-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff7e3e;
  border: 3px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.quiz-range:focus::-ms-thumb {
  background: #fa7939;
}
.quiz-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
}
.quiz-range::-ms-fill-lower {
  background: #ff7e3e;
}
.quiz-range::-ms-fill-upper {
  background: #eee;
}
.quiz-range-value {
  display: inline-block;
  min-width: 38px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-size: 1.1rem;
  color: #222;
  font-weight: 600;
  margin-left: 10px;
  text-align: center;
}
@media (max-width: 700px) {
  .quiz-range-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .quiz-range-value {
    margin-left: 0;
    margin-top: 8px;
  }
} 

.quiz-main-title {
  font-size: 2.3rem;
  font-weight: 700;
  text-align: center;
  margin: 48px 0 32px 0;
  line-height: 1.2;
  color: #111;
}
@media (max-width: 700px) {
  .quiz-main-title {
    font-size: 1.3rem;
    margin: 24px 0 18px 0;
  }
} 

.t795__title.t-title.t-title_xs {
  font-size: 2.3rem;
  font-weight: 700;
  text-align: center;
  margin: 48px 0 32px 0;
  line-height: 1.2;
  color: #111;
}
@media (max-width: 700px) {
  .t795__title.t-title.t-title_xs {
    font-size: 1.3rem;
    margin: 24px 0 18px 0;
  }
}
.t-animate[data-animate-style="fadeinright"] {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s, transform 0.7s;
} 

/* Стили для раздела с контактами */
.contacts-section {
  padding: 80px 0;
  background: #faf8f5;
}

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

.contacts-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacts-section__info {
  padding-right: 20px;
}

.contacts-section__title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  margin-bottom: 30px;
}

.contacts-section__address {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
  font-weight: 500;
}

.contacts-section__social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ff7e3e;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: #fa7939;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 126, 62, 0.3);
}

.social-btn svg {
  width: 30px !important;
  height: 30px !important;
  display: block;
}

.social-btn svg path,
.social-btn svg rect,
.social-btn svg circle {
  fill: white !important;
}

/* Принудительно устанавливаем белый цвет для всех SVG элементов */
.social-btn svg * {
  fill: white !important;
}

/* Специально для path элементов */
.social-btn svg path[fill] {
  fill: white !important;
}

.contacts-section__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contacts-section__map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* Адаптивность для контактов */
@media (max-width: 768px) {
  .contacts-section {
    padding: 60px 0;
  }
  
  .contacts-section__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contacts-section__info {
    padding-right: 0;
    text-align: center;
  }
  
  .contacts-section__title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .contacts-section__address {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .contacts-section__social {
    justify-content: center;
  }
  
  .contacts-section__map iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .contacts-section__title {
    font-size: 1.6rem;
  }
  
  .social-btn {
    width: 45px;
    height: 45px;
  }
  
  .social-btn svg {
    width: 26px !important;
    height: 26px !important;
    display: block;
  }
}

/* Стили для футера */
.footer {
  position: relative;
  background: #1a1a1a;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 40px 0;
}

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

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-led {
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer__logo-l {
  color: #4CAF50;
}

.footer__logo-e {
  color: #f44336;
}

.footer__logo-d {
  color: #2196F3;
}

.footer__logo-line {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer__menu {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #ff7e3e;
}

.footer__privacy {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__privacy:hover {
  color: #ff7e3e;
}

.footer__scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #ff7e3e;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 126, 62, 0.3);
  z-index: 1000;
}

.footer__scroll-top-btn:hover {
  background: #fa7939;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 126, 62, 0.4);
}

.footer__scroll-top-btn svg {
  width: 24px;
  height: 24px;
}

/* Адаптивность для футера */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0;
  }
  
  .footer__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }
  
  .footer__nav {
    align-items: center;
  }
  
  .footer__menu {
    justify-content: center;
    gap: 20px;
  }
  
  .footer__logo {
    justify-content: center;
  }
  
  .footer__scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .footer__scroll-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .footer__menu {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .footer__logo-led,
  .footer__logo-line {
    font-size: 1.6rem;
  }
}

/* Стили для модального окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal--active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  overflow: hidden;
}

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

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  background: #faf8f5;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #666;
}

.modal__close:hover {
  background: #f0f0f0;
  color: #111;
}

.modal__content {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
}

.privacy-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin: 25px 0 15px 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.privacy-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.privacy-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 15px 0;
}

.privacy-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 8px 0;
}

.privacy-content strong {
  font-weight: 600;
  color: #111;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
  .modal__container {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal__header {
    padding: 20px 25px;
  }
  
  .modal__title {
    font-size: 1.3rem;
  }
  
  .modal__content {
    padding: 25px;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .modal__container {
    width: 98%;
    max-height: 98vh;
  }
  
  .modal__header {
    padding: 15px 20px;
  }
  
  .modal__title {
    font-size: 1.2rem;
  }
  
  .modal__content {
    padding: 20px;
    max-height: 75vh;
  }
  
  .privacy-content h3 {
    font-size: 1.1rem;
  }
  
  .privacy-content p,
  .privacy-content li {
    font-size: 0.95rem;
  }
}

/* Стили для раздела с видео */
.video-section {
  padding: 80px 0;
  background: #faf8f5;
}

.video-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.video-section__title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-section__player {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.video-section__video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: #000;
  width: 100%;
  height: 450px;
}

.video-section__video {
  width: 100%;
  height: 450px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.video-section__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-section__play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-section__play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-section__play-btn.hidden {
  display: none !important;
}

.video-section__navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

.video-section__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ff7e3e;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(255, 126, 62, 0.3);
}

.video-section__nav-btn:hover {
  background: #fa7939;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 126, 62, 0.4);
}

.video-section__nav-btn--prev {
  left: -25px;
}

.video-section__nav-btn--next {
  right: -25px;
}

.video-section__nav-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.video-section__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.video-section__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-section__dot:hover {
  background: #ff7e3e;
}

.video-section__dot--active {
  background: #ff7e3e;
  transform: scale(1.2);
}

.video-section__counter {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

.video-section__current {
  color: #ff7e3e;
  font-weight: 600;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .video-section {
    padding: 60px 0;
  }
  
  .video-section__title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  .video-section__player {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .video-section__nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .video-section__nav-btn--prev {
    left: 10px;
  }
  
  .video-section__nav-btn--next {
    right: 10px;
  }
  
  .video-section__video,
  .video-section__video-container {
    height: 300px;
  }
  
  .video-section__play-btn {
    width: 60px;
    height: 60px;
  }
  
  .video-section__play-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .video-section__title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .video-section__video,
  .video-section__video-container {
    height: 250px;
  }
  
  .video-section__dots {
    gap: 8px;
  }
  
  .video-section__dot {
    width: 10px;
    height: 10px;
  }
}

/* Стили для карты сайта в футере */
.footer__sitemap {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

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

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

.sitemap__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.sitemap__list li {
  margin: 0;
}

.sitemap__link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  padding: 4px 0;
  position: relative;
}

.sitemap__link:hover {
  color: #ff7e3e;
  padding-left: 8px;
}

.sitemap__link::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #ff7e3e;
}

.sitemap__link:hover::before {
  opacity: 1;
  left: -12px;
}

/* Стили для нижней части футера */
.footer__bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer__bottom p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.footer__privacy {
    color: #ff7e3e;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer__privacy:hover {
    color: #fa7939;
    text-decoration: underline;
}

/* Стили для ссылки политики конфиденциальности в разделе обратной связи */
.lead-form-section__policy .footer__privacy {
    color: #ff7e3e;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lead-form-section__policy .footer__privacy:hover {
    color: #fa7939;
    text-decoration: underline;
}

/* Стили для модального окна политики конфиденциальности */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal--active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-50px);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.modal--active .modal__container {
    transform: translate(-50%, -50%) translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: #666;
}

.modal__close:hover {
    background-color: #e9ecef;
    color: #333;
}

.modal__content {
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    padding: 30px;
}

.privacy-content h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff7e3e;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-content strong {
    color: #333;
    font-weight: 600;
}

/* Адаптивные стили для модального окна */
@media (max-width: 768px) {
    .modal__container {
        width: 95%;
        max-height: 96vh;
    }
    
    .modal__header {
        padding: 15px 20px;
    }
    
    .modal__title {
        font-size: 1.3rem;
    }
    
    .modal__content {
        padding: 20px;
        max-height: calc(96vh - 80px);
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal__container {
        width: 98%;
        max-height: 98vh;
    }
    
    .modal__header {
        padding: 12px 15px;
    }
    
    .modal__title {
        font-size: 1.2rem;
    }
    
    .modal__content {
        padding: 15px;
        max-height: calc(98vh - 70px);
    }
    
    .privacy-content h3 {
        font-size: 1rem;
    }
}

/* Адаптивные стили для карты сайта */
@media (max-width: 768px) {
    .footer__sitemap {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .sitemap {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sitemap__title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .sitemap__link {
        font-size: 0.85rem;
    }
    
    .footer__bottom {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .footer__bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .sitemap {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sitemap__section {
        text-align: center;
    }
    
    .footer__bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}