/*
 * Стили главной страницы группы (index.html) и страницы контактов (kontakty.html).
 * Эти страницы не подключают styles.css — здесь всё, что им нужно, кроме шапки
 * (она в group-header.css). Перенесено из согласованного макета сайта группы.
 */
:root {
    --primary: #1E3A5F; --primary-dark: #152947; --dark: #0F172A; --dark-2: #1E293B;
    --light: #F1F5F9; --light-2: #E2E8F0; --accent: #D97706; --accent-2: #B45309;
    --muted: #64748B;
    --head: 'Bebas Neue', sans-serif; --body: 'Montserrat', sans-serif; --max: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--body); color: var(--dark); background: #fff; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; padding-top: var(--header-height); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
/* у Bebas Neue нет кириллицы — заголовки Montserrat, Bebas только для цифр */
.h { font-family: var(--body); font-weight: 800; letter-spacing: -.015em; line-height: 1.04; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 8px; padding: 13px 20px; font-weight: 700; font-size: 14px; transition: .2s; }
.btn-acc { background: var(--accent); color: #fff; } .btn-acc:hover { background: var(--accent-2); }
.btn-pri { background: var(--primary); color: #fff; } .btn-pri:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* первый экран */
.hero { position: relative; color: #fff; background: linear-gradient(100deg, rgba(15,23,42,.94) 0%, rgba(21,41,71,.86) 48%, rgba(21,41,71,.55) 100%), url(images/hero_bgz_opt.jpg) center/cover; }
.hero .wrap { padding: 54px 0 40px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FCD34D; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(32px, 4.8vw, 60px); margin: 14px 0; max-width: 900px; }
.hero h1 em { font-style: normal; color: #FBBF24; }
.hero .lead { font-size: 17px; color: #CBD5E1; max-width: 680px; }
.hero .lead b { color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.door { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--dark); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.28); transition: .25s; }
.door:hover { transform: translateY(-4px); }
.door .ph { height: 150px; background-size: cover; background-position: center; }
.door .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.door .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.door h3 { font-size: 22px; margin: 6px 0 8px; color: var(--primary); }
.door p { font-size: 13.5px; color: var(--muted); flex: 1; }
.door .pr { margin-top: 12px; font-weight: 800; font-size: 15px; }
.door .pr small { font-weight: 500; color: var(--muted); font-size: 12px; }
.door .go { margin-top: 14px; display: flex; gap: 8px; }
.door .go .btn { padding: 11px 14px; font-size: 13px; flex: 1; }
.door .go .btn-line { background: var(--light); color: var(--primary); }
.door .go .btn-line:hover { background: var(--light-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.stats b { display: block; font-family: var(--head); font-size: 40px; color: #fff; line-height: 1; }
.stats span { font-size: 12.5px; color: #94A3B8; }

/* быстрая заявка */
.quick { background: var(--accent); color: #fff; }
.quick .wrap { display: flex; align-items: center; gap: 18px; padding: 20px 0; flex-wrap: wrap; }
.quick .qt { font-family: var(--body); font-weight: 800; font-size: 24px; line-height: 1.1; flex: 1; min-width: 220px; }
.quick .qt small { display: block; font-size: 13px; font-weight: 500; opacity: .9; margin-top: 4px; }
.quick form { display: flex; gap: 10px; flex-wrap: wrap; }
.quick select, .quick input { height: 48px; border: none; border-radius: 8px; padding: 0 14px; font: 500 14px var(--body); min-width: 190px; background: #fff; color: var(--dark); }
.quick .btn { height: 48px; background: var(--dark); color: #fff; }

/* секции */
section.sec { padding: 70px 0; }
section.sec.alt { background: var(--light); }
.sec-h { margin-bottom: 30px; max-width: 760px; }
.sec-h .kicker { color: var(--accent); }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--primary); margin-top: 10px; }
.sec-h p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* три направления подробно */
.dir { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; padding: 26px 0; border-top: 1px solid var(--light-2); }
.dir:first-of-type { border-top: none; }
.dir.rev .dir-img { order: 2; }
.dir-img { height: 320px; border-radius: 14px; background-size: cover; background-position: center; position: relative; }
.dir-img .badge { position: absolute; left: 16px; bottom: 16px; background: rgba(15,23,42,.85); color: #fff; border-radius: 8px; padding: 9px 13px; font-size: 13px; font-weight: 600; }
.dir-img .badge b { color: #FBBF24; }
.dir h3 { font-size: 30px; color: var(--primary); }
.dir .sub { color: var(--muted); margin: 6px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { background: var(--light); border: 1px solid var(--light-2); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--dark-2); }
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.prices div { background: #fff; border: 1px solid var(--light-2); border-radius: 10px; padding: 11px 13px; font-size: 13px; color: var(--muted); }
.prices b { display: block; color: var(--dark); font-size: 16px; }
.dir .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* почему мы */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why > div { background: #fff; border-radius: 12px; padding: 22px; border: 1px solid var(--light-2); }
.why .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary); color: #FBBF24; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 24px; margin-bottom: 12px; }
.why h4 { font-size: 16px; margin-bottom: 6px; }
.why p { font-size: 13.5px; color: var(--muted); }

/* миссия */
.mission { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.mission .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 70px 0; align-items: center; }
.mission h2 { font-size: clamp(28px, 3.8vw, 46px); }
.mission h2 em { font-style: normal; color: #FBBF24; }
.mission p { color: #CBD5E1; margin-top: 14px; font-size: 16px; }
.mission ul { list-style: none; display: grid; gap: 12px; }
.mission li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; }
.mission li b { color: #FBBF24; font-weight: 800; margin-right: 8px; }

/* проекты */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--light-2); }
.case .ph { height: 190px; background-size: cover; background-position: center; }
.case .bd { padding: 16px 18px; }
.case .tg { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case h4 { font-size: 17px; margin: 4px 0 6px; }
.case p { font-size: 13.5px; color: var(--muted); }
.case .nums { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.case .nums b { color: var(--dark); font-size: 15px; }

/* клиенты и отзывы */
.trust { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.letters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.letters div { background: #fff; border: 1px solid var(--light-2); border-radius: 10px; padding: 14px; font-size: 13px; color: var(--muted); }
.letters b { display: block; color: var(--dark); font-size: 14px; margin-bottom: 4px; }
.reviews { display: grid; gap: 12px; }
.review { background: #fff; border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--dark-2); }
.review .who { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.review .who b { color: var(--dark); }

/* как работаем */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--light-2); border-radius: 12px; padding: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--head); font-size: 34px; color: var(--accent); display: block; line-height: 1; }
.step h4 { font-size: 15px; margin: 6px 0 4px; }
.step p { font-size: 13px; color: var(--muted); }

/* финальная заявка */
.final { background: var(--dark); color: #fff; }
.final .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 70px 0; }
.final h2 { font-size: clamp(26px, 3.4vw, 40px); }
.final p { color: #94A3B8; margin-top: 10px; }
.lines { display: grid; gap: 10px; margin-top: 22px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--dark-2); border-radius: 10px; padding: 14px 16px; }
.line span { font-size: 13px; color: #94A3B8; }
.line b { display: block; color: #fff; font-size: 14.5px; }
.line a { font-weight: 800; color: #FBBF24; white-space: nowrap; }
.final .gh-form { width: auto; }
.final .gh-form p.gh-fine { color: var(--muted); }

/* контакты */
.pg-head { background: linear-gradient(100deg, var(--dark), var(--primary)); color: #fff; }
.pg-head .wrap { padding: 46px 0 36px; }
.pg-head h1 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 10px; }
.pg-head p { color: #CBD5E1; margin-top: 8px; max-width: 640px; }
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { border: 1px solid var(--light-2); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ccard .top { padding: 18px 20px; background: var(--light); border-bottom: 1px solid var(--light-2); }
.ccard .top .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ccard .top h3 { font-size: 20px; color: var(--primary); margin-top: 4px; }
.ccard .bd { padding: 18px 20px; display: grid; gap: 12px; flex: 1; align-content: start; }
.ccard .row { font-size: 13px; color: var(--muted); }
.ccard .row b { display: block; color: var(--dark); font-size: 16px; }
.ccard a.row b { color: var(--primary); }
.ccard .ft { padding: 0 20px 20px; display: flex; gap: 8px; }
.ccard .ft .btn { flex: 1; padding: 11px 10px; font-size: 13px; }
.office { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-top: 22px; }
.office .info { border: 1px solid var(--light-2); border-radius: 14px; padding: 22px; display: grid; gap: 12px; font-size: 14px; align-content: start; }
.office .info b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.office .info a { color: var(--primary); }
.map { border-radius: 14px; overflow: hidden; min-height: 320px; border: 1px solid var(--light-2); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.req { font-size: 13px; color: var(--muted); margin-top: 4px; border-top: 1px solid var(--light-2); padding-top: 14px; }

/* подвал */
footer.ft { background: var(--dark); color: #94A3B8; font-size: 13px; border-top: 1px solid var(--dark-2); }
footer.ft .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; padding: 40px 0; }
footer.ft h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
footer.ft a { display: block; padding: 3px 0; }
footer.ft a:hover { color: #fff; }
footer.ft .copy { grid-column: 1 / -1; border-top: 1px solid var(--dark-2); padding-top: 16px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.ft .copy a { display: inline; padding: 0; text-decoration: underline; }

/* нижняя панель на телефоне */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--light-2); padding: 10px 12px; gap: 10px; box-shadow: 0 -6px 18px rgba(15,23,42,.1); }
.mbar .btn { flex: 1; height: 48px; }

/* уведомление об отправке (разметку и классы ждёт script.js: .toast__text, .active, .toast--error) */
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: 10px; font-size: 14px; z-index: 2100; max-width: 92%; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: .3s; }
.toast.active { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast__icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #16A34A; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

@media (max-width: 860px) {
    .doors, .why, .cases, .cgrid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .dir, .mission .wrap, .final .wrap, .trust, .office { grid-template-columns: 1fr; }
    .dir.rev .dir-img { order: 0; }
    .dir-img { height: 220px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .letters { grid-template-columns: 1fr; }
    footer.ft .wrap { grid-template-columns: 1fr 1fr; }
    .mbar { display: flex; }
    body { padding-bottom: 70px; }
    .has-mbar .gh-cta .gh-btn { display: none; }
    .quick form { width: 100%; }
    .quick select, .quick input, .quick .btn { flex: 1 1 100%; min-width: 0; width: 100%; }
    section.sec, .mission .wrap, .final .wrap { padding-top: 48px; padding-bottom: 48px; }
}
