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

:root {
    --accent: #C0562A;
    --accent-light: #F4E6DF;
    --dark: #1A1A1A;
    --gray: #666;
    --light-gray: #F7F7F7;
    --white: #FFFFFF;
    --gold: #E8A33D;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Manrope', sans-serif; font-weight: 700; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
.header { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.logo { height: 48px; }
.nav { display: flex; gap: 32px; }
.nav-link { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: color 0.3s; }
.nav-link:hover { color: var(--accent); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--dark); }

/* Hero */
.hero { padding: 100px 0 80px; background: linear-gradient(135deg, #FFFFFF 0%, #FDF6F1 100%); text-align: center; }
.hero-subtitle { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hero-title { font-size: 56px; font-weight: 800; margin-bottom: 24px; background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text { font-size: 18px; color: var(--gray); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Кнопки */
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.3s; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--gold)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(192,86,42,0.3); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }

/* Секции */
.section { padding: 80px 0; }
.section-gray { background: var(--light-gray); }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 40px; position: relative; padding-bottom: 16px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: linear-gradient(135deg, var(--accent), var(--gold)); border-radius: 2px; }
.section-lead { font-size: 18px; color: var(--gray); margin-bottom: 32px; }

/* Таймлайн */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent), var(--gold)); }
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-year { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.timeline-content { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.timeline-img { width: 100%; border-radius: 8px; margin-top: 16px; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: white; padding: 28px; border-radius: 12px; border: 1px solid #eee; transition: all 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 15px; }

/* Счётчик */
.counter-label { font-size: 16px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.counter-number { font-size: 96px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin: 16px 0; }
.counter-text { font-size: 20px; color: var(--gray); }

/* Формы */
.form { background: white; padding: 32px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="number"], .form-group input[type="password"] { width: 100%; padding: 12px 16px; border: 2px solid #eee; border-radius: 8px; font-size: 16px; font-family: inherit; transition: border-color 0.3s; }
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-group.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.form-group.checkbox input { margin-top: 4px; }
.form-group.checkbox label { font-weight: 400; font-size: 14px; color: var(--gray); }
.form-group.checkbox a { color: var(--accent); }

/* Тест */
.test-form { background: white; padding: 32px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.question { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #eee; }
.question:last-of-type { border-bottom: none; }
.question-text { font-size: 17px; margin-bottom: 16px; }
.answers label { display: block; padding: 12px 16px; margin-bottom: 8px; border: 2px solid #eee; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.answers label:hover { border-color: var(--accent); background: var(--accent-light); }
.answers input { margin-right: 12px; }

/* Сертификат */
.certificate { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 20px 60px rgba(192,86,42,0.15); border: 4px solid var(--accent); margin-top: 32px; }
.certificate-inner { border: 2px solid var(--gold); padding: 40px; border-radius: 8px; }
.cert-logo { height: 80px; margin-bottom: 24px; }
.cert-title { font-size: 48px; letter-spacing: 4px; color: var(--accent); margin-bottom: 8px; }
.cert-subtitle { font-size: 16px; color: var(--gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 32px; }
.cert-text { font-size: 16px; color: var(--gray); margin-bottom: 16px; }
.cert-name { font-size: 36px; font-weight: 700; color: var(--dark); margin: 24px 0; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 8px; }
.cert-footer { display: flex; justify-content: space-between; margin-top: 40px; font-size: 14px; color: var(--gray); }
.cert-org { margin-top: 32px; font-size: 14px; color: var(--gray); }

/* Админка */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: white; padding: 24px; border-radius: 12px; text-align: center; border: 1px solid #eee; }
.stat-number { font-size: 42px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 8px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.admin-table th { background: var(--accent); color: white; padding: 14px; text-align: left; font-size: 14px; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #eee; font-size: 14px; }
.admin-table tr:hover { background: var(--light-gray); }

/* Уведомления */
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; }
.alert-error { background: #FEE; color: #C33; border-left: 4px solid #C33; }

/* Футер */
.footer { background: var(--dark); color: #999; padding: 32px 0; text-align: center; font-size: 14px; }

/* Мобильная версия */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .counter-number { font-size: 64px; }
    .nav { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: white; flex-direction: column; padding: 80px 32px; box-shadow: -10px 0 40px rgba(0,0,0,0.1); transition: right 0.3s; gap: 24px; }
    .nav.open { right: 0; }
    .burger { display: flex; z-index: 110; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px; }
}