:root {
    --primary-color: #a4d233;
    --primary-dark: #8ab82a;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.company-name {
    text-decoration: none;
    color: #6c9d00 !important;
}

.lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem;
    border-radius: 0 0 0 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-switcher button {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.lang-switcher button:hover {
    color: var(--text-dark);
}

.lang-switcher button.active {
    background: var(--primary-color);
    color: var(--white);
}

.ru, .en {
    display: none;
}

body.lang-ru .ru { display: inline; }
body.lang-ru .uz { display: none; }
body.lang-ru .en { display: none; }

body.lang-en .en { display: inline; }
body.lang-en .uz { display: none; }
body.lang-en .ru { display: none; }

/* Блокировка скролла когда открыта панель регионов */
body.regions-open {
    overflow: hidden !important;
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 4rem 2rem;
    min-height: 100vh;
    background: url('main.jpg') no-repeat bottom center;
    background-size: cover;
}

/* .logo {
    position: absolute;
    top: 2rem;
    left: 4rem;
    z-index: 10;
} */

img {
    height: 50px;
    width: auto;
}

.hero-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem 2.5rem 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-footer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.hero-footer a {
    color: #6c9d00;
    text-decoration: none;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

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

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.regions-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.regions-panel.active {
    right: 0;
}

.regions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.regions-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-dark);
}

.regions-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.regions-list a {
    display: block;
    padding: 0.6rem 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

/* .regions-list a:hover {
    background: var(--primary-color);
    color: var(--white);
} */

.regions-list a.active-region {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.regions-list a.active-region:hover {
    background: var(--primary-dark);
}

.footer-info {
    position: fixed;
    bottom: 1rem;
    right: 1.5rem;
    max-width: 380px;
    text-align: right;
    z-index: 50;
}

.disclaimer {
    font-size: 0.65rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.footer-links a {
    font-size: 0.7rem;
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.company-info {
    font-size: 0.7rem;
    color: #888;
}

html:has(.page-body),
.page-body {
    overflow: auto !important;
    overflow-y: scroll !important;
    background: #f8f9fa;
    height: auto !important;
    min-height: 100vh;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-logo {
    height: 50px;
    width: auto;
}

.page-updated {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.page-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.page-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.page-content section {
    margin-bottom: 2rem;
}

.page-content section:last-child {
    margin-bottom: 0;
}

.page-content h2 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.page-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.page-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .hero {
        padding: 0 2rem;
    }

    .logo {
        left: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .hero {
        padding: 8rem 2rem 2rem;
        min-height: calc(100vh - 4rem);
    }

    .logo {
        top: 1.5rem;
        left: 2rem;
    }

    .logo img {
        height: 50px;
    }

    .hero-content {
        padding: 2rem;
        text-align: center;
    }

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

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

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 7rem 1.5rem 2rem;
        min-height: calc(100vh - 3.5rem);
    }

    .logo {
        left: 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Адаптивные стили для страниц с .page-container */
@media (max-width: 768px) {
    .page-container {
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .regions-panel {
        width: 100%;
        right: -100%;
        height: 100vh;
        height: 100dvh; /* Для лучшей поддержки мобильных */
    }
    
    .regions-list {
        padding: 1rem 1rem 4rem 1rem;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
    }
    
    .footer-info {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 2rem auto 1rem;
        text-align: center;
        max-width: 100%;
        padding: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 1rem;
    }
    
    .page-content {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .page-content h2 {
        font-size: 1.1rem;
    }
    
    .page-content p, .page-content li {
        font-size: 0.9rem;
    }
    
    .lang-switcher {
        padding: 0.3rem;
        gap: 0.3rem;
    }
    
    .lang-switcher button {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Стили для 404 страницы */
.error-content {
    text-align: center;
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(164, 210, 51, 0.3);
}

.error-message {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .error-number {
        font-size: 6rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: 0.9rem;
    }
}
