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

:root {
    --primary-color: #c9a66b;
    --secondary-color: #2c3e50;
    --accent-color: #e8d5b7;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --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: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.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: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-flex;
    /* align-items: center; */
    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: var(--text-dark);
    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::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%;
}

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

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* 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;
     /* opacity: 0.3; */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 166, 107, 0.8) 0%, rgba(44, 62, 80, 0.8) 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 {
  position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero h1 {
    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(201, 166, 107, 0.3);
}

/* 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 */
    /* font-family: 'CormorantGaramond-Light', serif;  */
}

/* 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 h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--accent-color);
    font-size: 1rem;
}

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

/* 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, #c9a66b, #e8d5b7);
    color: var(--secondary-color);
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(36,30,20,0.18);
    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,#d6b77c,#f0e1bc); }
.toast.error { background: linear-gradient(90deg,#f0ccb0,#dba86b); }
.toast.info { background: linear-gradient(90deg,#e8d5b7,#f7efe0); }

/* Slider styles */
.slider-container label {
    color: var(--secondary-color);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, rgba(201,166,107,0.25), rgba(201,166,107,0.1));
    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(201, 166, 107, 0.3);
}

.service-choice-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 8px 28px rgba(201, 166, 107, 0.25);
    background: linear-gradient(135deg, rgba(201, 166, 107, 0.08) 0%, rgba(232, 213, 183, 0.12) 100%);
}

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

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

.service-choice-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

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

.pricing-card {
    background: white;
    padding: 2.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: 3rem;
    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: #ddd;
    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;
}

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

.faq {
  background: #f8f9fa;
}

.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 #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}


/* Кнопка вопроса */

.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;
}

.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: #555;
}


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

.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; /* 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);
    }
}

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

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

    .nav-menu.active {
        right: 0;
    }

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

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

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

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

    .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.1rem !important;
    }

    /* 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(0,0,0,0.55), rgba(0,0,0,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;
    }

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

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

    .testimonial-item {
        padding: 1rem;
        border-radius: 12px;
    }

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

    .testimonial-text {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }

    .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 {
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }

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

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

    #faq {
        padding-top: 1.5rem;
    }
}

/* 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);
}