/* ===================================
   Reset & Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ===================================
   Container
   =================================== */

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

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ===================================
   Variables
   =================================== */

:root {
    /* Основные цвета */
    --primary-color: #4a9eff;
    --secondary-color: #6bb3ff;
    --accent-color: #2a3342;
    
    /* Текст */
    --text-color: #acacac;
    --text-light: #d0d0d0;
    --text-dark: #acacac;
    --text-white: #ffffff;
    --text-heading: #ffffff;
    
    /* Фоны */
    --bg-primary: #1e2530;
    --bg-secondary: #151a20;
    --bg-light: #1a202a;
    --bg-dark: #1e2530;
    --bg-darker: #151a20;
    --bg-white: #ffffff;
    --bg-card: #2a3342;
    --bg-header: rgba(30, 37, 48, 0.95);
    
    /* Границы */
    --border-color: #3a4452;
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, rgba(74,158,255,1) 0%, rgba(107,179,255,1) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(30, 37, 48, 0.95));
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    
    /* Разное */
    --transition: all 0.3s ease;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

.section__title {
    text-align: center;
    padding: 35px;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ===================================
   Header
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.header__logo {
    display: flex;
    align-items: center;
}

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

.header__nav {
    display: none;
}

.header__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header__link {
    color: var(--text-white);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.header__link:hover::after {
    width: 100%;
}

.header__contacts {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.header__phone,
.header__email {
    color: var(--text-white);
}

.header__cta-btn {
    display: none;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.header__burger {
    display: flex;
    flex-direction: column;
    gap: 6.9px;
    width: 30px;
    height: 24px;
    padding: 0;
}

.header__burger span {
    width: 100%;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (min-width: 1024px) {
    .header__nav {
        display: block;
    }
    
    .header__contacts {
        display: flex;
    }
    
    .header__cta-btn {
        display: block;
    }
    
    .header__burger {
        display: none;
    }
}

/* Mobile Menu */
.header__nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.header__nav.mobile-open .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    overflow: hidden;
}

.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 120px 20px 80px;
}

.hero__logo {
    margin-bottom: 10rem;
    display: flex;
    justify-content: center;
}

.hero__logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.hero__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__subtitle {
        font-size: 1.5rem;
    }
    
    .hero__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===================================
   About Section
   =================================== */

.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about .container {
    max-width: 1500px;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Grid Layout 2x2 */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    row-gap: 5rem;
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 2.5rem;
        row-gap: 5rem;
    }
}

/* Слева сверху: текст о компании */
.about__text {
    grid-column: 1;
    grid-row: 1;
}

@media (min-width: 768px) {
    .about__text {
        grid-column: 1;
        grid-row: 1;
    }
}

.about__text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

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

/* Справа сверху: дрон Mavic */
.about__mavic-image {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .about__mavic-image {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Слева снизу: дрон Atlas */
.about__atlas-image {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .about__atlas-image {
        grid-column: 1;
        grid-row: 2;
    }
}

/* Справа снизу: блок о парке БАС */
.about__drone-text {
    grid-column: 1;
    grid-row: 4;
}

@media (min-width: 768px) {
    .about__drone-text {
        grid-column: 2;
        grid-row: 2;
    }
}

.about__drone-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.about__drone-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about__drone-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .about__drone-img {
        max-width: 460px;
    }
}

/* Блоки преимуществ */
.about__advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .about__advantages {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .about__advantages::-webkit-scrollbar {
        height: 6px;
    }
    
    .about__advantages::-webkit-scrollbar-track {
        background: var(--bg-primary);
        border-radius: 3px;
    }
    
    .about__advantages::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .advantage-card {
        min-width: 250px;
        max-width: 250px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .about__advantages {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    /* background: var(--bg-light); */
    border-radius: 15px;
    transition: var(--transition);
}

.advantage-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.advantage-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.advantage-card__text {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (max-width: 767px) {
    .services__grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .services__grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .services__grid::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 3px;
    }
    
    .services__grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .service-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .services__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.service-card__description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card__btn {
    align-self: flex-start;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 600;
    margin-top: auto;
}

.service-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Training Section
   =================================== */

.training {
    padding: 80px 0;
    background: var(--bg-primary);
}

.training__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 767px) {
    .training__grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .training__grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .training__grid::-webkit-scrollbar-track {
        background: var(--bg-primary);
        border-radius: 3px;
    }
    
    .training__grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .training-card {
        min-width: 300px;
        max-width: 300px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .training__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.training-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.training-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.training-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.training-card__title {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 0;
}

.training-card__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: var(--accent-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.training-card__description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.training-card__details {
    margin-bottom: 1.5rem;
}

.training-card__detail {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.training-card__btn {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 600;
}

.training-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.training__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .training__actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===================================
   Developments Section
   =================================== */

.developments {
    padding: 80px 0;
    background: var(--bg-light);
}

.developments__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 767px) {
    .developments__grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .developments__grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .developments__grid::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 3px;
    }
    
    .developments__grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .development-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .developments__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .developments__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.development-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.development-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.development-card__icon {
    width: 70px;
    height: 70px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.development-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.development-card__description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.development-card__features {
    list-style: none;
    padding: 0;
}

.development-card__features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.development-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}


/* ===================================
   Gallery Section
   =================================== */

.gallery {
    padding: 80px 0;
    background: var(--bg-primary);
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (max-width: 639px) {
    .gallery__grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .gallery__grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .gallery__grid::-webkit-scrollbar-track {
        background: var(--bg-primary);
        border-radius: 3px;
    }
    
    .gallery__grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .gallery__item {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

@media (min-width: 640px) {
    .gallery__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.gallery__placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ===================================
   Contacts Section
   =================================== */

.contacts {
    padding: 80px 0;
    background: var(--bg-light);
}

.contacts__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .contacts__content {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contacts__info {
    display: grid;
    gap: 2rem;
}

.contact-item__title {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.contact-item__text {
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-item__link {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-item__link:hover {
    text-decoration: underline;
}

/* Forms */
.contacts__form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-color);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contacts__map {
    width: 100%;
    margin-top: 3rem;
}

.contacts__map-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}


/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer__logo-img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__menu a {
    color: var(--text-light);
}

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

.footer__contacts p {
    margin-bottom: 0.5rem;
}

.footer__contacts a {
    color: var(--text-light);
}

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

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-dark);
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-to-top.active {
    display: flex;
}

.scroll-to-top svg {
    width: 50px;
    height: 50px;
    fill: rgb(102 176 255);
}

/* ===================================
   Modal Windows
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .modal__content {
        max-width: 1100px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-white);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
}

.modal__body {
    padding: 2.5rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal__title {
    margin-bottom: 0;
    color: var(--text-heading);
}

/* Modal Layout - two columns */
.modal__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .modal__content-wrapper {
        flex-direction: row;
        gap: 3rem;
    }
}

/* Left side - text content */
.modal__text-content {
    flex: 1;
    min-width: 0;
}

/* Modal Sections - without background */
.modal__section {
    padding: 0;
    margin-bottom: 1.5rem;
}

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

.modal__section h4 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal__section ul {
    list-style: none;
    padding: 0;
}

.modal__section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.modal__section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal__section--form {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 2rem;
}

/* Right side - image gallery */
.modal__gallery {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .modal__gallery {
        max-width: 450px;
        flex-shrink: 0;
    }
}

.modal__main-image-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

.modal__main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: none;
}

.modal__main-image.active {
    display: block;
}

.modal__image-placeholder {
    padding: 2rem;
    color: var(--text-dark);
    text-align: center;
    width: 100%;
}

/* Thumbnail gallery */
.modal__thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.modal__thumbnails::-webkit-scrollbar {
    height: 4px;
}

.modal__thumbnails::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 2px;
}

.modal__thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.modal__thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    scroll-snap-align: start;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.modal__thumbnail.active {
    border-color: var(--primary-color);
}

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

.modal__thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.25rem;
}

.modal__body h3,
.modal__form h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
}

/* ===================================
   Utility Classes
   =================================== */

.hidden {
    display: none !important;
}

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

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .about__advantages {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .header,
    .footer,
    .modal,
    .btn {
        display: none !important;
    }
}



