/* styles.css – Noodle Finansal Oyunlar Kulübü – Онлайн-бухгалтерия стиль */
/* Первый блок: тёмно-серый фон + ЧЁРНЫЙ текст */

:root {
    --primary: #0d47a1;
    --primary-light: #1565c0;
    --primary-dark: #002f6c;
    --accent: #00bfa5;          /* бирюзовый акцент */
    --light: #f8fdff;
    --dark: #111b2d;
    --gray-dark: #1e1e1e;       /* тёмно-серый фон hero */
    --gray-darker: #2d2d2d;
    --gray-light: #eef2f6;
    --text-light: #ffffff;
    --text-dark: #263238;
    --hero-text: #000000;       /* ЧЁРНЫЙ текст в первом блоке */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

body {
    max-width: 1090px;
    margin: 0 auto;
    background: #ffffff;
    padding: 0 15px;
}

.container {
    width: 100%;
    max-width: 1090px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== БЛОК 1 – HERO (ТЁМНО-СЕРЫЙ ФОН + ЧЁРНЫЙ ТЕКСТ) ==================== */
.hero {
    min-height: 470px;
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-darker) 100%);
    color: var(--hero-text);                     /* чёрный текст */
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120,120,120,0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(120,120,120,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
    color: var(--hero-text);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero .btn {
    display: Böinline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 14px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 191, 165, 0.4);
    position: relative;
    z-index: 1;
}

.hero .btn:hover {
    background: #00a08a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 191, 165, 0.6);
}

/* ==================== ОБЩИЕ СЕКЦИИ ==================== */
section {
    padding: 60px 0;
}

section:nth-child(odd) {
    background: var(--light);
}

section:nth-child(even) {
    background: var(--dark);
    color: var(--text-light);
}

section:nth-child(even) h2,
section:nth-child(even) h3 {
    color: var(--accent);
}

/* ==================== ЗАГОЛОВКИ ==================== */
h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--accent);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==================== СТАТЬЯ ==================== */
.article {
    background: #ffffff !important;
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 40px 0;
    padding: 40px !important;
}

.article h2 { color: var(--primary); }
.article p strong { color: var(--primary); }

/* ==================== ЦЕНЫ ==================== */
.price-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.price-list li {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent);
    backdrop-filter: blur(5px);
}

.price-list li strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.price-list .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    float: right;
}

/* ==================== ФОРМА ==================== */
.subscribe {
    background: var(--primary) !important;
    text-align: center;
    border-radius: var(--border-radius);
}

.subscribe h2 { color: #fff; }

.subscribe form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe input[type="email"] {
    padding: 16px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    outline: none;
}

.subscribe button {
    padding: 16px 30px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe button:hover {
    background: #00a08a;
    transform: translateY(-2px);
}

/* ==================== ЭКСПЕРТЫ И ОТЗЫВЫ ==================== */
.experts .expert,
.review {
    background: rgba(255,255,255,0.12);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border-right: 4px solid var(--accent);
}

/* ==================== КАРТА ==================== */
.contact {
    background: var(--gray-light) !important;
    text-align: center;
}

.contact iframe {
    border-radius: var(--border-radius);
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    height: 450px;
}

/* ==================== ФУТЕР ==================== */
footer {
    background: var(--gray-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* ==================== МОБИЛЬНАЯ АДАПТАЦИЯ ==================== */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; min-height: 420px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .btn { padding: 12px 28px; font-size: 1.1rem; }
    h2 { font-size: 1.9rem; }
    section { padding: 50px 0; }
    .price-list { grid-template-columns: 1fr; }
    .subscribe form { padding: 0 20px; }
    .subscribe input[type="email"], .subscribe button { width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .container { padding: 0 15px; }
}
