/* ==========================================================================
   ООО ЧОП «Легион» — собственный файл стилей (только для этого лендинга)
   Палитра: чёрный / тёмно-стальной + золотой акцент, щитовые мотивы.
   Шрифты: Cormorant Garamond (заголовки, антиква) + Lato (текст).
   ========================================================================== */

:root {
    --black: #0c0d10;
    --steel: #16181d;
    --steel-2: #1f232a;
    --gold: #c8a55d;
    --gold-2: #e0c489;
    --paper: #f6f5f2;
    --line: #dcd9d1;
    --muted: #6f7278;
}

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

body {
    margin: 0; background: var(--paper); color: #1d1f23;
    font-family: 'Lato', Arial, sans-serif; font-size: 16px; line-height: 1.66;
}

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

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; margin: 0 0 14px; }

.title { display: flex; align-items: center; gap: 20px; font-size: clamp(26px, 3vw, 40px); margin-bottom: 34px; }
.title span { white-space: nowrap; }
.title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.title--light { color: #fff; }

/* ---------------------------- ГЛАВНОЕ МЕНЮ -------------------------- */
.masthead { background: var(--black); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(200,165,93,.35); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.masthead__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.masthead__shield {
    width: 32px; height: 38px; flex: 0 0 32px;
    background: linear-gradient(160deg, var(--gold-2), var(--gold));
    clip-path: polygon(50% 0%, 100% 16%, 100% 60%, 50% 100%, 0% 60%, 0% 16%);
}
.masthead__name {
    font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 27px;
    letter-spacing: .28em; color: #fff; display: flex; flex-direction: column; line-height: 1;
}
.masthead__name em {
    font-family: 'Lato', sans-serif; font-style: normal; font-size: 9px; font-weight: 400;
    letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 6px;
}
.masthead__nav { display: flex; gap: 28px; }
.masthead__nav a {
    color: #b9bcc1; text-decoration: none; font-size: 14px; letter-spacing: .12em;
    text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: .25s;
}
.masthead__nav a:hover { color: var(--gold-2); border-bottom-color: var(--gold); }
.masthead__burger { display: none; }

/* ------------------------------- HERO ------------------------------- */
.hero {
    background:
        radial-gradient(1100px 480px at 78% 12%, rgba(200,165,93,.14), transparent 62%),
        var(--black);
    color: #d8dade; position: relative;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 76px; padding-bottom: 76px; }
.hero__frame { border: 1px solid rgba(200,165,93,.32); padding: 40px 38px; position: relative; }
.hero__frame::before, .hero__frame::after {
    content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold);
}
.hero__frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.hero__frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.hero__since { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.hero h1 {
    color: #fff; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12;
    letter-spacing: .01em; margin-bottom: 20px;
}
.hero__text { color: #a9adb4; max-width: 520px; margin: 0 0 26px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid rgba(200,165,93,.25); padding-top: 22px; }
.hero__stats b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; color: var(--gold-2); line-height: 1; }
.hero__stats span { font-size: 12.5px; color: #8f939a; letter-spacing: .04em; }
.hero__pic img { width: 100%; height: 520px; object-fit: cover; display: block; filter: grayscale(.35) contrast(1.05); border: 1px solid rgba(200,165,93,.3); }

/* ------------------------------- ABOUT ------------------------------ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.about__lead p { margin: 0 0 16px; color: #3a3d43; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 20px 18px; }
.mini__i { display: block; width: 24px; height: 28px; margin-bottom: 12px; background: var(--steel-2); clip-path: polygon(50% 0, 100% 16%, 100% 60%, 50% 100%, 0 60%, 0 16%); }
.mini b { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--black); display: block; margin-bottom: 6px; }
.mini p { margin: 0; font-size: 14px; color: var(--muted); }

/* ------------------------------ SERVICES ---------------------------- */
.services { background: var(--steel); color: #c9ccd1; }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(200,165,93,.28); }
.svc__card { padding: 30px 26px; border-right: 1px solid rgba(200,165,93,.22); transition: .3s; }
.svc__card:last-child { border-right: 0; }
.svc__card:hover { background: rgba(200,165,93,.08); }
.svc__roman {
    font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--gold);
    display: block; margin-bottom: 12px; letter-spacing: .1em;
}
.svc__card h3 { color: #fff; font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.svc__card p { margin: 0; font-size: 14.5px; color: #a3a7ad; }

/* -------------------------------- FACTS ----------------------------- */
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.facts__item { border-bottom: 2px solid var(--gold); padding-bottom: 14px; }
.facts__item b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--black); line-height: 1.1; margin-bottom: 6px; }
.facts__item span { font-size: 14px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { padding: 14px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
th { width: 30%; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; color: var(--muted); background: #faf9f7; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ------------------------------- LICENSE ---------------------------- */
.license { background: var(--steel-2); color: #c9ccd1; }
.license__grid { display: grid; grid-template-columns: 220px 1fr; gap: 46px; align-items: center; }
.license__medal { text-align: center; }
.license__medal-shield {
    display: block; width: 132px; height: 156px; margin: 0 auto 16px;
    background: linear-gradient(165deg, rgba(200,165,93,.9), rgba(200,165,93,.35));
    clip-path: polygon(50% 0%, 100% 15%, 100% 58%, 50% 100%, 0% 58%, 0% 15%);
    position: relative;
}
.license__medal-shield::after {
    content: ""; position: absolute; inset: 6px;
    background: var(--steel-2);
    clip-path: polygon(50% 0%, 100% 15%, 100% 58%, 50% 100%, 0% 58%, 0% 15%);
}
.license__medal p { margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.license__dl { margin: 0; }
.license__dl dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }
.license__dl dt:first-child { margin-top: 0; }
.license__dl dd { margin: 4px 0 0; color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.3; }

/* ------------------------------ CONTACTS ---------------------------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contacts p { color: #4a4d53; margin: 0; }
.contacts__card { background: var(--black); border: 1px solid rgba(200,165,93,.35); }
.crow { padding: 18px 24px; border-bottom: 1px solid rgba(200,165,93,.18); }
.crow:last-child { border-bottom: 0; }
.crow span { display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.crow b { color: #fff; font-weight: 400; font-family: 'Cormorant Garamond', serif; font-size: 22px; }

/* -------------------------------- FOOT ------------------------------ */
.foot { background: var(--black); color: #83868c; padding: 22px 0; font-size: 14px; border-top: 1px solid rgba(200,165,93,.35); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot p { margin: 0; }

/* ------------------------------- АДАПТИВ ---------------------------- */
@media (max-width: 1040px) {
    .hero__inner { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 56px; }
    .hero__pic img { height: 340px; }
    .about__grid, .contacts__grid { grid-template-columns: 1fr; gap: 30px; }
    .svc { grid-template-columns: 1fr 1fr; }
    .svc__card:nth-child(2) { border-right: 0; }
    .svc__card:nth-child(1), .svc__card:nth-child(2) { border-bottom: 1px solid rgba(200,165,93,.22); }
    .facts__grid { grid-template-columns: 1fr 1fr; }
    .license__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
    .masthead { position: relative; }
    .masthead__row { position: relative; }
    .masthead__burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 40px; padding: 0 10px; cursor: pointer; border: 1px solid rgba(200,165,93,.5);
    }
    .masthead__burger span { display: block; height: 2px; background: var(--gold); }
    .masthead__nav {
        position: absolute; left: 0; right: 0; top: 100%; background: var(--steel);
        flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height .3s;
        border-bottom: 1px solid rgba(200,165,93,.35);
    }
    .masthead__chk:checked ~ .masthead__nav { max-height: 360px; }
    .masthead__nav a { padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,.07); }

    .hero__frame { padding: 26px 22px; }
    .svc { grid-template-columns: 1fr; }
    .svc__card { border-right: 0; border-bottom: 1px solid rgba(200,165,93,.22); }
    .svc__card:last-child { border-bottom: 0; }
    .facts__grid { grid-template-columns: 1fr; }
    .about__cards { grid-template-columns: 1fr; }
    .sec { padding: 56px 0; }
    th { width: 44%; font-size: 11.5px; }
    table { font-size: 14px; }
    .license__dl dd { font-size: 19px; }
}
