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

:root {
    --primary-color: #BF9F63;       /* dusty rose / raspberry */
    --secondary-color: #1E1520;     /* deep plum-black */
    --accent-color: #e8d5b7;      /* soft blush pink */
    --text-dark: #1A1217;
    --text-light: #ffffff;
    --bg-light: #4F5250;            /* dark navy sections */
    --nav-bg: #1E1520;              /* navbar background */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'KolchFilmLogo';
    src: url('../assets/fonts/humanaserifitcstd_medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CormorantGaramond';
    src: url('../assets/fonts/assets/fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CormorantGaramond-Light';
    src: url('../assets/fonts/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'CormorantGaramond';
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(30, 21, 32, 0.97);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #BF9F63;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-flex;
    text-decoration: none;
    font-family: 'KolchFilmLogo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-right: auto;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
}

.logo-img--footer {
    height: 56px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-family: 'CormorantGaramond-Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'CormorantGaramond', serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    white-space: nowrap;
    border: 1px solid var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    margin-left: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-phone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.nav-phone:hover::before {
    transform: scaleX(1);
}

.nav-phone:hover {
    color: var(--secondary-color);
}

.nav-phone span {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .nav-phone {
        font-size: 0.7rem;
        padding: 0.25rem 0.45rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        letter-spacing: 0;
    }
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.nav-menu-close {
    display: none;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: white;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: var(--transition);
}

.nav-menu-close:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 4rem;
}

.hero-video {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(181, 101, 118, 0.65) 0%, rgba(30, 21, 32, 0.75) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 1rem;
    color: inherit;
    line-height: 1.4;
}

.hero h1:not(.hero-title) {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(181, 101, 118, 0.35);
}

/* Hero — основная кнопка всегда в «нажатом» виде */
.hero .btn:not(.btn-secondary) {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(201, 166, 107, 0.3);
}

.hero .btn:not(.btn-secondary):hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: none;
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

/* Section Styles */
section {
    padding: 3rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Style for intro-text */
.intro-text {
    font-size: 2.0rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 1rem;
}

/* Style for centered-text */
.centered-text {
    text-align: center;
    margin: 1rem 0;
}

/* Style for spaced paragraphs */
.spaced-paragraphs p+p {
    margin-top: 1.5rem;
    /* Adds spacing between consecutive paragraphs */

}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 16/9;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    width: 100%;
}

.portfolio-info h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.15rem !important;
    text-align: left;
}

.portfolio-info p {
    margin-top: 0 !important;
    text-align: left;
    color: var(--accent-color);
    line-height: 1.2;
    font-size: 0.85rem;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(30, 21, 32, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.play-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    pointer-events: none;
}

.toast {
    background: linear-gradient(90deg, #B56576, #F2DDE4);
    color: var(--secondary-color);
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(30, 21, 32, 0.2);
    font-size: 0.98rem;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
    max-width: 420px;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* keep type classes but use subtler variants */
.toast.success {
    background: linear-gradient(90deg, #C4788A, #F5E0E6);
}

.toast.error {
    background: linear-gradient(90deg, #E8A0A8, #C46070);
}

.toast.info {
    background: linear-gradient(90deg, #F2DDE4, #FAF0F3);
}

/* Slider styles */
.slider-container {
    color: #ffffff;
}

.slider-container label {
    color: white;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    cursor: pointer;
}

.service-choice-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(10%);
}


.portfolio-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Service choice section */
.service-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.service-choice-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
}

.service-choice-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(181, 101, 118, 0.3);
}

.service-choice-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(191, 159, 99, 0.35);
    background: #171218;
    color: #ffffff;
}

.service-choice-card.selected h3,
.service-choice-card.selected p {
    color: #ffffff;
}

.service-choice-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-choice-card h3 {
     flex-shrink: 0;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.service-choice-card p {
   flex-grow: 1;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    margin: 0 0 0.75rem 0;
    padding: 0;
    max-width: 100%;
    color: #555;
    display: block;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1.2rem;
    color: #666;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: none;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.testimonial-role a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.testimonial-role a:hover {
    text-decoration: underline;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Modal video sizing */
.modal video {
    width: 80vw;
    height: auto;
    max-width: 1200px;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
}

/* Titles inside dark-bg sections */
.faq .section-title,
.testimonials .section-title {
    color: var(--text-light);
}

.faq .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.testimonials .section-subtitle {
    color: var(--primary-color);
}

.faq .faq-title h2 {
    color: var(--text-light);
}

/* ===== FAQ ===== */

.faq {
    background: var(--bg-light);
}

.faq-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}


/* Левая колонка */

.faq-title h2 {
    font-size: 42px;
    position: sticky;
    top: 120px;
}


/* Правая колонка */

.faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* Кнопка вопроса */
.faq-question {
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 18px;
    font-weight: 500;

    cursor: pointer;
    text-align: left;
    transition: .3s;

    color: rgba(255, 255, 255, 0.88);
}

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


/* Иконка */

.faq-icon {
    font-size: 20px;
    transition: .3s;
}


/* Ответ */

.faq-answer {
    max-height: 0;
    overflow: hidden;

    transition: max-height .4s ease, padding .3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: rgba(255, 255, 255, 0.55);
}


/* Активное состояние */

.faq-item.active .faq-answer {
    max-height: 300px;
}

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

/* FAQ Mobile */

@media (max-width: 900px) {

    .faq-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* reduce vertical gap between title and list on mobile */
    }

    .faq-title h2 {
        position: static;
        text-align: center;
        margin-bottom: 0.5rem;
        font-size: 26px;
        /* minimal spacing on mobile */
    }

}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-details p {
    color: #666;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content--with-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal iframe {
    width: 80vw;
    height: 45vw;
    max-width: 1200px;
    max-height: 675px;
}

.modal video {
    width: 80vw;
    height: auto;
    max-width: 1200px;
    max-height: 60vh;
    border-radius: 12px;
    background: #000;
}

.kid-review-description {
    max-width: 800px;
    color: var(--text-light);
    text-align: left;
    line-height: 1.7;
}

.kid-review-description h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.kid-review-description p {
    font-size: 1rem;
    color: #ddd;
}

.portfolio-video-description {
    max-width: 900px;
    color: var(--text-light);
    text-align: left;
    line-height: 1.7;
}

.portfolio-video-description h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-video-description p {
    font-size: 1rem;
    color: #ddd;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet: 2 columns for pricing */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.active {
        right: 0;
    }
    
       .nav-menu-close {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    /* Introduction text smaller on mobile */
    .intro-text {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .centered-text {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        text-align: center;
        /* Оставляем по центру, как вы хотели ранее */
        word-break: break-word;
    }

    .intro-text {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        width: 100%;
    }

    .container p {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .portfolio-info p,
    .portfolio-info h3 {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .contact-details p {
         text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .service-choice-grid p {
   text-align: start;
        padding-left: 0;
        padding-right: 0;
}

    /* Растягиваем spaced-paragraphs на всю ширину экрана */
    .spaced-paragraphs {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    /* Стили для параграфов внутри spaced-paragraphs */
    .spaced-paragraphs p {
        text-align: justify;
        /* Выравнивание по ширине */
        text-justify: inter-word;
        /* Равномерное распределение слов */
        word-break: break-word;
        /* Перенос длинных слов */
        overflow-wrap: break-word;
        /* Альтернативный перенос */
        hyphens: auto;
        /* Автоматические переносы */
        margin-bottom: 1.2rem;
        /* Отступ между параграфами */
        line-height: 1.6;
        /* Комфортный межстрочный интервал */
        font-size: 1rem;
        /* Оптимальный размер для чтения */
        letter-spacing: 0.3px;
        /* Небольшой межбуквенный интервал */
    }

    /* Для очень маленьких экранов */
    @media (max-width: 480px) {
        .spaced-paragraphs {
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }

        .spaced-paragraphs p {
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 1rem;
        }
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid,
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Show the contact form before contact info on mobile */
    .contact-form {
        order: 1;
        width: 100%;
    }

    .contact-info {
        order: 2;
    }

    /* Compact contact items in two columns on mobile */
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        align-items: start;
    }

    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .contact-details h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    /* Reduce top padding for Portfolio section on mobile */
    #portfolio {
        padding-top: 0 !important;
    }

    #portfolio .section-subtitle {
        font-size: 0.95rem;
    }

    /* Reduce top padding for Additional Text section on mobile */
    .additional-text {
        padding-top: 0.25rem;
    }

    /* Reduce top padding for Pricing and Service selection sections on mobile */
    #pricing,
    #service-choice {
        padding-top: 0.25rem;
    }

    /* Compact sections on mobile: reduce overall vertical spacing */
    .additional-text,
    #pricing,
    #service-choice {
        padding: 1rem 1rem;
        /* top/bottom 1rem, left/right 1rem */
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .modal iframe {
        width: 90vw;
        height: 50.6vw;
    }

    /* Hero video — увеличенная высота на мобильных, видео сохраняет пропорции */
    .hero {
        height: 68vh;
        /* увеличиваем вертикальное пространство на мобильных */
        padding-bottom: 0;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .hero-video {
        /* Заполняем по высоте контейнера, сохраняем исходное соотношение видео */
        height: 100%;
        width: auto;
        min-width: 120%;
        /* чуть больше по ширине, чтобы кадр выглядел шире */
        max-width: none;
        object-fit: cover;
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

    .hero-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        width: 100%;
        padding: 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to top, rgba(30, 21, 32, 0.65), rgba(30, 21, 32, 0.15) 40%, transparent 100%);
        color: var(--text-light);
    }

    /* Make hero buttons smaller and in one row on mobile */
    .hero-content>div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        width: 100%;
    }

    .hero-content .btn,
    .hero-content .btn.btn-secondary {
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
        border-radius: 10px;
        min-width: 0;
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure equal visual weight */
    .hero-content .btn.btn-secondary {
        background: transparent;
        border: 2px solid var(--text-light);
        color: var(--text-light);
    }

    .hero-stats {
        gap: 5rem;
        /* increased spacing between stat items on mobile */
        margin-top: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Portfolio overlay — на мобильных hover не работает, поэтому показываем всегда */
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        padding: 1.5rem;
    }

    /* Play icon — чуть меньше на мобильных, но так же заметен */
    .play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        z-index: 5;
        /* Убедимся, что кнопка выше фона */
    }

    /* Отключаем hover-трансформации на touch-устройствах для portfolio */
    .portfolio-item:hover {
        transform: none;
    }

    .portfolio-item:hover img {
        transform: none;
    }

    /* Compact testimonials on mobile */
    #testimonials {
        padding: 1rem 1rem;
    }

    .testimonial-slider {
        max-width: 700px;
        margin: 0 auto;
        padding: 0;
    }

    .testimonial-item {
        padding: 2rem 1.5rem;
        border-radius: 12px;
        min-height: 420px;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .testimonial-item.active {
        display: flex;
    }

    .testimonial-avatar {
        width: 96px;
        height: 96px;
        margin-bottom: 0.75rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        line-height: 1.7;
    }

    .testimonial-author {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .slider-dots {
        margin-top: 1rem;
    }

    /* Compact service selection on mobile */
    #service-choice {
        padding: 1rem 1rem;
        /* reduce vertical spacing */
    }

    .service-choice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .service-choice-card {
        padding: 0.75rem;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        text-align: center;
    }

    .service-choice-icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .service-choice-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .service-price {
       flex-shrink: 0;
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: left;
    border-top: 1px dashed rgba(181, 101, 118, 0.25);
    padding-top: 0.5rem;
    }

    /* Reduce bottom padding for Introduction section on mobile */
    .introduction {
        padding-bottom: 0.5rem !important;
    }

    /* Reduce top padding for Contact section on mobile */
    #contact {
        padding-top: 0.5rem;
    }

    #contact .section-title {
        font-size: 1.8rem;
    }

    #contact .section-subtitle {
        font-size: 0.95rem;
    }

    /* Reduce vertical gap between Testimonials and FAQ on mobile */
    #testimonials {
        padding-bottom: 1.5rem;
    }

    #faq {
        padding-top: 1.5rem;
    }

        /* Улучшенное форматирование текста в карточках услуг */
    .service-choice-card p {
        text-align: left;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
        font-size: 0.85rem;
        letter-spacing: 0.2px;
        margin-bottom: 0.5rem;
        max-width: 100%;
        display: block;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Специально для карточки с краном (длинный текст) */
    .service-choice-card:has(> h3:contains("Операторский кран")) p,
    .service-choice-card:nth-child(4) p {
        font-size: 0.82rem;
        line-height: 1.4;
    }
    
    /* Обеспечиваем правильную высоту карточек */
    .service-choice-card {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 180px;
    }
    
    .service-choice-icon {
        flex-shrink: 0;
        margin-bottom: 0.35rem;
    }
    
    .service-choice-card h3 {
        flex-shrink: 0;
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    /* Контейнер для описания услуги */
    .service-choice-card p {
        flex-grow: 1;
        display: flex;
        align-items: flex-start;
    }
    
    /* Цена всегда внизу */
    .service-price {
        flex-shrink: 0;
        margin-top: auto;
        font-weight: 600;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#serviceTotal {
    color: #ffffff;
}

#service-choice .section-title {
    color: #ffffff;
}

#service-choice .section-subtitle {
    color: var(--primary-color);
}

#totalAmount {
    color: #d4ae6e;
    text-shadow: 0 4px 14px rgba(191, 159, 99, 0.5);
}

/* ══════════════════════════════════════════
   SEO CONTENT SECTION  —  scoped styles
   ══════════════════════════════════════════ */
.seo-content-section {
    background: #FAF7F2;
    padding: 4rem 2rem;
}

.seo-content-section .container {
    max-width: 860px;
}

/* Label above heading */
.seo-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: var(--primary-color) !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

/* Section heading */
.seo-heading {
    font-family: 'CormorantGaramond', serif !important;
    font-size: clamp(28px, 3.5vw, 40px) !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    color: var(--secondary-color) !important;
    text-align: left !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
}

.seo-heading::after { display: none !important; }

.seo-heading em {
    font-style: italic;
    color: var(--primary-color);
}

/* Body text */
.seo-text {
    color: #3D3830 !important;
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
    margin-bottom: 1.2rem !important;
    text-align: left !important;
}

.seo-text strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Gold divider */
.seo-divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 3rem 0;
    border: none;
}

/* Pain / quote block */
.seo-pain-block {
    border-left: 3px solid var(--primary-color);
    padding: 8px 0 8px 28px;
    margin: 2rem 0;
}

.seo-pain-block p {
    font-family: 'CormorantGaramond', serif !important;
    font-size: 1.35rem !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 1.55 !important;
    color: var(--secondary-color) !important;
    margin: 0 !important;
}

/* Services 2-column grid */
.seo-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #E8D9BC;
    margin: 2rem 0;
    border: 1px solid #E8D9BC;
}

.seo-service-card {
    background: #FAF7F2;
    padding: 26px 28px;
}

.seo-service-icon {
    font-size: 22px;
    margin-bottom: 10px;
    display: block;
}

.seo-service-card strong {
    display: block !important;
    font-family: 'CormorantGaramond', serif !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    color: var(--secondary-color) !important;
}

.seo-service-card p {
    font-size: 0.9rem !important;
    color: #7A7068 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Cities strip */

.seo-cities span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 16px;
    border-right: 1px solid rgba(191, 159, 99, 0.35);
    line-height: 1;
}

.seo-cities span:first-child { padding-left: 0; }
.seo-cities span:last-child  { border-right: none; }

/* Responsive */
@media (max-width: 600px) {
    .seo-services-grid { grid-template-columns: 1fr; }
    .seo-cities { padding: 16px 20px; }
    .seo-cities span { padding: 0 10px; font-size: 11px; }
}