/* --- ПЕРЕМЕННЫЕ И БАЗА --- */
:root {
    --bg-dark: #1b1a19;
    --bg-deep: #151413;
    --bg-card: rgba(255, 255, 255, 0.055);
    --bronze-main: #C5A065;
    --bronze-light: #E8DCC4;
    --bronze-gradient: linear-gradient(135deg, #C5A065 0%, #E8DCC4 100%);
    --text-main: #f4f2ee;
    --text-muted: #b9b4ab;
    --glass-border: 1px solid rgba(197, 160, 101, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 220, 196, 0.10) 0%, transparent 55%),
        var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
p + p { margin-top: 14px; }

/* --- HEADER & NAV --- */
header {
    position: fixed; top: 0; width: 100%;
    padding: 18px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(27, 26, 25, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo {
    font-size: 1.3rem; letter-spacing: 1px;
    background: var(--bronze-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
nav a { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
nav a:hover { color: var(--bronze-main); }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    padding: 140px 20px 80px;
    max-width: none;
    background: radial-gradient(circle at 50% 45%, rgba(197, 160, 101, 0.16) 0%, transparent 62%);
}

.hero .company-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    letter-spacing: 3px;
    background: var(--bronze-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.12; margin-bottom: 22px; max-width: 950px; }
.hero .lead { font-size: 1.15rem; color: var(--text-main); max-width: 720px; margin: 0 auto 14px; font-weight: 300; }
.hero .sub { font-size: 1.02rem; color: var(--text-muted); max-width: 720px; margin: 0 auto 26px; }
.hero .meta { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 18px; }
.hero .projects-line { font-size: 0.95rem; color: var(--bronze-main); letter-spacing: 1px; margin-bottom: 36px; }

/* --- BUTTONS --- */
.btn-bronze, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 32px;
    font-weight: 600; font-size: 0.85rem;
    border-radius: 50px;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
    font-family: 'Inter', sans-serif;
}
.btn-bronze { background: var(--bronze-gradient); color: #1b1a19; border: none; }
.btn-outline { background: transparent; color: var(--bronze-light); border: 1px solid var(--bronze-main); }
.btn-bronze:hover, .btn-outline:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 101, 0.25); }
.btn-outline:hover { background: rgba(197, 160, 101, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* Скрытый адрес */
details.address { margin-top: 14px; }
details.address summary { list-style: none; }
details.address summary::-webkit-details-marker { display: none; }
details.address summary::before { content: '⌂'; }
details.address[open] summary { background: rgba(197, 160, 101, 0.12); }
details.address .address-text { margin-top: 12px; color: var(--text-muted); font-size: 0.92rem; }

/* --- SECTIONS --- */
section { padding: 90px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.3rem; margin-bottom: 50px; text-align: center; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background: var(--bronze-main); margin: 18px auto 0; }

.card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 44px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.card h3 { font-size: 1.6rem; margin-bottom: 8px; color: var(--bronze-main); }
.card .tagline { color: var(--bronze-light); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; margin-bottom: 18px; }
.card p { color: var(--text-main); }
.muted, .card .muted { color: var(--text-muted); font-size: 0.92rem; }

/* --- STRUCTURE DIAGRAM --- */
.structure { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.structure .arrow { color: var(--bronze-main); font-size: 1.4rem; }
.structure .node { background: var(--bg-card); border: var(--glass-border); border-radius: 14px; padding: 18px 28px; max-width: 720px; }
.structure .node strong { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--bronze-light); display: block; }
.structure .node span { color: var(--text-muted); font-size: 0.9rem; }
.structure .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 900px; }

/* --- PROJECTS --- */
.projects { display: grid; gap: 28px; }
.flow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 24px; font-size: 0.88rem; letter-spacing: 1.5px; color: var(--bronze-light); }
.flow .arrow { color: var(--bronze-main); padding-left: 8px; }
.quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.25rem; color: var(--bronze-light); margin-bottom: 14px; }

/* --- ABOUT / FOUNDER --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* --- PUBLICATIONS --- */
.pub-list { counter-reset: pub; display: grid; gap: 18px; margin-top: 22px; }
.pub-list li { counter-increment: pub; padding-left: 36px; position: relative; }
.pub-list li::before { content: counter(pub) '.'; position: absolute; left: 0; color: var(--bronze-main); font-weight: 600; }
.pub-list a { color: var(--bronze-main); }
.pub-list a:hover { color: var(--bronze-light); }

/* --- LEGAL LINKS GRID --- */
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.legal-grid a { display: block; background: var(--bg-card); border: var(--glass-border); border-radius: 14px; padding: 24px; transition: 0.3s; }
.legal-grid a:hover { border-color: var(--bronze-main); transform: translateY(-3px); }
.legal-grid strong { font-family: 'Playfair Display', serif; color: var(--bronze-light); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.legal-grid span { color: var(--text-muted); font-size: 0.88rem; }

/* --- DOCUMENT PAGES --- */
.doc { max-width: 860px; padding-top: 130px; }
.doc h1 { font-size: 2.4rem; margin-bottom: 6px; }
.doc .updated { color: var(--text-muted); margin-bottom: 30px; font-size: 0.9rem; }
.doc h2 { font-size: 1.35rem; color: var(--bronze-light); margin: 34px 0 12px; }
.doc h3 { font-size: 1.1rem; color: var(--bronze-main); margin: 20px 0 8px; }
.doc ul { list-style: disc; padding-left: 22px; margin: 10px 0; color: var(--text-main); }
.doc ul li { margin-bottom: 4px; }
.doc p { color: var(--text-main); }
.back { display: inline-block; margin-bottom: 26px; color: var(--bronze-main); font-size: 0.9rem; }

/* --- FOOTER --- */
footer {
    background: var(--bg-deep);
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 50px;
}
footer .logo { font-size: 1.4rem; margin-bottom: 10px; display: inline-block; }
footer p { color: var(--text-muted); font-size: 0.9rem; margin: 0 auto 10px; max-width: 760px; }
footer a { color: var(--bronze-main); }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 20px 0; font-size: 0.88rem; }
footer details.address { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
footer .small { font-size: 0.8rem; }

/* --- MOBILE --- */
@media (max-width: 900px) {
    nav ul { display: none; }
    .two-col, .structure .row { grid-template-columns: 1fr; }
    .card { padding: 28px; }
}
