@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;800;900&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #00D26A;
    --primary-rgb: 0, 210, 106;
    --primary-dark: #00A651;
    --primary-glow: rgba(0, 210, 106, 0.5);
    --text-color: #222;
    --text-light: #555;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --border-color: #eee;
    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior moved to JS to avoid snap conflicts */
    scroll-snap-type: y mandatory;
}

section, .hero, footer {
    scroll-snap-align: start;
    scroll-margin-top: var(--header-height);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    font-size: 16px;
    padding-top: var(--header-height);
    overflow-x: hidden;
}

html.no-scroll, body.no-scroll {
    overflow: hidden !important;
}

.modal__content, .modal__body {
    overscroll-behavior: contain;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* SECTION TITLES */
.section__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: block;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.section__subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* ANIMATIONS CLASSES */
/* Hide initially */
[data-animate] {
    opacity: 0;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Fade Up (Default) */
[data-animate="fade-up"] {
    transform: translateY(40px);
}
[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Right */
[data-animate="fade-right"] {
    transform: translateX(-50px);
}
[data-animate="fade-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom In */
[data-animate="zoom-in"] {
    transform: scale(0.8);
}
[data-animate="zoom-in"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Flip Up */
[data-animate="flip-up"] {
    transform: perspective(1000px) rotateX(20deg) translateY(30px);
    transform-origin: top;
}
[data-animate="flip-up"].is-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Exo 2', sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

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

/* HEADER */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98); /* More opaque */
    backdrop-filter: blur(15px); /* Smooth blur */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Improved separation */
    box-shadow: 0 4px 25px rgba(0,0,0,0.08); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    text-decoration: none;
}

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

.logo span {
    font-family: 'Exo 2', sans-serif; /* Back to Exo 2 */
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}

.nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    gap: 25px;
}

.nav__link {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-dark);
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav__link:hover {
    color: var(--primary-dark);
}

.nav__link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header__phone {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    color: var(--bg-dark);
    display: none;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: var(--transition);
}

.header__phone:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (min-width: 1100px) {
    .header__phone { display: block; }
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--bg-dark);
    position: absolute;
    transition: var(--transition);
    border-radius: 2px;
}

.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-btn span:nth-child(3) { bottom: 0; }

@media (max-width: 768px) {
    .nav { display: none; }
    .header__phone { display: none; }
    .header__actions .btn { display: none; }
    .burger-btn { display: block; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    padding: 100px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

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

.mobile-menu__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--bg-dark);
    padding: 10px;
    line-height: 1;
}

.mobile-menu__list li { margin-bottom: 25px; }

.mobile-menu__link {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #0d1e12;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.6);
    transform: scale(1.05);
    animation: zoomIn 30s infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
    max-width: 1000px;
}

.hero__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero__features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero__features li {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    transition: var(--transition);
    animation: float-hero 4s ease-in-out infinite;
}

.hero__features li:nth-child(1) { animation-delay: 0s; }
.hero__features li:nth-child(2) { animation-delay: 1s; }
.hero__features li:nth-child(3) { animation-delay: 2s; }
.hero__features li:nth-child(4) { animation-delay: 3s; }

.hero__features li:hover {
    background: rgba(0, 210, 106, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-5px) scale(1.05);
    animation-play-state: paused;
    color: #fff;
    cursor: default;
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Services */
.services { background-color: var(--bg-light); }

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: var(--transition);
}

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

.service-card:hover::before { height: 6px; }

.service-card__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.1), rgba(0, 166, 81, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-dark);
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.service-card__icon svg {
    width: 35px;
    height: 35px;
}

.service-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--bg-dark);
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
}

.service-card__text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Benefits (WHY US) */
.benefits { background-color: #fff; }

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

@media (min-width: 600px) {
    .benefits__grid { grid-template-columns: 1fr 1fr; }
}

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

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-width: 0;
}

.benefit-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.benefit-item__num {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(255,255,255,0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.8;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
}

/* Equipment */
.equipment {
    background-color: var(--bg-darker);
    color: #fff;
    background-image: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 100%);
}

.equipment .section__title { color: #fff; }

.equipment__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.equipment__item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    color: #ccc;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

.equipment__item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.team-card {
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover { transform: translateY(-10px); }

.team-card__img {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #e0e0e0;
    overflow: hidden;
}

.team-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-card__img img { transform: scale(1.1); }

.team-card h3 {
    padding: 20px;
    font-size: 1.3rem;
    color: var(--bg-dark);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
}

/* Certificates */
.certificates { background-color: var(--bg-light); }
.certificates__grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cert-item {
    text-align: center;
    width: 220px;
    cursor: pointer;
}

.cert-item__img {
    width: 100%;
    height: 300px;
    border: 1px solid var(--border-color);
    background: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.cert-item:hover .cert-item__img {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.cert-item:hover .cert-item__img img {
    transform: scale(1.05);
}

.cert-item p {
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
}

/* Gallery */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery__item {
    height: 300px;
    background-color: #eee;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item:hover img { transform: scale(1.1); }

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay span {
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Clients */
.clients {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0 40px;
    cursor: grab;
}

.clients-slider:active {
    cursor: grabbing;
}

.clients-slider.is-dragging .clients-track img {
    pointer-events: none;
    transition: none;
    transform: scale(1); /* Force stable scale during drag */
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

.clients-track img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: var(--transition);
    flex-shrink: 0;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.clients-slider:hover .clients-track img {
    pointer-events: auto;
}

.clients-track img:hover {
    transform: scale(1.1);
}

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: #fff;
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .contacts__wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

.contact-row { margin-bottom: 30px; }

.contact-row h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-row p {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

.contact-link {
    position: relative;
    display: inline-block;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.work-exp {
    display: inline-flex;
    align-items: center;
    margin-top: 25px;
    padding: 12px 25px;
    background: #fff;
    color: var(--bg-dark);
    font-weight: 800;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.work-exp::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin-right: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d26a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { 
        transform: translateY(0); 
        filter: drop-shadow(0 2px 2px rgba(0,210,106,0.2)); 
    }
    50% { 
        transform: translateY(-3px); 
        filter: drop-shadow(0 6px 8px rgba(0,210,106,0.5)); 
    }
}

.work-exp:hover {
    background: #f9f9f9;
    padding-left: 30px;
}

.work-exp::after {
    display: none;
}

.work-exp:hover {
    background: linear-gradient(to right, rgba(0, 210, 106, 0.15), rgba(255, 255, 255, 0.5));
    padding-left: 30px;
}

@keyframes pulse-status {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 210, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); }
}

.contacts__map {
    border-radius: var(--radius);
    overflow: hidden;
}

/* Footer */
.footer {
    background-color: #080808;
    color: #888;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 1px solid #1a1a1a;
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer__logo img {
    height: 35px;
    width: auto;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer__title {
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer__links {
    list-style: none;
    padding: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: #888;
    transition: var(--transition);
    display: inline-block;
}

.footer__links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer__bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.privacy-policy {
    color: #666;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    font-size: 0.85rem;
}

.privacy-policy:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer { padding: 50px 0 30px; }
    .footer__top { gap: 40px; }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.lightbox.active img { transform: scale(1); }

.lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    line-height: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overscroll-behavior: contain;
}

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

.modal__content {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal__content--large {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal__content--large {
        flex-direction: row;
        max-height: 80vh;
    }
}

.modal.active .modal__content { transform: translateY(0) scale(1); }

.modal__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.modal__text {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9); /* Background for visibility */
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: transform 0.3s, background 0.3s;
    z-index: 10;
    padding: 0;
    line-height: 1;
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.modal__close:hover {
    transform: rotate(90deg);
    color: var(--bg-dark);
    background: #fff;
}

/* Fixed Footer Modal Variant */
.modal__content--fixed-footer {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 85vh;
    overflow: hidden; 
}

.modal__header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.modal__header .modal__title {
    margin-bottom: 0;
}

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

.modal__body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

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

.modal__footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fdfdfd;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

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

.modal__content--requisites {
    max-width: 1000px;
    width: 95%;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.req-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.req-table td:first-child {
    color: #888;
    width: 35%;
    padding-right: 15px;
}

.req-table td:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.copy-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
}

.copy-btn svg {
    display: block;
}

/* Project Modal Specifics */
.project-modal__grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .project-modal__grid {
        flex-direction: row;
    }
}

.project-modal__image {
    width: 100%;
    height: 250px;
    background: #eee;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .project-modal__image {
        width: 50%;
        height: auto;
    }
}

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

.project-modal__info {
    padding: 25px 20px;
    width: 100%;
    overflow-y: visible; /* Default to visible for mobile flow */
}

@media (min-width: 768px) {
    .project-modal__info {
        padding: 40px;
        width: 50%;
        max-height: 80vh;
        overflow-y: auto; /* Scroll only info on desktop */
    }
}

/* Mobile fix for large modal scrolling */
@media (max-width: 768px) {
    .modal__content--large {
        overflow-y: auto;
        display: block;
        max-height: 85vh;
    }
    
    .project-modal__grid {
        height: auto;
        display: block;
    }
}

.project-details-list {
    list-style: none;
    padding: 0;
}

.project-details-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.project-details-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.form-group { margin-bottom: 20px; }

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--bg-light);
    background-color: var(--bg-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.1);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero__title { font-size: 2.5rem; }
    .section__title { font-size: 2rem; }
    .btn--large { width: 100%; }

    .hero {
        align-items: flex-start;
        padding-top: 120px;
        min-height: auto;
        height: auto;
        padding-bottom: 80px;
    }
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 992px) {
    .side-nav { display: none; }
}

.side-nav__dot {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
}

.side-nav__dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.side-nav__dot.active {
    background-color: transparent;
    border-color: var(--primary-color);
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--primary-glow);
}

.side-nav__dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Tooltip */
.side-nav__dot::after {
    content: attr(data-title);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background-color: #fff;
    color: var(--bg-dark);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: 'Exo 2', sans-serif;
    pointer-events: none;
}

.side-nav__dot:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}