:root {
    --bg: #f5f5f5;
    --brand: #c15927;
    --dark: #2c3e50;
    --green: #27ae60;
    --light-gray: #ecf0f1;
    --text-light: #7f8c8d;
}

* { box-sizing: border-box; }

/* Стили для input range и select */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c15927 0%, #a84620 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(193, 89, 39, 0.3);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(193, 89, 39, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c15927 0%, #a84620 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(193, 89, 39, 0.3);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #c15927, #27ae60);
    height: 8px;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

input[type="range"]::-moz-range-progress {
    background: linear-gradient(to right, #c15927, #27ae60);
    height: 8px;
    border-radius: 4px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c15927' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

body { 
    background: var(--bg); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    line-height: 1.6;
    color: #333;
}

html, body {
    height: 100%;
}

.site-container { 
    margin: 0 auto; 
    background: #fff; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
}

/* ===== ШАПКА ===== */
.header-main { 
    background: linear-gradient(135deg, #c15927 0%, #a84620 100%);
    padding: 20px 30px; 
    border-bottom: 4px solid #8b3818;
    box-shadow: 0 4px 15px rgba(193, 89, 39, 0.15);
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-logo { 
    height: 70px; 
    display: block; 
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ads-side { 
    min-height: 70px; 
    display: flex; 
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 800px) {
    .header-inner { 
        flex-direction: column; 
        text-align: center;
        gap: 15px;
        padding: 0 15px;
    }
    .header-main {
        padding: 15px 20px;
    }
    .ads-side { 
        width: 100%; 
        justify-content: center; 
    }
    .main-logo {
        height: 55px;
    }
}

/* ===== МЕНЮ НАВИГАЦИИ ===== */
.custom-nav-panel {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 4px solid #c15927;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-mobile-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background: #1a252f;
    color: #fff;
    border: none;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-mobile-btn:hover {
    background: #0f1620;
}

.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    color: #ecf0f1 !important;
    padding: 16px 18px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.nav-link i {
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #39d7b0 !important;
}

.nav-link:hover i {
    transform: translateY(-2px);
    color: #39d7b0;
}

.nav-link.active {
    background: #1a2634;
    color: #39d7b0 !important;
    box-shadow: inset 0 -4px 0 #c15927;
}

.nav-link.active i {
    color: #39d7b0;
}

.cta-button {
    background: #27ae60 !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 12px 18px !important;
    margin: 0 10px;
    border: none !important;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #229954 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cta-button.active {
    background: #c15927 !important;
    box-shadow: inset 0 -4px 0 #c15927 !important;
    color: #fff !important;
}

.cta-button.active:hover {
    background: #a84620 !important;
}

@media (max-width: 900px) {
    .nav-mobile-btn { 
        display: block !important; 
    }
    .nav-menu-list {
        display: none !important;
        flex-direction: column;
        background: #1a252f;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .nav-menu-list.show { 
        display: flex !important; 
    }
    .nav-link {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        justify-content: center;
        padding: 14px 12px;
    }
    .cta-button {
        margin: 10px auto !important;
        width: 85%;
        text-align: center;
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 12px 16px !important;
    }
}

/* ===== КОНТЕНТ ===== */
.content-wrapper {
    display: flex;
    gap: 20px;
}

main {
    flex: 1;
    min-width: 0;
}

.side-left, .side-right { 
    width: 240px; 
    flex-shrink: 0; 
}



@media (max-width: 1100px) {
    .side-left, .side-right { 
        width: 100%; 
    }
}

/* ===== РЕКЛАМНЫЕ БОКСЫ ===== */
.side-box { 
    background: #fff; 
    border: 1px solid #ddd; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    transition: all 0.3s ease;
}

.side-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.box-head { 
    background: linear-gradient(135deg, #c15927 0%, #a84620 100%);
    color: #fff; 
    padding: 12px 15px; 
    text-align: center; 
    font-weight: bold; 
    font-size: 12px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.box-body { 
    padding: 20px; 
    text-align: center; 
    font-size: 14px;
}

.box-body hr { 
    margin: 15px 0; 
    border: 0; 
    border-top: 1px solid #eee; 
}

.box-body a {
    color: var(--brand);
    transition: color 0.3s ease;
}

.box-body a:hover {
    color: #a84620;
}

/* ===== ГЛАВНАЯ СТРАНИЦА: ГЕРО-БЛОК ===== */
.hero-card { 
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 1px solid #e0e0e0;
    padding: 45px;
    border-radius: 12px; 
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.hero-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.hero-flex { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
}

.hero-img { 
    width: 120px; 
    height: auto; 
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero-text h1 { 
    font-size: 28px; 
    color: var(--dark); 
    margin: 0 0 15px 0; 
    line-height: 1.3;
    font-weight: 700;
}

.hero-text p {
    font-size: 16px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.price-tag { 
    background: linear-gradient(135deg, #fff9c4 0%, #fffde7 100%);
    display: inline-block; 
    padding: 10px 24px; 
    border-radius: 25px; 
    margin: 15px 0; 
    border: 2px solid #fbc02d; 
    font-size: 16px; 
    font-weight: 700;
    color: #f57f17;
    box-shadow: 0 2px 8px rgba(251, 192, 45, 0.2);
}

.hero-btn { 
    display: inline-block; 
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff !important; 
    padding: 16px 40px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: bold;
    font-size: 15px;
    margin-top: 20px; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(39,174,96,0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.hero-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(39,174,96,0.4);
}

.hero-btn:active {
    transform: translateY(-1px);
}

/* ===== ГЛАВНАЯ СТРАНИЦА: ПЛИТКИ ИНФОРМАЦИИ ===== */
.info-tiles { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    margin-top: 30px; 
}

.tile { 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    padding: 35px 25px; 
    text-align: center; 
    border-radius: 12px; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tile:hover { 
    border-color: var(--brand);
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(193, 89, 39, 0.15);
}

.tile-icon-wrapper { 
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tile-icon-wrapper svg { 
    width: 56px; 
    height: 56px; 
    stroke: var(--brand);
    stroke-width: 1.5;
}

.tile h4 { 
    margin: 15px 0 10px 0; 
    color: var(--dark); 
    font-size: 18px;
    font-weight: 700;
}

.tile p { 
    color: #777; 
    font-size: 14px; 
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .hero-flex { 
        flex-direction: column; 
        text-align: center;
        gap: 30px;
    }
    .hero-text h1 { 
        font-size: 24px; 
    }
    .hero-card {
        padding: 30px 20px;
    }
    .hero-img {
        width: 100px;
    }
}

/* ===== ФУТЕР ===== */
.footer-main { 
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff; 
    padding: 50px 20px; 
    text-align: center;
    margin-top: auto;
    border-top: 4px solid #c15927;
}

.footer-links { 
    margin-bottom: 20px; 
}

.footer-links a { 
    color: rgba(255,255,255,0.8); 
    margin: 0 20px; 
    text-decoration: none; 
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover { 
    color: #39d7b0; 
}

.footer-main p {
    margin: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.footer-main b {
    color: #39d7b0;
    font-weight: 600;
}

.counters {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.shadow-sm { 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
}

/* ===== УТИЛИТЫ ===== */
main {
    margin: 0;
    padding: 0;
}

main > * {
    margin: 0;
}

@media (max-width: 480px) {
    html, body {
        font-size: 14px;
    }
    
    .site-container {
        margin: 0;
        border-radius: 0;
    }
    
    .header-main { 
        padding: 12px 15px; 
    }
    
    .header-inner { 
        flex-direction: column; 
        gap: 10px;
        padding: 0 10px;
    }
    
    .main-logo {
        height: 45px;
    }
    
    .ads-side { 
        width: 100%; 
        justify-content: center;
        min-height: 45px;
    }
    
    .custom-nav-panel {
        position: sticky;
        top: 0;
        z-index: 998;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-mobile-btn {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .nav-menu-list {
        top: 50px !important;
    }
    
    .nav-link {
        padding: 12px 10px !important;
        font-size: 11px;
        border-right: none !important;
    }
    
    .nav-link i {
        margin-right: 4px;
    }
    
    .nav-link span {
        font-size: 11px;
    }
    
    .content-wrapper { 
        flex-direction: column; 
        padding: 12px 10px;
        gap: 15px;
    }
    
    .side-left, .side-right { 
        width: 100%;
    }
    

    
    .hero-card { 
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .hero-flex { 
        flex-direction: column; 
        text-align: center;
        gap: 15px;
    }
    
    .hero-text h1 { 
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-text p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .hero-img {
        width: 70px;
        margin: 0 auto;
    }
    
    .price-tag { 
        font-size: 13px;
        padding: 6px 12px;
        margin: 10px 0;
    }
    
    .hero-btn { 
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        margin-top: 15px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .counter-box {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .counter-number {
        font-size: 26px;
        margin: 10px 0;
    }
    
    .counter-label {
        font-size: 11px;
    }
    
    .calc-box {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .calc-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .calc-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .calc-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .calc-result {
        padding: 12px;
        margin-top: 15px;
    }
    
    .calc-result-label {
        font-size: 11px;
    }
    
    .calc-result-value {
        font-size: 22px;
        margin: 8px 0;
    }
    
    .info-tiles { 
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .tile { 
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .tile h4 { 
        font-size: 16px;
        margin: 12px 0 8px 0;
    }
    
    .tile p { 
        font-size: 13px;
    }
    
    .tile-icon-wrapper svg { 
        width: 45px; 
        height: 45px;
    }
    
    .side-box { 
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .box-head { 
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .box-body { 
        padding: 15px;
        font-size: 13px;
    }
    
    .footer-main { 
        padding: 25px 15px;
        font-size: 13px;
    }
    
    .footer-links { 
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .footer-links a { 
        margin: 0;
        padding: 6px 0;
    }
    
    .footer-main p {
        font-size: 12px;
        margin: 8px 0;
    }
    
    .counters {
        font-size: 11px;
    }

    .partner-ads {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }

    .partner-ad-item {
        flex: 1;
        min-width: 0;
    }

    .partner-ad-item > div {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 250px;
    }

    @media (max-width: 991px) {
        .partner-ads {
            flex-direction: column;
        }

        .partner-ad-item {
            flex: 1;
        }
    }
        margin-top: 12px;
    }
    
    /* Улучшенные стили для input и select на мобилке */
    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    select, input[type="text"], input[type="email"], textarea, .calc-input {
        font-size: 16px !important;
    }
}

@media (max-width: 600px) {
    .hero-flex { 
        flex-direction: column; 
        text-align: center;
    }
    .hero-text h1 { 
        font-size: 22px; 
    }
    .info-tiles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 14px 15px;
    }
    
    .header-inner {
        gap: 12px;
        padding: 0 12px;
    }
    
    .main-logo {
        height: 55px;
    }
    
    .content-wrapper {
        padding: 15px 12px;
        gap: 20px;
    }
    
    .nav-link {
        padding: 14px 14px;
        font-size: 12px;
    }
}
