:root {
    --color-1: #e3f866;
    --color-2: #388a67;
    --color-3: #01aa74;
    --color-4: #eaeeef;
    --color-5: #bad4ef;
    --color-6: #5bbfef;
    --color-7: #fcdb9b;

    --bg-light: #e8fde9;
    --bg-dark: #012d2f;
    --bg-green: #01aa74;
    --bg-blue: #0395f7;
    --text-dark: #012d2f;
    --text-light: #d5ffd6;
    --text-muted: #747875;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #e8fde9;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-3);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-3);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--bg-blue);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-3);
    color: white;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--bg-blue);
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-icon:hover {
    background: var(--color-3);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-3);
    color: white;
}

.btn-primary:hover {
    background: var(--color-2);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    background: var(--bg-green);
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-submit:hover {
    
    background: var(--color-2);
    color: var(--text-dark);
}

.btn-green {
    background: var(--color-3);
    color: white;
    padding: 10px 20px;
    font-size: 13px;
}

.btn-green:hover {
    background: var(--color-2);
}

.btn-green-solid {
    background: var(--color-3);
    color: white;
    padding: 15px 40px;
    font-size: 15px;
}

.btn-green-solid:hover {
    background: var(--color-2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #1e1e20;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(70, 226, 98, 0.5) 0%, rgba(91, 191, 239, 0.4) 100%);
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/main-lestnica.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero-bg-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* Добавьте анимацию для появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-bg-slide.active {
    animation: slideIn 1.5s ease-out forwards;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-form-wrapper {
    display: flex;
    justify-content: flex-end;
}

.contact-form-card {
    background: rgba(30, 31, 32, 0.85);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-3);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.phone-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.phone-input input {
    border: none;
    border-radius: 0;
    padding-left: 10px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.phone-prefix span {
    color: var(--text-muted);
    font-size: 14px;
}

.form-privacy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    line-height: 1.5;
}

/* About Section */
.about {
    background: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-title.dark {
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.section-subtitle.dark {
    color: var(--text-muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    padding: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Services Section */
.services {
    background: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    text-align: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.testimonial-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.slider-btn:hover {
    background: white;
    border-color: var(--color-3);
    color: var(--color-3);
}

.testimonial-card {
    max-width: 600px;
    padding: 40px;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonial-role a {
    color: var(--color-6);
    text-decoration: none;
}

.slider-dots {
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: var(--text-dark);
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.contact-image {
    position: relative;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-content {
    background: var(--bg-dark);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирует по вертикали */
    align-items: center;    /* Центрирует по горизонтали */
    text-align: center;     /* Центрирует текст внутри блоков */
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.contact-content .contact-form {
    max-width: 400px;
}

.contact-content .form-group input {
    background: white;
    border: none;
}

.contact-content .phone-input {
    background: white;
    border: none;
}

.contact-content .form-privacy {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-3);
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-3);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-3);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    display: none;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-form-wrapper {
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .contact-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        flex-direction: column;
    }

    .slider-btn {
        display: none;
    }

    .contact-content {
        padding: 50px 30px;
    }

    .contact-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text,
.hero-form-wrapper,
.service-card,
.stat-item {
    animation: fadeIn 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Testimonials Slider */
.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--color-3);
    border-color: var(--color-3);
    color: white;
}

.slider-btn.prev {
    left: -60px;
}

.slider-btn.next {
    right: -60px;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--color-3);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #1e1e20;
    padding: 10px;
    z-index: 10000;
}

/* Mobile full-screen menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 9999;
    padding: 40px 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: #1e1e20;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-3);
}

/* Desktop - hide mobile elements */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile - show mobile elements */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav, .header-actions {
        display: none !important;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .slider-btn {
        display: flex; /* Показываем кнопки на мобильных */
    }
}