:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
h1, h2, h3 { color: var(--dark); font-weight: 700; line-height: 1.25; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section__title { font-size: 34px; text-align: center; margin-bottom: 12px; }
.section__desc { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; font-size: 16px; }

/* ШАПКА */
.header { background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo__title { font-size: 20px; font-weight: 700; color: var(--dark); display: block; letter-spacing: 0.5px; }
.logo__desc { font-size: 12px; color: var(--muted); display: block; }
.header__nav { display: flex; gap: 28px; }
.header__nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: 0.2s; }
.header__nav a:hover { color: var(--primary); }

/* КНОПКИ */
.btn { display: inline-block; padding: 13px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: 0.2s; text-align: center; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: #eff6ff; color: var(--primary); }
.btn--secondary:hover { background: #dbeafe; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; padding: 10px 20px; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--full { width: 100%; }

/* ПЕРВЫЙ ЭКРАН */
.hero { padding: 72px 0; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.badge { display: inline-block; background: #eff6ff; color: var(--primary); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px; }
.hero__title { font-size: 42px; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero__subtitle { font-size: 17px; color: var(--muted); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05); }
.hero__card h3 { font-size: 20px; margin-bottom: 18px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 26px; font-size: 15px; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
/* СЕТКИ И КАРТОЧКИ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.card__title { font-size: 21px; margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--muted); margin-bottom: 20px; }

/* КАРТОЧКИ ПОРТФОЛИО С ЦВЕТНЫМИ ПРЕВЬЮ В СТИЛЕ ДЕМО-САЙТОВ */
.portfolio-card__preview { height: 130px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.preview--remont { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); color: #c2410c; border: 1px solid #fed7aa; }
.preview--auto { background: linear-gradient(135deg, #262626 0%, #171717 100%); color: #facc15; border-bottom: 3px solid #dc2626; }
.preview--beauty { background: linear-gradient(135deg, #f6f7f4 0%, #e0e3d9 100%); color: #243028; border: 1px solid #d5dbd2; }

/* ТАРИФЫ И ЭТАПЫ */
.price-card { position: relative; }
.price-card--featured { border: 2px solid var(--primary); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08); }
.price-card__tag { position: absolute; top: -13px; right: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 12px; }
.price-card__sum { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.price-list li { padding-left: 20px; position: relative; }
.price-list li::before { content: '•'; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }

.step { background: var(--white); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.step__num { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ФОРМА ЗАКАЗА, ПОДВАЛ И МОДАЛЬНОЕ ОКНО */
.cta-section { background: var(--dark); color: #fff; padding: 80px 0; }
.cta-section__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.cta-section__text h2 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.cta-section__text p { color: #cbd5e1; font-size: 17px; }
.form-box { background: var(--white); padding: 32px; border-radius: var(--radius); color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.input { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.footer { background: #090d16; color: #94a3b8; padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: #e2e8f0; text-decoration: none; }

.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.65); }
.modal__content { position: relative; background: var(--white); padding: 36px; border-radius: var(--radius); max-width: 420px; width: 100%; z-index: 1; }
.modal__close { position: absolute; top: 12px; right: 16px; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--muted); }
.modal__title { font-size: 24px; margin-bottom: 6px; }
.modal__desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.form-box--modal { padding: 0; }

@media (max-width: 850px) {
    .hero__inner, .grid-3, .grid-4, .cta-section__inner { grid-template-columns: 1fr; }
    .hero__title { font-size: 32px; }
    .header__nav { display: none; }
}
