/* ========== СБРОС И БАЗОВЫЕ СТИЛИ ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(205deg, #2b2b2b, #818181, #3a3a3a, #5c5c5c);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientAnimation {
    0% { background-position: 92% 0%; }
    25% { background-position: 9% 50%; }
    50% { background-position: 9% 100%; }
    75% { background-position: 92% 50%; }
    100% { background-position: 92% 0%; }
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #e0dede;
}

/* ========== КНОПКИ ========== */
.btn-primary,
.btn-secondary,
.btn-callback {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    border: none;
}

.btn-primary {
    background-color: #ffcc00;
    color: #1a1a1a;
}

.btn-primary:hover {
    background-color: #e6b800;
}

.btn-primary:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1a1a1a;
}

.btn-callback {
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    padding: 8px 20px;
}

.btn-callback:hover {
    background-color: transparent;
    color: #1a1a1a;
}

/* Анимированная кнопка "Отправить" */
.btn-submit {
    padding: 1em 2em;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer;
    color: #e6b800;
    transition: all 1000ms;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    outline: 2px solid #ffffff;
    background: transparent;
    font-family: inherit;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        color: white;
        transform: scale(1);
        box-shadow: 0 0 0 2px white;
    }
    50% {
        color: #ffffff;
        transform: scale(1.1);
        box-shadow: 0 0 0 2px #e6b800, 4px 5px 17px -4px rgba(230, 184, 0, 0.58);
    }
}

.btn-submit::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #e6b800;
    transform: skewX(45deg);
    z-index: -1;
    animation: fillBackground 3s ease-in-out infinite;
}

@keyframes fillBackground {
    0%, 100% { width: 0; }
    50% { width: 250%; }
}

.btn-submit:hover {
    animation-duration: 6s;
}

.btn-submit:hover::before {
    animation-duration: 6s;
}

/* ========== ШАПКА (HEADER) ========== */
header {
    background-color: rgba(175, 175, 175, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 500;
}

nav a:hover {
    color: #ffcc00;
}

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

.phone {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #1a1a1a;
}

/* ========== СЕКЦИИ ========== */
section {
    padding: 60px 0;
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('image_5.png') no-repeat center center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About */
.about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 20px;
}

/* Новая Сетка Преимуществ 2x2 */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: #ffcc00;
}

.feature i {
    color: #ffcc00;
    font-size: 2rem;
}

/* Services */
.services {
    background: transparent;
    padding: 60px 0;
}

.services h2 {
    color: #ffcc00;
}

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

.service-item {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    background-color: rgba(61, 60, 61, 0.41);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    cursor: default;
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
}

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

.service-item::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(80px);
    left: -5%;
    top: -25%;
    opacity: 0.8;
    pointer-events: none;
}

.service-item-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    z-index: 1;
    border-radius: 16px;
    inset: 2px;
    background-color: rgba(50, 49, 50, 0.9);
    backdrop-filter: blur(5px);
    padding: 25px 20px;
}

.service-item i {
    font-size: 3rem;
    color: #ffcc00;
    margin-bottom: 20px;
}

.service-item h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-item p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Portfolio */
.portfolio {
    background: transparent;
    padding: 60px 0 10px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    background-color: rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contacts */
.contacts {
    color: white;
    background: transparent;
    padding: 10px 0 60px 0;
}

.contacts h2 {
    color: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contacts-info p {
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.contacts-info i {
    color: #ffcc00;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contacts-form h3 {
    color: white;
}

.contacts-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts-form input,
.contacts-form textarea {
    padding: 15px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    font-family: inherit;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    color: white;
}

.contacts-form input::placeholder,
.contacts-form textarea::placeholder {
    color: #aaa;
}

/* Footer */
footer {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

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

.socials {
    display: flex;
    gap: 15px;
}

.socials a:hover {
    color: #ffcc00;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 30px;
    color: #666;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

/* ========== СТИЛИ КВИЗА (КОМПАКТНЫЕ) ========== */
.quiz-modal-content {
    max-width: 650px;
    width: 95%;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 25px 20px;
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    max-height: 85vh;
    overflow-y: auto;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.quiz-progress-label {
    background: rgba(255, 204, 0, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    color: #ffcc00;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 204, 0, 0.2);
    white-space: nowrap;
}

.quiz-progress-label strong {
    font-weight: 700;
    color: #fff;
}

.quiz-step-badge {
    background: rgba(255, 204, 0, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    color: #ffcc00;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 204, 0, 0.2);
    white-space: nowrap;
    margin-left: auto;
}

.quiz-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.quiz-title span {
    color: #ffcc00;
    border-bottom: 2px solid rgba(255, 204, 0, 0.5);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.quiz-options.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.quiz-opt {
    background: rgba(50, 49, 50, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #ddd;
    font-weight: 500;
    font-size: 1rem;
}

.quiz-opt:hover {
    background: rgba(255, 204, 0, 0.18);
    border-color: #ffcc00;
    color: #fff;
    transform: translateX(4px);
}

.quiz-opt.selected {
    background: #ffcc00;
    border-color: #ffcc00;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
}

.quiz-opt-img {
    width: 55px;
    height: 45px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.quiz-opt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quiz-opt-img i {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.3);
}

.quiz-opt-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.2;
}

.size-illustration {
    width: 100%;
    max-height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-illustration img {
    width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: contain;
}

.size-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.size-fields > div {
    flex: 1 1 180px;
}

.size-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.range-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 14px;
    border-radius: 16px;
}

.range-group input[type="range"] {
    flex: 1;
    accent-color: #ffcc00;
    height: 4px;
}

.range-group span {
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    min-width: 60px;
    text-align: center;
    font-size: 0.9rem;
}

.messenger-options {
    gap: 8px;
}

.messenger-opt {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
    justify-content: center;
    padding: 12px 10px;
}

.messenger-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 204, 0, 0.15);
}

.messenger-img i {
    font-size: 1.4rem;
    color: #ffcc00;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

.quiz-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-btn-back {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
}

.quiz-btn-next {
    background: #ffcc00;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3);
}

.quiz-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #aaa;
    margin: 15px 0 8px;
}

.consent input {
    accent-color: #ffcc00;
    width: 15px;
    height: 15px;
}

.bonus {
    background: rgba(255, 204, 0, 0.08);
    border-radius: 14px;
    padding: 12px 15px;
    margin: 12px 0 20px;
    font-size: 0.9rem;
    color: #ddd;
    border: 1px dashed rgba(255, 204, 0, 0.3);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; margin-bottom: 30px; }
    header .container { padding: 0 10px; }

    .about-features {
        grid-template-columns: 1fr;
    }

    nav,
    .header-contacts .phone {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero {
        min-height: 80vh;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .service-item {
        height: 250px;
    }

    .quiz-modal-content {
        padding: 20px 15px;
        border-radius: 20px;
        max-height: 90vh;
    }

    .quiz-title {
        font-size: 1.3rem;
    }

    .quiz-opt {
        padding: 10px 12px;
        gap: 10px;
    }

    .quiz-opt-img {
        width: 45px;
        height: 38px;
        border-radius: 8px;
    }

    .quiz-opt-text {
        font-size: 0.85rem;
    }

    .messenger-opt {
        flex: 1 1 100%;
    }

    .quiz-nav {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .quiz-btn {
        justify-content: center;
        width: 100%;
        padding: 10px 18px;
    }
    
    .quiz-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 0;
    }
}

/* --- ОБНОВЛЕННАЯ СЕКЦИЯ УСЛУГ (ПЛЕНКИ) --- */
.services {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.section-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 700;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 10px;
}

.film-card {
    position: relative;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.film-card:hover {
    transform: translateY(-10px);
    border-color: #ffcc00;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.film-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffcc00;
    color: #000;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.film-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.film-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.film-card:hover .film-image img {
    transform: scale(1.1);
}

.film-info {
    padding: 20px;
    background: #222;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.film-info h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .films-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* --- НОВЫЕ СТИЛИ ДЛЯ КАРТОЧЕК И КНОПКИ --- */
.services {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.section-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 700;
}

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

.film-card {
    position: relative;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.film-card:hover {
    transform: translateY(-10px);
    border-color: #ffcc00;
}

.film-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffcc00;
    color: #000;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 800;
    z-index: 5;
}

.film-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.film-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.film-card:hover .film-image img {
    transform: scale(1.1);
}

.film-info {
    padding: 20px;
    text-align: center;
}

.film-info h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.services-button-wrapper {
    display: flex;
    justify-content: center;
    padding: 50px 0 20px 0;
}

.services-button-wrapper .btn-primary {
    background-color: #ffcc00;
    color: #000;
    padding: 16px 45px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.services-button-wrapper .btn-primary:hover {
    background-color: #e6b800;
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.4);
}

/* Основной контейнер карусели */
.custom-carousel {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.custom-carousel .viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
}

.custom-carousel .track {
    display: flex !important;
    flex-direction: row !important;
    transition: transform 0.5s ease-in-out !important;
    width: 300% !important;
}

.custom-carousel .slide {
    width: calc(100% / 3) !important;
    flex-shrink: 0 !important;
    padding: 0 5px;
    box-sizing: border-box;
}

.custom-carousel .photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, 220px) !important;
    gap: 15px !important;
}

.custom-carousel .photo {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    border-radius: 8px;
}

.custom-carousel .photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffcc00;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: 0.3s;
}

.nav-btn:hover { background: #e6b800; }
.nav-btn.prev { left: 5px; }
.nav-btn.next { right: 5px; }

/* Стили для обновленного блока пленок */
.services-updated {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.films-grid-new {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 40px !important;
}

.film-card-new {
    background: #222 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    cursor: pointer;
}

.film-card-new:hover {
    transform: translateY(-10px) !important;
    border-color: #ffcc00 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 204, 0, 0.2) !important;
}

.film-card-new .price-tag {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: #ffcc00 !important;
    color: #000 !important;
    padding: 6px 12px !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    z-index: 2 !important;
    transition: all 0.3s ease !important;
}

.film-card-new:hover .price-tag {
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5) !important;
}

.film-card-new .img-box {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
}

.film-card-new .img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.film-card-new:hover .img-box img {
    transform: scale(1.1) rotate(1deg) !important;
}

.film-card-new .title-box {
    padding: 20px !important;
    text-align: center !important;
    transition: background 0.3s ease !important;
}

.film-card-new .title-box h3 {
    color: #fff !important;
    margin: 0 !important;
    font-size: 18px !important;
}

.film-card-new:hover .title-box h3 {
    color: #ffcc00 !important;
}

.center-btn-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-top: 20px !important;
}

.center-btn-wrapper .btn-primary {
    padding: 20px 50px !important;
    background: #ffcc00 !important;
    border: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-size: 16px;
}

/* Hero Premium */
.hero-premium {
    background: linear-gradient(90deg, #ffffff 0%, #f9f9f9 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    padding: 0 20px;
}

.hero-info {
    flex: 1;
    z-index: 5;
    padding-right: 40px;
}

.hero-info .badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(165, 42, 42, 0.1);
    color: #a5802a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hero-info h1 {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.price-accent {
    color: #a52a2a;
    display: block;
    margin-top: 10px;
    font-size: 48px;
}

.hero-text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    max-width: 540px;
    margin-bottom: 25px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.hero-features li {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.hero-features li span {
    color: #a52a2a;
    margin-right: 10px;
    font-weight: bold;
}

.hero-action-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-main {
    background: #1a1a1a;
    color: #fff;
    padding: 20px 40px;
    border: none;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-main:hover {
    background: #a52a2a;
    transform: translateY(-3px);
}

.btn-link {
    background: none;
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-link:hover {
    border-bottom-color: #a52a2a;
    color: #a52a2a;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    box-shadow: 30px 30px 0px rgba(165, 42, 42, 0.05);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, #ffffff 0%, transparent 20%);
}

.fix-layout * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hero-premium {
    background: #ffffff !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    font-family: 'Inter', sans-serif !important;
}

.hero-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    align-items: center !important;
    gap: 40px !important;
}

.hero-info {
    flex: 1 !important;
    text-align: left !important;
}

.hero-info h1 {
    font-size: 48px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    margin: 20px 0 !important;
    text-transform: uppercase !important;
}

.price-accent {
    color: #a58a2a !important;
    font-size: 42px !important;
    display: block !important;
}

.hero-visual {
    flex: 1 !important;
    position: relative !important;
    height: 500px !important;
    background: #f0f0f0 !important;
}

.hero-visual::before {
    content: "" !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    width: 100% !important;
    height: 100% !important;
    background: #a52a2a !important;
    opacity: 0.05 !important;
    z-index: 0 !important;
}

.hero-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
}

.hero-info .badge {
    background: #f8eeee !important;
    color: #a5822a !important;
    padding: 8px 15px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-transform: uppercase !important;
}

.hero-text {
    color: #666 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    max-width: 450px !important;
}

.hero-features {
    list-style: none !important;
    margin-bottom: 30px !important;
}

.hero-features li {
    margin-bottom: 8px !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
}

.hero-features li span {
    color: #c5a524 !important;
    margin-right: 10px !important;
    font-weight: bold !important;
}

.hero-action-group {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
}

.btn-main {
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 18px 30px !important;
    border: none !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.btn-link {
    background: none !important;
    border: none !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
}

@media (max-width: 850px) {
    .hero-wrapper { flex-direction: column !important; text-align: center !important; }
    .hero-info { text-align: center !important; }
    .hero-visual { width: 100% !important; height: 300px !important; }
    .hero-action-group { flex-direction: column !important; }
}

/* Контейнер для всей секции about */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    flex-shrink: 0;
    width: 50%;
}

.benefit-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    transition: transform 0.3s ease;
}

.benefit-card i, .benefit-card img {
    font-size: 2.5rem;
    color: #ffcc00;
    margin-bottom: 15px;
}

.benefit-card p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .about-section {
        flex-direction: column;
    }
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.about-text p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 400;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text p strong {
    font-size: 22px; 
    color: #ffcc00;
}

.about-section {
    display: flex;
    align-items: stretch;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 5px 0;
}

.about-text p {
    font-size: 22px;
    line-height: 1.5;
    margin: 0;
    color: #ffffff;
}

.about-text p:first-child {
    line-height: 1.4;
}

.about-section {
    display: flex !important;
    align-items: stretch !important;
    gap: 50px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.about-text p {
    font-size: 22px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #ffffff;
    text-align: left;
}

.benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.benefit-card {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-text p {
    font-size: 22px !important; 
    line-height: 1.5 !important;
    margin: 0 !important; 
    color: #ffffff;
}

.about-text p:nth-child(2) {
    margin-top: 40px !important;
}

.contacts-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contacts-info, .contacts-form-container {
    flex: 1;
    margin-top: 0 !important;
}

.contacts-info-item, .form-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.form-title {
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

.contacts-section .container, 
.contacts-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 60px !important;
    margin-top: 40px !important;
}

.contacts-info {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contacts-form-container,
.contacts-form {
    flex: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contacts-info > *:first-child,
.contacts-form-container h3,
.form-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1 !important;
}

.contacts-info-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    font-size: 18px !important;
}

.contacts-wrapper, 
.contacts-section .container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 50px !important;
}

.contacts-info {
    flex: 1 !important;
    padding-top: 52px !important; 
    margin: 0 !important;
}

.contacts-form-container h3, 
.form-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

.contacts-info-item:first-child {
    margin-top: 0 !important;
}

.contacts-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 22px !important;
}

/* Компактная сетка для квиза */
.quiz-options.with-images {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 5px !important;
}

.quiz-options.with-images .quiz-opt {
    position: relative !important;
    height: 160px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    background: #333 !important;
    transition: transform 0.2s ease !important;
    cursor: pointer !important;
    display: block !important;
    padding: 0 !important;
}

.quiz-options.with-images .quiz-opt-img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.quiz-options.with-images .quiz-opt-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.quiz-options.with-images .quiz-opt-img i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.2);
}

.quiz-options.with-images .quiz-opt-text {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px);
    color: #fff !important;
    padding: 10px 5px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.quiz-options.with-images .quiz-opt.selected {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.4) !important;
}

.quiz-options.with-images .quiz-opt:hover {
    transform: translateY(-2px) !important;
}

.phone-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.phone-input-group input:focus {
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.phone-input-group {
    animation: fadeInUp 0.5s ease;
}

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

/* ================================================== */
/* НОВЫЕ СТИЛИ ДЛЯ ШАГА 5 (Текстовые кнопки рядом)    */
/* ================================================== */

.quiz-options.row-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    width: 100%;
    margin-top: 15px;
}

.quiz-options.row-layout .quiz-opt {
    flex: 1 !important;
    padding: 20px 15px !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    background: #333 !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    height: auto !important;
    min-height: auto !important;
}

.quiz-options.row-layout .quiz-opt:hover {
    border-color: #ffcc00 !important;
    background: rgba(255, 204, 0, 0.1) !important;
    transform: translateY(-3px) !important;
}

.quiz-options.row-layout .quiz-opt.selected {
    background: #ffcc00 !important;
    color: #1a1a1a !important;
    border-color: #ffcc00 !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4) !important;
}

/* Убираем абсолютное позиционирование для текста внутри этих кнопок */
.quiz-options.row-layout .quiz-opt-text {
    position: static !important;
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    backdrop-filter: none !important;
}

/* Если экран на мобильном слишком узкий, перестроим в столбик, чтобы текст не сжимался */
@media (max-width: 480px) {
    .quiz-options.row-layout {
        flex-direction: column !important;
    }
}

/* --- FIXED HEADER ALIGNMENT --- */

.quiz-progress {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding: 0 5px !important;
}

.quiz-progress-label, 
.quiz-step-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 204, 0, 0.15) !important;
    padding: 0 16px !important;
    height: 38px !important; 
    border-radius: 20px !important;
    color: #ffcc00 !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(255, 204, 0, 0.2) !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.quiz-progress-label {
    font-weight: 500 !important;
}

.quiz-progress-label strong {
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 4px !important;
}

.quiz-step-badge {
    font-weight: 600 !important;
    margin-left: auto !important;
}

/* ==========================================================================
   ИСПРАВЛЕНИЕ: КВИЗ И КОМПАКТНАЯ КАРУСЕЛЬ (МОБИЛЬНЫЕ)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Возвращаем квизу правильное отображение */
    .quiz-modal-content {
        display: block !important; /* Убираем flex, который ломал внутренние блоки */
        overflow-y: auto !important; /* Возвращаем скролл контента */
        padding: 20px 15px 90px !important; /* 90px снизу, чтобы кнопки не перекрывали текст */
    }

    .quiz-options.with-images .quiz-opt {
        height: 125px !important; /* Оптимальная высота для карточек с картинками */
    }

    .quiz-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(26, 26, 26, 0.98) !important;
        padding: 12px 15px !important;
        margin: 0 !important;
        border-top: 1px solid rgba(255, 204, 0, 0.2) !important;
        z-index: 1000 !important;
        display: flex !important;
        gap: 10px !important;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.5) !important;
    }

    /* 2. Делаем примеры работ (карусель) максимально компактными */
    .custom-carousel { 
        padding: 0 35px !important; 
        margin: 10px auto !important; 
    }
    
    .custom-carousel .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 фото в ряд */
        grid-template-rows: repeat(3, 110px) !important;  /* Высота фото всего 110px вместо 150px */
        gap: 6px !important; /* Уменьшили дыры между фотографиями */
    }
    
    .custom-carousel .photo {
        border-radius: 6px !important; /* Аккуратные углы */
    }
}

/* Для самых маленьких экранов (iPhone SE и т.д. до 400px) */
@media (max-width: 400px) {
    .custom-carousel .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Оставляем 2 в ряд, чтобы не растягивать в бесконечную колбасу */
        grid-template-rows: repeat(3, 90px) !important; /* Делаем фото еще чуть ниже */
    }
    
    .quiz-options.with-images .quiz-opt {
        height: 115px !important;
    }
}