* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

@font-face {
    font-family: 'Montserrat semibolt';
    src: url('fonts/ofont.ru_Montserrat1.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat bold';
    src: url('fonts/ofont.ru_Montserrat2.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat medium';
    src: url('fonts/ofont.ru_Montserrat3.ttf');
    font-display: swap;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background: #000;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* ========== ФОН ========== */
.first-bg {
    display: none;
}

/* ========== ШАПКА ========== */
#shapka {
    background: #000;
    height: 70px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    z-index: 100;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-inner {
    width: min(1760px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo1 {
    height: 36px;
    width: auto;
    margin-left: 0;
}

.burger-menu {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-left: 40px;
    margin-right: 0;
    width: 100%;
}

.nav-menu a {
    cursor: pointer;
    color: white;
    font-family: 'Montserrat semibolt';
    margin-left: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a:hover {
    transform: scale(1.1);
    color: #0D6D46;
}

#zayavka {
    border: 2px solid #0D6D46;
    border-radius: 50px;
    padding: 0 15px;
    line-height: 2.2;
    margin-left: auto;
    transition: all 0.3s ease;
}

#zayavka:hover {
    background-color: #0D6D46;
    color: white;
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
.main-content {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 16px;
    padding-top: 70px;
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1;
}

.bottom-bg,
#okonchanie {
    position: relative;
    z-index: 1;
}

/* ========== HERO ========== */
.hero-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 0;
    gap: 40px;
}

.hero-text {
    max-width: 700px;
    text-align: left;
    padding-top: 48px;
}

.hero-visual {
    width: min(80vw, 1600px);
    min-width: 320px;
    max-height: 1400px;
    aspect-ratio: 4 / 5;
    background-image: url('picture/zadnik1.png');
    background-size: cover;
    background-position: right top;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-right: -260px;
    margin-top: -300px;
}

#opisanie {
    color: white;
    font-size: clamp(36px, 5vw, 60px);
    font-family: 'Montserrat bold';
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

#opisanie.animate {
    opacity: 1;
    transform: translateX(0);
}

.nasha {
    color: #0D6D46;
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

#opisanie.animate .nasha {
    opacity: 1;
    transform: translateX(0);
}

.headline-top {
    display: inline-block;
    white-space: nowrap;
}

#opisanie2 {
    color: white;
    font-family: 'Montserrat medium';
    font-size: clamp(16px, 2vw, 22px);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
    margin: 25px 0 0 0;
    line-height: 1.6;
}

#opisanie2.animate {
    opacity: 1;
    transform: translateX(0);
}

#heroBtn {
    display: inline-block;
    margin-top: 35px;
    background-color: #0D6D46;
    color: white;
    font-family: 'Montserrat bold';
    font-size: clamp(16px, 2vw, 18px);
    padding: 16px 40px;
    border: 2px solid #0D6D46;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 0.45s, transform 0.8s ease 0.45s, background-color 0.3s ease, color 0.3s ease;
}

#heroBtn.animate {
    opacity: 1;
    transform: translateX(0);
}

#heroBtn:hover {
    background-color: transparent;
    color: #0D6D46;
}

/* ========== ЗАГОЛОВКИ СЕКЦИЙ ========== */
.section-anchor {
    scroll-margin-top: 90px;
}

#uslugi2, #keysi {
    color: white;
    text-align: center;
    font-size: clamp(32px, 6vw, 48px);
    font-family: 'Montserrat bold';
    margin-top: 120px;
    margin-bottom: 20px;
}

#uslugi2::after, #keysi::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #0D6D46;
    margin: 15px auto 0;
    border-radius: 3px;
}

#opisanie3 {
    color: white;
    text-align: center;
    font-family: 'Montserrat medium';
    font-size: clamp(14px, 2vw, 18px);
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
    line-height: 1.6;
}

/* ========== УСЛУГИ ========== */
.services-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 10px 5px;
}

.service-card {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #0D6D46;
    background: black;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-front {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: black;
}

.card-front img {
    max-width: 70%;
    object-fit: contain;
}

#kvadratiki1 .card-front img { height: 90px; }
#kvadratiki2 .card-front img { height: 80px; }
#kvadratiki3 .card-front img { height: 85px; }
#kvadratiki4 .card-front img { height: 80px; }
#kvadratiki5 .card-front img { height: 90px; }

.card-front p {
    font-family: 'Montserrat bold';
    font-size: 22px;
    color: white;
    margin-top: 15px;
    text-transform: uppercase;
}

.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0D6D46;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .card-hover {
    opacity: 1;
}

.card-hover h4 {
    font-family: 'Montserrat bold';
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.card-hover p {
    font-family: 'Montserrat medium';
    font-size: 14px;
    line-height: 1.5;
    color: white;
}

/* ========== ПОРТФОЛИО (КЕЙСЫ) ========== */
.cases-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    margin: 40px 0 60px;
    padding: 10px 5px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.cases-container::-webkit-scrollbar {
    height: 8px;
}

.cases-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.cases-container::-webkit-scrollbar-thumb {
    background: #0D6D46;
    border-radius: 10px;
}

.case-card {
    position: relative;
    width: 280px;
    height: 350px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #0D6D46;
    background: black;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-front {
    width: 100%;
    height: 100%;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-image-mobile {
    display: none;
}

.case-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0D6D46;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
    word-break: break-word;
    color: white;
}

.case-card:hover .case-hover {
    opacity: 1;
}

.case-hover h4 {
    font-family: 'Montserrat bold';
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.case-hover p {
    font-family: 'Montserrat medium';
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.case-hover strong {
    font-family: 'Montserrat bold';
}

/* ========== ЭТАПЫ РАБОТЫ ========== */
.plan-section {
    padding: 100px 0 120px;
    background-color: black;
    margin-top: 120px;
    scroll-margin-top: 80px;
    text-align: center;
    overflow: visible;
}

.plan-title {
    color: white;
    font-family: 'Montserrat bold';
    font-size: clamp(32px, 6vw, 48px);
    text-align: center;
    margin-bottom: 60px;
}

.plan-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #0D6D46;
    margin: 15px auto 0;
    border-radius: 3px;
}

.timeline-animated {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: flex-start;
    position: relative;
    padding: 0 60px;
    gap: 40px;
}

.timeline-progress {
    position: absolute;
    top: 45px;
    left: -350px;
    right: -350px;
    height: 3px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: #0D6D46;
    border-radius: 3px;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px #0D6D46;
}

.timeline-animated.visible .progress-fill {
    width: 100%;
}

.timeline-step-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    flex: 0 0 auto;
}

.timeline-animated.visible .timeline-step-animated {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step-animated:nth-child(2) { transition-delay: 0.1s; }
.timeline-step-animated:nth-child(3) { transition-delay: 0.3s; }
.timeline-step-animated:nth-child(4) { transition-delay: 0.5s; }
.timeline-step-animated:nth-child(5) { transition-delay: 0.7s; }
.timeline-step-animated:nth-child(6) { transition-delay: 0.9s; }

.step-dot-animated {
    width: 60px;
    height: 60px;
    background-color: black;
    border: 3px solid #0D6D46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    z-index: 3;
}

.timeline-step-animated:hover .step-dot-animated {
    transform: scale(1.15);
    box-shadow: 0 0 30px #0D6D46;
}

.dot-number {
    color: #0D6D46;
    font-family: 'Montserrat bold';
    font-size: 24px;
}

.step-content-animated h3 {
    color: white;
    font-family: 'Montserrat bold';
    font-size: 18px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.step-content-animated p {
    color: #bbbbbb;
    font-family: 'Montserrat medium';
    font-size: 13px;
    line-height: 1.6;
}

/* ========== НИЖНИЙ БЛОК ========== */
.bottom-bg {
    width: min(1760px, calc(100% - 32px));
    min-height: clamp(360px, 55vw, 500px);
    background-image: url('picture/zadnik2.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 40px auto 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.bottom-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 40px 20px;
}

.bottom-text {
    color: white;
    font-size: clamp(28px, 6vw, 48px);
    font-family: 'Montserrat bold';
    text-align: center;
    width: 90%;
    top: 30%;
    position: absolute;
}

.ostavit {
    color: white;
    font-family: 'Montserrat bold';
    border: 2px solid #0D6D46;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: clamp(20px, 4vw, 35px);
    background-color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    top: 55%;
    position: absolute;
}

.ostavit:hover {
    background-color: #0D6D46;
}

/* ========== ФУТЕР ========== */
#okonchanie {
    background: #000;
    height: 60px;
    width: 100%;
    border-top: 2px solid #0D6D46;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-inner {
    width: min(1760px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 0.7;
}







/* ========== МОДАЛКИ (НАДЁЖНЫЕ, БЕЗ АНИМАЦИЙ) ========== */
.modal-fullscreen {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: auto;
}
.modal-fullscreen.modal-is-visible {
    display: block;
}

.modal-fullscreen-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-image: url('picture/zadnik1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.bottom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background-color: #000;
    overflow-y: auto;
}
.bottom-modal.modal-is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Убираем любые анимации у контента */
.bottom-modal-content {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.modal-fullscreen-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 32px;
    line-height: 1;
    color: #d7f5e8;
    cursor: pointer;
    z-index: 1;
}

.modal-fullscreen-left,
.modal-fullscreen-right {
    flex: 1;
    padding: 50px;
    min-height: 100vh;
}

.modal-fullscreen-left {
    border-right: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.modal-fullscreen-left h2 {
    font-family: 'Montserrat bold';
    font-size: clamp(40px, 4.5vw, 64px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.modal-fullscreen-left p {
    color: white;
    font-family: 'Montserrat medium';
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.8;
}

.modal-fullscreen-right {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-fullscreen-right form {
    width: 100%;
    max-width: 450px;
}

#modal-form {
    display: grid;
    gap: 14px;
    align-content: center;
    height: 100%;
}

#modal-form input,
#modal-form textarea,
#bottom-modal-form input,
#bottom-modal-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #0D6D46;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Montserrat medium';
    font-size: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    resize: none;
}

#modal-form input:focus,
#modal-form textarea:focus,
#bottom-modal-form input:focus,
#bottom-modal-form textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #0D6D46;
    box-shadow: none;
}

#modal-form input::placeholder,
#modal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-fullscreen-submit,
.bottom-modal-submit {
    width: 100%;
    border: 2px solid #0D6D46;
    border-radius: 50px;
    background: #0D6D46;
    color: #fff;
    padding: 15px;
    font-family: 'Montserrat bold';
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-fullscreen-submit:hover,
.bottom-modal-submit:hover {
    background-color: #0a5236;
    transform: scale(1.02);
    box-shadow: none;
}

/* Нижняя модалка (контент) */
.bottom-modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 950px;
    margin: 0;
    padding: 80px 70px;
    background: #000;
    border: 2px solid #0D6D46;
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    color: #fff;
}
.bottom-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
    z-index: 3;
}
.bottom-modal-close:hover { color: #0D6D46; }
.bottom-modal-content h2 {
    font-family: 'Montserrat bold';
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}
.bottom-modal-subtitle {
    color: #bbb;
    margin-bottom: 40px;
    font-family: 'Montserrat medium';
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}
.form-row { display: flex; gap: 20px; }
.form-row input,
#bottom-modal-form textarea {
    padding: 18px 25px;
    background: #000;
    border: 2px solid #333;
    color: #fff;
    font-family: 'Montserrat medium';
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-bottom: 0;
}
.form-row input { border-radius: 50px; flex: 1; }
#bottom-modal-form textarea {
    width: 100%;
    border-radius: 20px;
    resize: none;
    margin-top: 20px;
}
#bottom-modal-form input:focus,
#bottom-modal-form textarea:focus {
    outline: none;
    border-color: #0D6D46;
    background: #0a0a0a;
}
#bottom-modal-form input::placeholder,
#bottom-modal-form textarea::placeholder { color: #666; }

.privacy-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    cursor: pointer;
    color: #bbb;
    font-size: 14px;
    font-family: 'Montserrat medium';
}
.privacy-checkbox input { display: none; }
.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 5px;
    background: #000;
    transition: all 0.3s ease;
    position: relative;
}
.privacy-checkbox input:checked ~ .checkmark {
    background: #0D6D46;
    border-color: #0D6D46;
}
.privacy-checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.privacy-text { color: #bbb; }
.privacy-text a {
    color: #0D6D46;
    text-decoration: none;
    border-bottom: 1px solid #0D6D46;
}
.privacy-text a:hover { opacity: 0.7; }
.bottom-modal-submit { margin-top: 10px; }

.form-success {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(13, 109, 70, 0.75);
    border-radius: 12px;
    background: rgba(13, 109, 70, 0.16);
    color: #d7f5e8;
    font-family: 'Montserrat medium';
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(6px);
    animation: successFadeIn 0.28s ease forwards;
}
@keyframes successFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 1024px) {
    .main-content { padding: 0 30px; }
    .hero-wrapper { margin-top: 40px; }
    .hero-text { padding-top: 0; }
    .timeline-progress { left: 30px; right: 30px; }
}

@media (max-width: 768px) {
    #shapka {
        height: 60px;
        background: rgba(0, 0, 0, 0.95);
    }
    .header-inner { width: 100%; padding: 0 20px; }
    .logo1 { height: 30px; }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 19px;
        z-index: 101;
    }
    .burger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        z-index: 100;
        border-left: 2px solid #0D6D46;
        margin-left: 0;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { margin: 0 !important; font-size: 20px; }
    #zayavka { margin-top: 20px; padding: 12px 25px; }

    .hero-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 100px 20px 60px;
        box-sizing: border-box;
        margin-top: 0;
        overflow: hidden;
    }
    .hero-visual {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('picture/zadnik1.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -2;
        margin: 0;
    }
    .hero-visual::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        z-index: -1;
    }
    .hero-text {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 500px;
        text-align: center;
        padding: 0 10px;
        margin: 0 auto;
    }
    #opisanie {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.15;
        margin: 0 0 15px 0 !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    #opisanie br { display: none !important; }
    #opisanie.animate { opacity: 1; transform: translateY(0); }
    .nasha { color: #0D6D46; display: inline-block; }
    #opisanie2 {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.5;
        margin: 0 0 25px 0 !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    }
    #opisanie2.animate { opacity: 1; transform: translateY(0); }
    #opisanie2 br { display: none; }
    #heroBtn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto !important;
        padding: 14px 24px !important;
        font-size: clamp(14px, 4vw, 16px) !important;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
    }
    #heroBtn.animate { opacity: 1; transform: translateY(0); }

    .main-content { padding: 0 20px; }
    #uslugi2, #keysi {
        font-size: clamp(28px, 7vw, 36px);
        margin-top: 80px;
        margin-bottom: 15px;
    }
    #opisanie3 {
        font-size: clamp(13px, 3.5vw, 15px);
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .services-wrapper { overflow-x: hidden; padding-bottom: 15px; margin-bottom: 40px; }
    .services-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 5px;
    }
    .service-card {
        flex: 0 0 calc(50% - 7.5px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .card-front p { font-size: clamp(14px, 4vw, 18px); }

    .cases-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 15px;
        margin: 30px 0 50px;
        padding: 10px 5px 20px;
    }
    .case-card { width: 260px; height: 320px; flex-shrink: 0; }
    .case-image-desktop { display: none; }
    .case-image-mobile { display: block; }

    .plan-section { padding: 60px 0 80px; margin-top: 40px; }
    .plan-title { font-size: clamp(28px, 7vw, 36px); margin-bottom: 40px; }
    .timeline-animated {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 10px;
    }
    .timeline-progress { display: none; }
    .timeline-step-animated {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        width: 100%;
        gap: 15px;
        padding: 20px 0 20px 25px;
        border-left: 2px solid #0D6D46;
        margin-left: 10px;
        opacity: 1;
        transform: none;
    }
    .timeline-step-animated::before {
        content: '';
        position: absolute;
        left: -8px;
        top: 28px;
        width: 14px;
        height: 14px;
        background: #0D6D46;
        border-radius: 50%;
        box-shadow: 0 0 10px #0D6D46;
    }
    .step-dot-animated { display: none; }
    .step-content-animated { flex: 1; }
    .step-content-animated h3 { font-size: clamp(14px, 4vw, 16px); margin-bottom: 8px; }
    .step-content-animated p { font-size: clamp(12px, 3.2vw, 13px); }

    .bottom-bg {
        width: calc(100% - 32px);
        min-height: 300px;
        margin: 30px auto 0;
        border-radius: 0;
    }
    .bottom-inner { width: 100%; padding: 30px 20px; }
    .bottom-text { font-size: clamp(22px, 6vw, 32px); margin-bottom: 20px; }
    .ostavit { font-size: clamp(16px, 4.5vw, 20px); padding: 12px 25px; }

    .footer-inner { width: calc(100% - 32px); }

    .modal-fullscreen-content {
        flex-direction: column;
        min-height: 100vh;
        margin: 0;
    }
    .modal-fullscreen-left {
        border-right: 0;
        border-bottom: 1px solid rgba(13, 109, 70, 0.35);
        min-height: auto;
        padding: 30px 20px;
        text-align: center;
    }
    .modal-fullscreen-left h2 { font-size: clamp(32px, 8vw, 40px); }
    .modal-fullscreen-right { min-height: auto; padding: 30px 20px; }

    .form-row { flex-direction: column; gap: 15px; }
    .form-row input { width: 100%; padding: 15px 20px; font-size: 14px; }
    #bottom-modal-form textarea { padding: 15px 20px; font-size: 14px; }

    .bottom-modal-content {
        margin: 20px auto;
        padding: 35px 20px;
        width: 92%;
        border-radius: 20px;
    }
    .bottom-modal-content h2 { font-size: clamp(24px, 6vw, 28px); }
    .bottom-modal-subtitle { font-size: clamp(13px, 3.5vw, 14px); margin-bottom: 25px; }
    .bottom-modal-submit { padding: 14px 20px; font-size: clamp(14px, 4vw, 16px); }
    
    
        /* Уменьшенный шрифт в кейсах для мобилок */
    .case-hover h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .case-hover p {
        font-size: 11px;
        margin: 4px 0;
    }
}

   

@media (max-width: 480px) {
    .services-container { gap: 12px; }
    .hero-wrapper { padding: 90px 15px 50px; }
    .hero-text { padding: 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}