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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    opacity: 0.9;
    font-size: 1.1rem;
}
/* SEO секция */
.seo-section {
    background: #f8f9fa;
    padding: 30px 40px;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.seo-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.seo-section h3 {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px;
}

.seo-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.seo-section ul {
    margin: 20px 0 20px 30px;
}

.seo-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.seo-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.seo-section strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Исправление центрирования заголовка */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1,
.header p {
    text-align: center;
    width: 100%;
}

.promo-badge {
    background: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-container {
    padding: 40px;
}

.section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #3498db;
}

.section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-unit {
    position: relative;
}

.input-unit::after {
    content: attr(data-unit);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
}

.input-unit .form-control {
    padding-right: 50px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.calculate-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.layer-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    position: relative;
}

.depth-indicator {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.depth-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.depth-warning.show {
    display: block;
}

.btn-add {
    background: #28a745;
    color: white;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.hidden {
    display: none;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
}

.result-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.result-label {
    font-weight: 500;
    color: #2c3e50;
}

.result-value {
    font-weight: bold;
    color: #3498db;
}

.promo-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 25px;
    text-align: center;
}

.promo-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.promo-features {
    display: block;
    margin: 20px 0;
}

.promo-feature {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.email-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.email-form h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.verification-section {
    display: none;
}

.success-message {
    padding: 15px;
    text-align: center;
    display: none;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0 !important;
    cursor: pointer;
}

.shift-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #0c5460;
}

#volume-calculations {
    background: #d4edda;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .form-container {
        padding: 20px;
    }
}
