/* БАЗОВЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ПО БОКАМ */
.decoration {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 180px;
    pointer-events: none;
    z-index: -1;
}

.left-decoration {
    left: 0;
}

.right-decoration {
    right: 0;
}

/* КРУГИ */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.2px solid;
    background: transparent;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: -35px;
    border-color: rgba(121, 61, 61, 0.08);
}

.circle-2 {
    width: 65px;
    height: 65px;
    top: 45%;
    left: -18px;
    border-color: rgba(121, 61, 61, 0.12);
}

.circle-3 {
    width: 50px;
    height: 50px;
    top: 75%;
    left: -12px;
    border-color: rgba(121, 61, 61, 0.18);
}

.circle-4 {
    width: 85px;
    height: 85px;
    top: 25%;
    right: -25px;
    border-color: rgba(121, 61, 61, 0.1);
}

.circle-5 {
    width: 60px;
    height: 60px;
    top: 55%;
    right: -20px;
    border-color: rgba(121, 61, 61, 0.15);
}

.circle-6 {
    width: 45px;
    height: 45px;
    top: 80%;
    right: -8px;
    border-color: rgba(121, 61, 61, 0.2);
}

/* ТОЧКИ */
.decoration-dots {
    position: absolute;
    background: radial-gradient(circle, rgba(121, 61, 61, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
}

.dots-1 {
    width: 85px;
    height: 60px;
    top: 30%;
    left: 25px;
    opacity: 0.3;
}

.dots-2 {
    width: 70px;
    height: 45px;
    top: 65%;
    left: 15px;
    opacity: 0.2;
    background-size: 7px 7px;
}

.dots-3 {
    width: 80px;
    height: 55px;
    top: 40%;
    right: 35px;
    opacity: 0.25;
}

.dots-4 {
    width: 60px;
    height: 35px;
    top: 70%;
    right: 20px;
    opacity: 0.15;
    background-size: 5px 5px;
}

/* ЛИНИИ */
.decoration-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(121, 61, 61, 0.05), transparent);
}

.line-1 {
    width: 1.2px;
    height: 150px;
    top: 20%;
    left: 50px;
    transform: rotate(25deg);
}

.line-2 {
    width: 0.8px;
    height: 100px;
    top: 50%;
    left: 65px;
    transform: rotate(-15deg);
    background: linear-gradient(90deg, transparent, rgba(121, 61, 61, 0.03), transparent);
}

.line-3 {
    width: 1.2px;
    height: 140px;
    top: 35%;
    right: 60px;
    transform: rotate(-20deg);
}

.line-4 {
    width: 0.8px;
    height: 90px;
    top: 65%;
    right: 75px;
    transform: rotate(10deg);
    background: linear-gradient(90deg, transparent, rgba(121, 61, 61, 0.02), transparent);
}

/* КВАДРАТЫ */
.decoration-square {
    position: absolute;
    border: 0.8px solid rgba(121, 61, 61, 0.1);
    transform: rotate(45deg);
}

.square-1 {
    width: 35px;
    height: 35px;
    top: 35%;
    left: 35px;
    border-color: rgba(121, 61, 61, 0.08);
}

.square-2 {
    width: 22px;
    height: 22px;
    top: 60%;
    right: 45px;
    border-color: rgba(121, 61, 61, 0.12);
}

/* ТРЕУГОЛЬНИКИ */
.decoration-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.triangle-1 {
    border-width: 0 18px 30px 18px;
    border-color: transparent transparent rgba(121, 61, 61, 0.05) transparent;
    top: 25%;
    left: 75px;
    transform: rotate(45deg);
}

.triangle-2 {
    border-width: 0 13px 22px 13px;
    border-color: transparent transparent rgba(121, 61, 61, 0.03) transparent;
    top: 55%;
    right: 60px;
    transform: rotate(-30deg);
}

/* ШАПКА НА ВЕСЬ ЭКРАН */
.full-width-header {
    width: 100vw;
    background: #603030;
    color: white;
    padding: 18px 0;
    margin-bottom: 22px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-family: 'Irish Grover', cursive;
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.8px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 18px;
    min-height: calc(100vh - 140px);
    position: relative;
    z-index: 1;
}

/* БАННЕР СВЕРХУ */
.ad-top {
    margin-bottom: 22px;
    width: 100%;
}

.ad-top .ad-placeholder {
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, #D9D9D9, #e0e0e0);
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* ОСНОВНОЙ КОНТЕНТ */
.main {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.generator-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(121, 61, 61, 0.1);
    position: relative;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(121, 61, 61, 0.1), rgba(96, 48, 48, 0.05));
    z-index: -1;
}

.title {
    font-family: 'Irish Grover', cursive;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 22px;
    color: #333;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #793D3D, transparent);
    border-radius: 1px;
}

/* ОКНО С ЧИСЛАМИ */
.numbers-display {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 22px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 1px 6px rgba(0,0,0,0.03);
    position: relative;
}

.numbers-display::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(121, 61, 61, 0.08);
    border-radius: 8px;
    pointer-events: none;
}

/* ОБЪЕМНАЯ КНОПКА ГЕНЕРАЦИИ */
.generate-btn {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #793D3D, #2E1717);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.2rem;
    font-family: 'Irish Grover', cursive;
    border-radius: 60px;
    cursor: pointer;
    margin-bottom: 22px;
    
    box-shadow: 
        0 7px 0 #1a0d0d,
        0 12px 20px rgba(121, 61, 61, 0.3),
        inset 0 -3px 10px rgba(0,0,0,0.2),
        inset 0 3px 10px rgba(255,255,255,0.12);
    
    transition: all 0.2s ease;
    overflow: hidden;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 9px 0 #1a0d0d,
        0 15px 25px rgba(121, 61, 61, 0.4),
        inset 0 -3px 10px rgba(0,0,0,0.2),
        inset 0 3px 10px rgba(255,255,255,0.12);
}

.generate-btn:active {
    transform: translateY(3px);
    box-shadow: 
        0 3px 0 #1a0d0d,
        0 6px 15px rgba(121, 61, 61, 0.2),
        inset 0 -1px 6px rgba(0,0,0,0.2),
        inset 0 1px 6px rgba(255,255,255,0.12);
}

/* Текст кнопки */
.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.2px;
}

/* Блеск на кнопке */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition: left 0.6s;
}

.generate-btn:hover .btn-shine {
    left: 100%;
}

/* НАСТРОЙКИ */
.settings {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.setting-group label {
    font-weight: bold;
    font-size: 1rem;
    color: #444;
}

.input-field {
    padding: 10px 13px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fafafa;
}

.input-field:focus {
    outline: none;
    border-color: #793D3D;
    background: white;
    box-shadow: 0 0 0 2px rgba(121, 61, 61, 0.08);
}

.range-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ЧЕКБОКС ИСКЛЮЧЕНИЯ */
.exclude-section {
    margin-top: 10px;
}

.exclude-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 0;
    color: #444;
}

.exclude-checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #793D3D;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
    background: #fafafa;
}

.exclude-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #793D3D;
    border-color: #793D3D;
}

.exclude-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* ПОЛЕ ДЛЯ ИСКЛЮЧЕННЫХ ЧИСЕЛ */
.exclude-input-container {
    margin-top: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    border-left: 3px solid #793D3D;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}

.exclude-input {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 0.95rem;
    margin-bottom: 8px;
    background: white;
    transition: all 0.3s;
}

.exclude-input:focus {
    outline: none;
    border-color: #793D3D;
    box-shadow: 0 0 0 2px rgba(121, 61, 61, 0.08);
}

.exclude-hint {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* РЕКЛАМА СНИЗУ */
.ads {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ad-placeholder {
    background: linear-gradient(135deg, #D9D9D9, #e0e0e0);
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ */
@media (max-width: 768px) {
    .decoration {
        display: none;
    }
    
    .container {
        padding: 8px 12px;
    }
    
    .full-width-header {
        padding: 12px 0;
        margin-bottom: 18px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .generator-card {
        padding: 22px;
    }
    
    .title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .numbers-display {
        font-size: 1.1rem;
        padding: 18px;
        min-height: 70px;
        margin-bottom: 18px;
    }
    
    .generate-btn {
        padding: 16px;
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .range-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .numbers-display {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .generate-btn {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .generator-card {
        padding: 18px;
    }
    
    .ad-top .ad-placeholder,
    .ads .ad-placeholder {
        height: 60px;
    }
}