/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f0f0f;
    --bg-light: #1a1a1a;
    --bg-card: #222;
    --accent: #ff4e1a;
    --accent-hover: #ff6a3d;
    --text: #fff;
    --text-muted: #aaa;
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 32px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }

.section { padding: 80px 0; }
.section-dark { background: var(--bg-light); }

/* === HEADER === */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,15,15,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 20px; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.05em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { font-size: 0.9rem; font-weight: 600; opacity: 0.7; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

/* === BUTTONS === */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 8px;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
    text-align: center; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; width: 100%; }

/* === HERO === */
.hero { padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag {
    display: inline-block; padding: 6px 16px; background: rgba(255,78,26,0.15);
    color: var(--accent); border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 16px;
}
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin: 16px 0 32px; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }
.hero-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.hero-photo img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3/4; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.about-photo img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.about-text p { margin-bottom: 16px; color: var(--text-muted); }
.achievements-list { margin-top: 20px; }
.achievements-list ul { margin-left: 20px; margin-top: 8px; }
.achievements-list li { margin-bottom: 4px; color: var(--text-muted); }

/* === SPEC CARDS === */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.spec-card {
    background: var(--bg-card); padding: 32px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06); transition: transform .2s, border-color .2s;
}
.spec-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.spec-icon { font-size: 2.5rem; margin-bottom: 16px; }
.spec-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === RESULTS === */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.result-card {
    background: var(--bg-card); padding: 28px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}
.result-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.result-body { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.result-from, .result-to { font-size: 1.5rem; font-weight: 800; }
.result-to { color: var(--accent); }
.result-arrow { font-size: 1.5rem; color: var(--text-muted); }
.result-desc { color: var(--text-muted); font-size: 0.9rem; }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 1; }

/* === CALCULATOR === */
.calc-hint { color: var(--text-muted); margin-bottom: 32px; }
.calculator { max-width: 560px; }
.calc-row { margin-bottom: 28px; }
.calc-label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 0.95rem; }
.calc-slider { display: flex; align-items: center; gap: 12px; }
.calc-slider input[type=range] { flex: 1; accent-color: var(--accent); height: 6px; }
.calc-slider output { font-weight: 800; font-size: 1.3rem; color: var(--accent); min-width: 30px; text-align: center; }
.calculator select {
    width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card); color: var(--text); font-size: 1rem;
}
.calc-result {
    background: var(--bg-card); padding: 24px; border-radius: var(--radius);
    text-align: center; margin: 32px 0 20px;
}
.calc-total { display: block; font-size: 2rem; font-weight: 900; color: var(--accent); }
.calc-per { display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* === FORM === */
.contact-form { max-width: 560px; margin: 0 auto 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card); color: var(--text); font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 0.85rem; color: var(--text-muted); }
.alert.success { background: rgba(76,175,80,0.15); color: #81c784; padding: 16px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; }

.contacts-info { text-align: center; color: var(--text-muted); }
.contact-item { margin-bottom: 8px; font-size: 0.95rem; }
.contact-item a { color: var(--accent); }

/* === FOOTER === */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-muted); transition: color .2s; }
.footer-social a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .nav { display: none; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
