/* Editorial redesign */
:root {
    --paper: #f5f4ef;
    --paper-2: #e9e7df;
    --paper-3: #efeee8;
    --ink: #171815;
    --text: #3f403b;
    --muted: #74746c;
    --line: #c9c7bd;
    --line-dark: #a9a79d;
    --green: #234b39;
    --bronze: #9b642f;
    --blue: #304f7d;
    --rust: #943f2e;
    --dark: #151713;
    --dark-line: #3b3e38;
    --dark-muted: #a9aaA1;
    --bg-dark: var(--paper);
    --bg-card: var(--paper-2);
    --accent: var(--green);
    --text: #3f403b;
    --text-muted: #62635c;
    --text-gray: #83837a;
    --border: var(--line);
    --border-hover: var(--ink);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', Arial, Helvetica, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--text);
    line-height: 1.55;
    font-size: 16px;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
a:hover { color: var(--green); opacity: 1; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.container { max-width: 1690px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 112px); }
.section { padding: clamp(104px, 11vw, 176px) 0 !important; position: relative; background: var(--paper); }
.section[style*="background: var(--bg-card)"] { background: var(--paper-2) !important; }
section { scroll-margin-top: 64px; }

.section-label,
.hero-label,
.profile-role,
.footer-col h4,
.card-icon,
.video-duration,
.timeline-badge,
.award-tag,
.form-group label,
.hero-note,
.form-note {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2, h3, .quote-text, .thesis-card p, .profile-info h2 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.045em;
    line-height: .96;
}
h1 { font-size: clamp(58px, 8.5vw, 140px); }
h2 { font-size: clamp(44px, 5.8vw, 88px); }
h3 { font-size: clamp(25px, 2.3vw, 36px); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 22px;
    border: 1px solid var(--ink);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); border-color: var(--green); color: var(--paper); box-shadow: none; transform: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: none; }
.btn-telegram { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn-telegram:hover { background: #263f64; border-color: #263f64; color: var(--paper); transform: none; }

/* Navigation */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 64px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    background: rgba(245,244,239,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav .container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nav-logo span { color: var(--paper); }
.nav-logo:hover { color: var(--paper); background: var(--green); }
.nav-links { display: none; align-items: center; gap: clamp(22px, 3vw, 40px); }
.nav-links a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
}
.nav-links a:hover { color: var(--green); }
.nav-links .nav-cta { padding: 9px 14px !important; min-height: 34px; font-size: 10px !important; color: var(--paper) !important; }
.nav-mobile-btn { display: flex; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }
.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 20px 24px 28px;
    flex-direction: column;
    gap: 14px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
@media (min-width: 768px) { .nav-links { display: flex; } .nav-cta { display: inline-flex; } .nav-mobile-btn { display: none; } }

/* Hero */
.hero {
    min-height: auto;
    display: block;
    padding: clamp(100px, 9vw, 130px) 0 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    overflow: visible;
}
.hero-bg, .hero-overlay { display: none; }
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
    column-gap: clamp(32px, 5vw, 80px);
}
.hero-label { grid-column: 1 / -1; color: var(--muted); margin-bottom: clamp(28px, 4vw, 56px); }
.hero h1 { grid-column: 1; grid-row: 2; max-width: 980px; margin: 0; }
.hero-subtitle {
    grid-column: 1;
    grid-row: 3;
    max-width: 850px;
    margin: 28px 0 0;
    color: var(--text);
    font-size: clamp(19px, 2vw, 29px);
    line-height: 1.32;
}
.hero-photo {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    align-self: start;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 25%;
    border: 1px solid var(--ink) !important;
    display: block;
    filter: contrast(1.02);
}
.hero-photo::after { content: "Команда Lead-Magnet / KINZA Dubai"; display: block; padding-top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-quote {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-style: normal;
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.35;
    letter-spacing: -.025em;
}
.hero-quote::before { display: none; }
.hero-stats {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin: clamp(50px, 6vw, 90px) 0 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}
.stat-item { padding: clamp(24px, 3vw, 42px) clamp(16px, 2vw, 30px); border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: 0; }
.stat-number { font-family: var(--font-display); font-size: clamp(31px, 3vw, 48px); font-weight: 400; line-height: 1; color: var(--ink); letter-spacing: -.035em; }
.stat-label { margin-top: 12px; max-width: 210px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hero-cta { grid-column: 1 / -1; grid-row: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-top: clamp(36px, 4vw, 56px); }
.hero-note { grid-column: 1 / -1; grid-row: 6; max-width: 560px; margin: 16px 0 clamp(44px, 5vw, 68px); color: var(--muted); font-style: normal; }

/* Headers */
.section-header { max-width: none; margin-bottom: clamp(52px, 6vw, 86px); }
.section-header.center { text-align: left; margin-left: 0; margin-right: 0; }
.section-header .section-label, .section-label { display: block; color: var(--muted); margin-bottom: clamp(26px, 3vw, 42px); }
.section-header h2 { max-width: 1120px; margin: 0; }
.section-header p { max-width: 720px; margin-top: 26px; color: var(--text); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card, .format-card, .thesis-card, .filter-col {
    background: var(--paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}
.card { min-height: 240px; padding: clamp(28px, 3vw, 42px); }
.card::before, .format-card::before, .video-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green);
}
.cards-grid > *:nth-child(4n+2)::before { background: var(--bronze); }
.cards-grid > *:nth-child(4n+3)::before { background: var(--blue); }
.cards-grid > *:nth-child(4n+4)::before { background: var(--rust); }
.card:hover, .format-card:hover, .video-card:hover, .thesis-card:hover { transform: none; background: var(--paper-3); border-color: inherit; }
.card-icon { display: block; width: auto; height: auto; margin: 0 0 clamp(42px, 5vw, 68px); border: 0; color: var(--muted); font-size: 11px; }
.card h3 { margin-bottom: 16px; font-size: clamp(25px, 2vw, 32px); }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) {
    .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .cards-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Video cards */
.video-card { display: block; overflow: visible; color: inherit; position: relative; background: var(--paper); }
.video-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.video-preview::before { display: none; }
.video-preview::after {
    content: "Видео / запись";
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    backdrop-filter: none;
    transition: background-color .2s ease;
}
.video-play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 2px; transition: fill .2s ease; }
.video-card:hover .video-play { background: var(--ink); transform: translate(-50%, -50%); }
.video-card:hover .video-play svg { fill: var(--paper); }
.video-duration { top: 20px; right: 20px; bottom: auto; z-index: 2; padding: 5px 7px; background: var(--ink); border: 0; color: var(--paper); font-size: 10px; }
.video-info { padding: 24px 24px 28px; }
.video-info h3 { margin-bottom: 10px; font-size: clamp(23px, 1.7vw, 29px); }
.video-info p { color: var(--muted); font-size: 14px; }

/* Quote and principles */
.quote-block {
    max-width: none;
    margin: 0;
    padding: clamp(52px, 6vw, 86px) 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line-dark);
}
.quote-block .quote-text { max-width: 1100px; margin-bottom: 32px; font-size: clamp(31px, 4vw, 58px); font-style: normal; line-height: 1.08; }
.quote-block .quote-author { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; }
.principles-list { counter-reset: principles; max-width: none; margin: clamp(52px, 6vw, 80px) 0 0; border-bottom: 1px solid var(--line-dark); }
.principles-list li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0 34px;
    margin: 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: clamp(18px, 1.7vw, 26px);
    line-height: 1.35;
}
.principles-list li::before {
    counter-increment: principles;
    content: "0" counter(principles);
    position: static;
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
}

/* Process */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-dark); }
.step { padding: clamp(28px, 3vw, 42px) clamp(22px, 2vw, 32px); border-bottom: 1px solid var(--line); }
.step-number { margin-bottom: clamp(48px, 6vw, 78px); font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .1em; }
.step h3 { margin-bottom: 14px; color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 1.8vw, 30px); font-weight: 400; letter-spacing: -.03em; text-transform: none; }
.step p { color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } .step { border-bottom: 0; border-right: 1px solid var(--line); } .step:first-child { padding-left: 0; } .step:last-child { border-right: 0; } }

/* Timeline */
.timeline { border-top: 1px solid var(--ink); }
.timeline-card { display: grid; grid-template-columns: 1fr; gap: 28px; padding: clamp(40px, 5vw, 64px) 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); }
.timeline-badge { display: inline-block; padding: 0; border: 0; color: var(--muted); white-space: normal; }
.timeline-card h3 { margin-bottom: 20px; font-size: clamp(30px, 3vw, 46px); }
.timeline-card ul { list-style: none; }
.timeline-card ul li { position: relative; margin-bottom: 12px; padding-left: 24px; color: var(--muted); font-size: 16px; }
.timeline-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--ink); }
@media (min-width: 768px) { .timeline-card { grid-template-columns: 280px minmax(0, 1fr); gap: 70px; } }

/* Theses */
.theses-grid { counter-reset: thesis; display: grid; grid-template-columns: 1fr !important; gap: 0; border-top: 1px solid var(--ink); }
.thesis-card { padding: 34px 0 38px 96px; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.thesis-card::before {
    counter-increment: thesis;
    content: "0" counter(thesis);
    top: 40px;
    left: 0;
    right: auto;
    width: auto;
    height: auto;
    background: none;
    opacity: 1;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
}
.thesis-card p { max-width: 1060px; font-size: clamp(22px, 2.3vw, 34px); font-style: normal; line-height: 1.2; }

/* Filter */
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.filter-col { padding: clamp(32px, 4vw, 54px); }
.filter-col::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); }
.filter-col.negative::before { background: var(--rust); }
.filter-col.positive::before { background: var(--green); }
.filter-col h3 { margin-bottom: 38px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.filter-col ul li { margin-bottom: 18px; padding-left: 28px; color: var(--text); font-size: 16px; }
.filter-col.negative ul li::before, .filter-col.positive ul li::before { font-family: var(--font-mono); font-size: 13px; }
.filter-col.negative ul li::before { color: var(--rust); }
.filter-col.positive ul li::before { color: var(--green); }
@media (min-width: 768px) { .filter-grid { grid-template-columns: 1fr 1fr; } }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-dark); }
.profile-photo { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border: 1px solid var(--ink); margin: 0; }
.profile-photo img { filter: grayscale(30%) contrast(1.04); }
.profile-info h2 { margin-bottom: 14px; font-size: clamp(48px, 5vw, 82px); }
.profile-role { margin-bottom: 36px; color: var(--muted); }
.profile-info p { max-width: 900px; margin-bottom: 20px; color: var(--text); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.62; }
@media (min-width: 768px) { .profile-grid { grid-template-columns: 360px minmax(0, 1fr); gap: clamp(64px, 8vw, 130px); } }

/* Awards and format */
.awards-grid { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 34px; background: var(--line); border: 1px solid var(--line); }
.award-tag { padding: 13px 18px; border: 0; background: var(--paper); color: var(--ink); }
.section div[style*="background: var(--bg-card)"] {
    background: transparent !important;
    border-top: 1px solid var(--ink) !important;
    border-bottom: 1px solid var(--line-dark) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 34px 0 !important;
}
.format-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.format-card { min-height: 210px; padding: clamp(28px, 3vw, 40px); }
.format-card h4 { margin-bottom: 48px; font-family: var(--font-display); font-size: clamp(24px, 1.8vw, 30px); font-weight: 400; letter-spacing: -.03em; text-transform: none; line-height: 1.1; color: var(--ink); }
.format-card p { color: var(--text); font-size: 16px; }
@media (min-width: 640px) { .format-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .format-grid { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-question { width: 100%; padding: clamp(28px, 3vw, 42px) 0; display: flex; justify-content: space-between; align-items: center; gap: 28px; background: none; border: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; text-align: left; cursor: pointer; }
.faq-question::after { content: "+"; flex-shrink: 0; color: var(--ink); font-family: var(--font-body); font-size: 32px; font-weight: 300; transition: transform .2s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { max-width: 900px; padding: 0 0 34px; color: var(--text); font-size: 17px; line-height: 1.65; }
.faq-item.active .faq-answer { max-height: 500px; }

/* Contact */
#contact { background: #1d2b23 !important; color: #e9eae2; }
#contact .section-label { color: #a5a69b; }
#contact h2 { color: var(--paper); }
#contact p { color: #c2c2b8 !important; }
#contact [style*="color: var(--accent)"] { color: var(--bronze) !important; }
.form-section { max-width: 920px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) 0 0; background: transparent; border: 0; border-top: 1px solid #77786e; }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--bronze); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 0 16px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #55584f;
    border-radius: 0;
    color: var(--paper);
    font-size: 18px;
    outline: none;
    transition: border-color .2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #77786e; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--bronze); }
.form-group textarea { min-height: 110px; resize: vertical; }
#contact .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
#contact .btn-primary:hover { background: var(--bronze); border-color: var(--bronze); color: var(--paper); }
.form-note { color: #85867c; }

/* Footer */
.footer { padding: 64px 0 30px; background: var(--dark); border-top: 1px solid var(--dark-line); color: #b7b8ae; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 38px; margin-bottom: 58px; }
.footer-col h4 { margin-bottom: 18px; color: var(--bronze); }
.footer-col p, .footer-col a { display: block; margin-bottom: 8px; color: #b7b8ae; font-size: 14px; line-height: 1.65; text-decoration: none; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 14px; color: #85867c; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #b7b8ae; font-size: 10px; text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Motion: restrained by design */
.fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Inline utility corrections */
.section-header.center p { margin-left: 0; margin-right: 0; }
.section .container[style*="text-align: center"] { text-align: left !important; }
.section .container[style*="text-align: center"] p { margin-left: 0 !important; margin-right: 0 !important; }
.deco-line { display: none; }

@media (max-width: 1023px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-label, .hero h1, .hero-subtitle, .hero-quote, .hero-stats, .hero-photo, .hero-cta, .hero-note { grid-column: 1; }
    .hero h1 { grid-row: 2; }
    .hero-photo { grid-row: 3; justify-self: stretch; margin-top: 24px !important; }
    .hero-subtitle { grid-row: 4; }
    .hero-quote { grid-row: 5; max-width: 680px; margin-top: 36px; }
    .hero-stats { grid-row: 6; grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
    .stat-item:nth-child(2n) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .hero-cta { grid-row: 7; }
    .hero-note { grid-row: 8; }
}
@media (max-width: 639px) {
    body { font-size: 15px; }
    .container { padding: 0 20px; }
    h1 { font-size: clamp(50px, 16vw, 72px); }
    h2 { font-size: clamp(39px, 12vw, 58px); }
    .section { padding: 88px 0 !important; }
    .hero { padding-top: 112px; }
    .hero-stats { grid-template-columns: 1fr; }
    .stat-item, .stat-item:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .stat-item:last-child { border-bottom: 0; }
    .hero-cta .btn { width: 100%; }
    .principles-list li { grid-template-columns: 48px 1fr; gap: 14px; }
    .thesis-card { padding-left: 56px; }
    .profile-photo { max-width: 100%; }
    .form-section { padding-top: 32px; }
}


/* Refinement pass */
.section { padding: clamp(76px, 8vw, 120px) 0 !important; }
.hero { padding: clamp(110px, 11vw, 160px) 0 0; }
.hero-quote { margin-top: 0; }
.hero-stats { margin-top: clamp(52px, 5vw, 80px); }
.hero-cta { margin-top: clamp(40px, 4vw, 56px); }
.hero-note { margin: 16px 0 clamp(44px, 5vw, 64px); }
.section-header { margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-header .section-label, .section-label { margin-bottom: clamp(18px, 2vw, 30px); }

/* Chapter divider between major sections */
.section { border-top: 1px solid var(--line); }
.hero + .section, .section:first-of-type { border-top: 0; }
.section[style*="background: var(--bg-card)"] { border-top: 1px solid var(--ink); }

/* Logo */

/* Telegram button as ink outline */
.btn-tg::after { content: ""; }

/* Media cards with video preview */
.media-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    background: var(--paper);
    color: inherit;
    transition: background-color .2s ease;
}
.media-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ink); z-index: 2; }
.media-card:hover { background: var(--paper-3); color: inherit; }
.media-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-play {
    position: absolute;
    top: 50%; left: 50%;
    width: 64px; height: 64px;
    transform: translate(-50%, -50%);
    background: var(--paper);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .25s ease, background-color .25s ease;
}
.media-play::after {
    content: "";
    margin-left: 4px;
    border-left: 16px solid var(--ink);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transition: border-left-color .25s ease;
}
.media-card:hover .media-play { transform: translate(-50%, -50%) scale(1.12); background: var(--green); }
.media-card:hover .media-play::after { border-left-color: var(--paper); }
.media-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(20px, 2vw, 28px);
}
.media-tag {
    align-self: flex-start;
    padding: 5px 8px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.media-card h3 { margin-bottom: 12px; font-size: clamp(22px, 1.7vw, 28px); }
.media-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.media-link {
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s ease;
}
.media-card:hover .media-link { color: var(--green); }

/* Single accent color: ink strips on cards (remove rotation) */
.cards-grid > *:nth-child(n)::before { background: var(--ink); }
.filter-col.negative::before { background: var(--rust); }
.filter-col.positive::before { background: var(--green); }

/* Mobile: CTA before stats/quote */
@media (max-width: 1023px) {
    .hero h1 { grid-row: 2; }
    .hero-subtitle { grid-row: 3; }
    .hero-cta { grid-row: 4; margin-top: 36px; }
    .hero-note { grid-row: 5; margin: 14px 0 0; }
    .hero-quote { grid-row: 6; margin-top: 44px; }
    .hero-stats { grid-row: 7; margin-top: 44px; }
}


/* Edits round 2 */
.nav-logo { padding: 8px 12px; }
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-logo:hover { background: var(--green); }

/* Hero photo (restored, right column) */
/* .hero-photo placed in grid row 2 above */

/* Media cards: preview layout */
.media-card h3 { margin-bottom: 0; }

/* Awards: bright */
.award-tag {
    background: var(--ink);
    color: var(--paper) !important;
    border: 1px solid var(--ink);
    transition: background-color .2s ease, border-color .2s ease;
}
.award-tag:hover { background: var(--green); border-color: var(--green); color: var(--paper) !important; }

/* Bright final screen */
#contact { background: #20402f !important; color: #eef0e8; }
#contact .section-label { color: #b9c9b3; }
#contact h2 { color: #fbfbf6; }
#contact p { color: #cfd8ca !important; }
#contact [style*="color: var(--accent)"] { color: #e8c98a !important; }
.form-section { border-top-color: #7ea487; }
.form-group label { color: #e8c98a; }
.form-group input, .form-group textarea { border-bottom-color: #5d7a63; color: #fbfbf6; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8ba389; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: #e8c98a; }
#contact .btn-primary { background: #e8c98a; border-color: #e8c98a; color: #20402f; }
#contact .btn-primary:hover { background: #fbfbf6; border-color: #fbfbf6; color: #20402f; }
.form-note { color: #9fb3a1; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: #fbfbf6; }
/* Telegram apply button: bright, always visible */
.btn-apply {
    background: #e8c98a !important;
    border: 1px solid #e8c98a !important;
    color: #20402f !important;
    font-weight: 500;
}
.btn-apply:hover { background: #fbfbf6 !important; border-color: #fbfbf6 !important; color: #20402f !important; }

/* Policy overlay */
.policy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(23,24,21,.55);
    backdrop-filter: blur(4px);
}
.policy-overlay.open { display: block; }
.policy-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(680px, 100%);
    background: var(--paper);
    color: var(--text);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 64px);
    border-left: 1px solid var(--ink);
}
.policy-panel h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.policy-panel h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .04em; margin: 26px 0 10px; color: var(--ink); }
.policy-panel p, .policy-panel li { font-size: 14.5px; line-height: 1.65; color: var(--text); margin-bottom: 10px; }
.policy-panel ul { padding-left: 20px; }
.policy-panel a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.policy-close {
    position: sticky;
    top: 0;
    float: right;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.policy-close:hover { background: var(--ink); color: var(--paper); }

/* Cookie bar */
.cookie-bar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: auto;
    max-width: 440px;
    z-index: 190;
    display: none;
    background: var(--ink);
    color: #e6e5dc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.cookie-bar.show { display: flex; }
.cookie-bar p { font-size: 13px; line-height: 1.5; margin: 0; color: #d0cebe; }
.cookie-bar a { color: #f5f4ef; text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn {
    align-self: flex-start;
    padding: 10px 22px;
    background: #f5f4ef;
    border: 1px solid #f5f4ef;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.cookie-btn:hover { background: transparent; color: #f5f4ef; }
@media (max-width: 639px) {
    .cookie-bar { right: 16px; bottom: 16px; left: 16px; max-width: none; }
}


/* Active nav page marker */
.nav-links a.nav-active { color: var(--ink); }
.nav-links a.nav-active::after { content: ""; display: block; height: 2px; background: var(--ink); margin-top: 2px; }

/* VK / Rutube player embed: click-to-play */
.media-thumb-btn { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
.media-card iframe.vk-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.media-role { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.media-link { cursor: pointer; }

.review-quote {
    position: relative;
    margin-top: 1px;
    padding: clamp(28px, 3.2vw, 48px);
    background: var(--paper);
    border: 1px solid var(--line);
}
.review-quote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ink);
}
.review-quote-grid {
    display: grid;
    gap: clamp(28px, 4vw, 64px);
}
.review-quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.5vw, 40px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.04em;
    color: var(--ink);
}
.review-quote-text p {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.65;
}
.review-quote-author { margin: 28px 0 0 !important; }
.review-quote-author strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -.03em;
    color: var(--ink);
}
.review-quote-author span {
    color: var(--muted);
    font-size: 14px;
}
@media (min-width: 900px) {
    .review-quote-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
