/* ==========================================================================
   ОУПО «ТДПК» (Моршанск) — собственный файл стилей (только для этого лендинга)
   Палитра: тёмный графит + огненный красно-оранжевый акцент.
   Шрифты: Oswald (заголовки, капс) + Roboto (текст).
   ========================================================================== */

:root {
    --coal: #1b1d21;
    --coal-2: #24272c;
    --smoke: #33383f;
    --fire: #e63912;
    --ember: #ff8a1e;
    --light: #f4f5f7;
    --line: #d8dbe0;
    --muted: #6a7280;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px; line-height: 1.64; color: #23262b; background: #fff;
}

.box { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: 'Oswald', Arial, sans-serif; font-weight: 600; margin: 0 0 14px; color: var(--coal); }
h2 { font-size: clamp(24px, 3vw, 36px); text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.h2-center { text-align: center; }
.h2--light { color: #fff; }
.sec { padding: 78px 0; }

/* --------------------------- ГЛАВНОЕ МЕНЮ --------------------------- */
.hdr { background: var(--coal); position: sticky; top: 0; z-index: 60; border-bottom: 3px solid var(--fire); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.hdr__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hdr__flame {
    width: 26px; height: 34px; display: block; flex: 0 0 26px;
    background: linear-gradient(160deg, var(--ember), var(--fire));
    clip-path: polygon(50% 0%, 100% 45%, 78% 100%, 22% 100%, 0% 45%);
}
.hdr__titles { display: flex; flex-direction: column; line-height: 1.15; }
.hdr__titles b { font-family: 'Oswald', sans-serif; color: #fff; font-size: 21px; letter-spacing: .12em; }
.hdr__titles i { font-style: normal; color: #9aa1ab; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hdr__nav { display: flex; gap: 6px; }
.hdr__nav a {
    color: #cfd4da; text-decoration: none; font-size: 14px; text-transform: uppercase;
    letter-spacing: .06em; padding: 10px 14px; border-radius: 2px; transition: .2s;
}
.hdr__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hdr__burger { display: none; }

/* ------------------------------- HERO ------------------------------- */
.hero { background: var(--coal); color: #fff; overflow: hidden; }
.hero__row { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; padding-top: 68px; padding-bottom: 78px; }
.tag {
    display: inline-block; font-family: 'Oswald', sans-serif; font-size: 13px;
    letter-spacing: .18em; text-transform: uppercase; color: var(--ember);
    border-left: 3px solid var(--fire); padding-left: 12px; margin: 0 0 18px;
}
.hero h1 {
    color: #fff; font-size: clamp(30px, 4.4vw, 52px); text-transform: uppercase;
    line-height: 1.08; margin-bottom: 18px;
}
.hero h1 span { color: var(--ember); }
.hero__lead { color: #b6bcc4; font-size: 17px; max-width: 540px; margin: 0 0 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-block; padding: 14px 30px; font-family: 'Oswald', sans-serif;
    font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
    background: var(--fire); color: #fff; border: 2px solid var(--fire); transition: .2s;
}
.btn:hover { background: var(--ember); border-color: var(--ember); }
.btn--out { background: transparent; border-color: #545a63; color: #dfe3e8; }
.btn--out:hover { background: #2c3037; border-color: #6a717b; }

.hero__pic { position: relative; }
.hero__pic img {
    width: 100%; height: 430px; object-fit: cover; display: block;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 82% 100%, 0 100%);
}
.hero__stamp {
    position: absolute; left: 0; bottom: 26px;
    background: var(--fire); color: #fff; font-family: 'Oswald', sans-serif;
    font-size: 14px; letter-spacing: .06em; padding: 10px 18px; line-height: 1.3;
}

/* ------------------------------- ABOUT ------------------------------ */
.about { background: var(--light); }
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.about p { margin: 0 0 15px; }
.about__founding { font-size: 15px; color: #4b525b; border-top: 1px solid var(--line); padding-top: 16px; }
.alert {
    background: #fff; border-left: 5px solid var(--fire); padding: 22px 24px;
    box-shadow: 0 10px 26px rgba(27,29,33,.09); margin-bottom: 22px;
}
.alert b { font-family: 'Oswald', sans-serif; font-size: 19px; text-transform: uppercase; color: var(--coal); display: block; margin-bottom: 8px; }
.alert p { margin: 0; font-size: 15px; color: #4b525b; }
.about__photo { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ----------------------------- DIRECTIONS --------------------------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.tile {
    position: relative; border: 1px solid var(--line); border-top: 4px solid var(--coal);
    padding: 26px 24px 26px 84px; transition: .25s; background: #fff;
}
.tile:hover { border-top-color: var(--fire); transform: translateX(4px); }
.tile__num {
    position: absolute; left: 22px; top: 22px;
    font-family: 'Oswald', sans-serif; font-size: 30px; color: var(--ember); line-height: 1;
}
.tile h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.tile p { margin: 0; color: #4b525b; font-size: 15px; }

/* -------------------------------- STEPS ----------------------------- */
.steps { background: var(--coal-2); color: #ccd1d8; }
.steps__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 0 22px; border-left: 1px solid #3a3f47; }
.step:first-child { border-left: 0; }
.step__dot {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    background: var(--fire); color: #fff; font-family: 'Oswald', sans-serif; font-size: 18px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.step h3 { color: #fff; font-size: 18px; text-transform: uppercase; }
.step p { margin: 0; font-size: 15px; color: #a9b0b9; }

/* -------------------------------- FACTS ----------------------------- */
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.facts__cell {
    background: var(--coal); color: #fff; padding: 22px 24px;
    border-bottom: 4px solid var(--ember);
}
.facts__cell b { display: block; font-family: 'Oswald', sans-serif; font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.facts__cell span { font-size: 14px; color: #a9b0b9; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
th, td { padding: 13px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
th { width: 33%; background: #eef0f3; font-weight: 500; color: var(--coal); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* --------------------------------- FAQ ------------------------------ */
.faq { background: var(--light); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: start; }
.faq__side p { color: #4b525b; }
.faq__items details {
    background: #fff; border: 1px solid var(--line); margin-bottom: 12px;
    padding: 0 20px; transition: .2s;
}
.faq__items details[open] { border-left: 4px solid var(--fire); }
.faq__items summary {
    font-family: 'Oswald', sans-serif; font-size: 17px; text-transform: uppercase;
    color: var(--coal); padding: 16px 30px 16px 0; cursor: pointer; position: relative;
    list-style: none;
}
.faq__items summary::-webkit-details-marker { display: none; }
.faq__items summary::after {
    content: "+"; position: absolute; right: 0; top: 12px; color: var(--fire);
    font-size: 26px; font-family: 'Roboto', sans-serif; line-height: 1;
}
.faq__items details[open] summary::after { content: "–"; }
.faq__items p { margin: 0 0 18px; color: #4b525b; font-size: 15px; }

/* ------------------------------ CONTACTS ---------------------------- */
.contacts { background: linear-gradient(120deg, var(--smoke) 0%, var(--coal) 70%); color: #c6ccd3; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.contacts__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.contacts__card > div { padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.contacts__card > div:last-child { border-bottom: 0; }
.contacts__card span { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); margin-bottom: 4px; }
.contacts__card b { color: #fff; font-weight: 500; }

/* -------------------------------- FOOTER ---------------------------- */
.ftr { background: #131518; color: #868d96; padding: 22px 0; font-size: 14px; border-top: 3px solid var(--fire); }
.ftr__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ftr p { margin: 0; }

/* -------------------------------- АДАПТИВ --------------------------- */
@media (max-width: 1000px) {
    .hero__row { grid-template-columns: 1fr; padding-top: 48px; }
    .hero__pic img { height: 320px; }
    .about__grid, .faq__grid, .contacts__grid { grid-template-columns: 1fr; gap: 28px; }
    .steps__list { grid-template-columns: 1fr 1fr; gap: 26px 0; }
    .step:nth-child(3) { border-left: 0; }
    .facts__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .hdr { position: relative; }
    .hdr__row { position: relative; }
    .hdr__burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 40px; padding: 0 10px; cursor: pointer;
        border: 1px solid #4a505a;
    }
    .hdr__burger span { display: block; height: 2px; background: #fff; }
    .hdr__nav {
        position: absolute; left: 0; right: 0; top: 100%; background: var(--coal-2);
        flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s;
    }
    .hdr__switch:checked ~ .hdr__nav { max-height: 340px; }
    .hdr__nav a { padding: 15px 22px; border-bottom: 1px solid #33383f; }

    .tiles { grid-template-columns: 1fr; }
    .tile { padding-left: 76px; }
    .steps__list { grid-template-columns: 1fr; }
    .step { border-left: 0; border-top: 1px solid #3a3f47; padding: 22px 0 0; }
    .step:first-child { border-top: 0; }
    .facts__grid { grid-template-columns: 1fr; }
    .sec { padding: 52px 0; }
    th { width: 42%; }
    table { font-size: 14px; }
}
