* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #0b2b4a;
    --ink-soft: #3a4a5c;
    --muted: #6b7280;
    --line: #e1e8f0;
    --accent: #2a7faa;
    --accent-dark: #0b2b4a;
    --accent-soft: #eaf3f8;
    --price-bg: #fff6e0;
    --price-border: #f0b849;
    --step-alt: #e67e22;
    --danger: #d9534f;
    --success: #5cb85c;
    --warning: #f0ad4e;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 247, 251, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    cursor: pointer;
}

.logo {
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.logo span {
    color: var(--accent);
}

.logo-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    margin-top: 1px;
    cursor: pointer;
}

.logo-sub:hover {
    color: var(--accent);
}

/* ===== НАВИГАЦИЯ ===== */
nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

nav a.active {
    background: var(--accent);
    color: white;
}

.nav-divider {
    color: var(--line);
    font-weight: 300;
    font-size: 18px;
    user-select: none;
    padding: 0 2px;
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.burger-btn:hover {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 16px;
    border-top: 1px solid var(--line);
    gap: 4px;
    background: var(--bg);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.mobile-menu a.active {
    background: var(--accent);
    color: white;
}

/* ===== PAGES ===== */
.page {
    display: none;
    padding: 56px 0 80px;
    animation: fadeIn 0.4s ease;
    flex: 1 0 auto;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ОБЩИЕ БЛОКИ ===== */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    font-weight: 600;
}

h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
    color: var(--ink);
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: var(--ink);
}

h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
}

.lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 780px;
    margin-bottom: 40px;
}

.allegory {
    font-style: italic;
    color: var(--ink-soft);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 40px;
    max-width: 780px;
    font-size: 16px;
}

.allegory p {
    margin-bottom: 12px;
}

.allegory p:last-child {
    margin-bottom: 0;
}

/* ===== HERO ===== */
.hero {
    padding: 40px 0 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 2;
}

.hero-text h1 {
    font-size: 48px;
    max-width: 900px;
}

.hero-text .subtitle {
    font-size: 19px;
    color: var(--ink-soft);
    margin-bottom: 36px;
    max-width: 780px;
}

.hero-photo {
    flex: 1;
    max-width: 200px;
    min-width: 160px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 43, 74, 0.08);
    background: var(--surface);
    border: 1px solid var(--line);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: var(--muted);
    font-size: 64px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero .core {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    margin-top: 48px;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(11, 43, 74, 0.04);
}

.hero .core p {
    margin-bottom: 14px;
    color: var(--ink-soft);
}

.hero .core p:last-child {
    margin-bottom: 0;
}

/* ===== ЗОНЫ ВЗАИМОДЕЙСТВИЯ (ВЕРТИКАЛЬНЫЙ СПИСОК) ===== */
.zones-section {
    margin-top: 48px;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.zone-category {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.zone-category .cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.zone-category .cat-header i {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.zone-category .cat-badge {
    font-weight: 400;
    font-size: 13px;
    color: var(--muted);
    margin-left: auto;
}

.cat-danger .cat-header i {
    color: var(--danger);
}

.cat-strategy .cat-header i {
    color: var(--warning);
}

.cat-ops .cat-header i {
    color: var(--success);
}

.zone-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zone-category ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s, padding-left 0.2s;
    border-radius: 4px;
    flex-wrap: wrap;
}

.zone-category ul li:last-child {
    border-bottom: none;
}

.zone-category ul li:hover {
    background: var(--accent-soft);
    padding-left: 16px;
}

.zone-category ul li .item-icon {
    color: var(--accent);
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.zone-category ul li .item-title {
    font-weight: 500;
    color: var(--ink);
    font-size: 15px;
    flex: 1;
}

/* ===== ПРИНЦИПЫ И КАРТОЧКИ ===== */
.principles,
.risks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.risks-grid {
    grid-template-columns: repeat(3, 1fr);
}

.principle,
.risk-card,
.result-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.principle:hover,
.risk-card:hover,
.result-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(42, 127, 170, 0.12);
    border-color: var(--accent);
}

.principle .num,
.risk-card .risk-num {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 700;
}

.principle h3,
.risk-card h3,
.result-item h3 {
    margin-bottom: 8px;
}

.principle p,
.risk-card p,
.result-item p {
    color: var(--ink-soft);
    font-size: 15px;
}

/* ===== РЕЗУЛЬТАТ (ВЕРТИКАЛЬНЫЙ ПЕРЕЧЕНЬ) ===== */
.results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.results .result-item {
    margin-bottom: 0;
}

/* ===== СПИСКИ С ГАЛОЧКАМИ ===== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checklist li strong {
    color: var(--ink);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.checklist-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 48px;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

/* ===== ЭТАПЫ РАБОТЫ ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 56px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(42, 127, 170, 0.1);
    border-color: var(--accent);
}

.step .step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step .step-num-alt {
    background: var(--step-alt);
}

.step h3 {
    margin-bottom: 6px;
}

.step p {
    color: var(--ink-soft);
    font-size: 15px;
    margin-bottom: 6px;
}

.step p .highlight {
    background: var(--accent-soft);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--accent-dark);
    display: inline;
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
}

.step ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.step ul li {
    padding-left: 24px;
    position: relative;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.step ul li:last-child {
    margin-bottom: 0;
}

.step ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== КОНТАКТЫ ===== */
.contact-simple {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    max-width: 500px;
}

.contact-simple li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.contact-simple li:last-child {
    border-bottom: none;
}

.contact-simple a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
}

.contact-simple a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.contact-simple a i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-simple .no-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    font-size: 15px;
    color: var(--ink-soft);
}

.contact-simple .no-link i {
    color: var(--muted);
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-simple .calendar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 4px 0 4px 38px;
}

.contact-simple .calendar-links a {
    font-size: 14px;
    padding: 4px 12px;
    background: var(--accent-soft);
    border-radius: 20px;
    text-decoration: none;
    color: var(--accent);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.contact-simple .calendar-links a:hover {
    background: var(--accent);
    color: white;
}

.contact-simple .calendar-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
}

.contact-simple .calendar-label i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== ОБО МНЕ ===== */
.about-top {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 14px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-photo-wrap {
    flex: 1;
    max-width: 380px;
    min-width: 280px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 43, 74, 0.08);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 80px;
}

.about-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-note {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 24px 28px;
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--ink-soft);
}

.projects {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.projects h3 {
    margin-bottom: 20px;
}

.projects .project-group {
    margin-bottom: 24px;
}

.projects .project-group:last-child {
    margin-bottom: 0;
}

.projects .project-group .group-title {
    font-weight: 600;
    color: var(--accent-dark);
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects .project-group .group-title i {
    color: var(--accent);
    font-size: 18px;
}

.projects ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.projects li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.5;
}

.projects li:last-child {
    border-bottom: none;
}

.projects li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.projects li .kpi-highlight {
    background: var(--accent-soft);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
}

.skills {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.skills:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(42, 127, 170, 0.1);
    border-color: var(--accent);
}

.skills h3 {
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.skill {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.skill:last-child,
.skill:nth-last-child(2) {
    border-bottom: none;
}

.skill-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.skill-text {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
}

.skill-text strong {
    color: var(--ink);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.education {
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 32px;
}

.education h3 {
    margin-bottom: 16px;
}

.education p {
    color: var(--ink-soft);
    margin-bottom: 10px;
    font-size: 15px;
}

.education p:last-child {
    margin-bottom: 0;
}

.tech-background {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.tech-background h3 {
    margin-bottom: 16px;
}

.tech-background p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* ===== PDF-БРОШЮРА ===== */
.pdf-brochure {
    max-width: 794px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 43, 74, 0.06);
    padding: 20px;
}

.pdf-brochure .pdf-page {
    background: #ffffff;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.pdf-brochure .pdf-page h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.pdf-brochure .pdf-page h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.2px;
    margin: 12px 0 6px 0;
}

.pdf-brochure .pdf-page h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.pdf-brochure .pdf-page p {
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.pdf-brochure .pdf-page ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-brochure .pdf-page ul li {
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--ink-soft);
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.pdf-brochure .pdf-page ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pdf-brochure .pdf-page .accent-color {
    color: var(--accent);
}

.pdf-brochure .pdf-page .header-pdf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.pdf-brochure .pdf-page .header-pdf .logo-block {
    display: flex;
    flex-direction: column;
}

.pdf-brochure .pdf-page .header-pdf .logo-block .name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.pdf-brochure .pdf-page .header-pdf .logo-block .name span {
    color: var(--accent);
}

.pdf-brochure .pdf-page .header-pdf .logo-block .title {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.pdf-brochure .pdf-page .header-pdf .photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 28px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.pdf-brochure .pdf-page .situation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin-top: 4px;
}

.pdf-brochure .pdf-page .situation-grid li {
    padding-left: 20px;
    font-size: 10.5px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.pdf-brochure .pdf-page .situation-grid li::before {
    content: "▸";
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.pdf-brochure .pdf-page .principles-list li {
    padding-left: 22px;
    margin-bottom: 3px;
}

.pdf-brochure .pdf-page .principles-list li::before {
    content: "✓";
    color: #5cb85c;
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 12px;
}

.pdf-brochure .pdf-page .result-item {
    margin-bottom: 6px;
}

.pdf-brochure .pdf-page .result-item strong {
    color: var(--ink);
    font-weight: 600;
}

.pdf-brochure .pdf-page .experience-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    margin-top: 2px;
}

.pdf-brochure .pdf-page .experience-list li {
    padding-left: 16px;
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.pdf-brochure .pdf-page .experience-list li::before {
    content: "—";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.pdf-brochure .pdf-page .contacts-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    background: var(--accent-soft);
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 6px;
}

.pdf-brochure .pdf-page .contacts-block .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--ink);
    text-decoration: none;
}

.pdf-brochure .pdf-page .contacts-block .contact-item i {
    color: var(--accent);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.pdf-brochure .pdf-page .qr-wrapper {
    float: right;
    margin-left: 16px;
    margin-bottom: 8px;
    text-align: center;
}

.pdf-brochure .pdf-page .qr-wrapper img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.pdf-brochure .pdf-page .qr-wrapper .qr-label {
    font-size: 7px;
    color: var(--muted);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.pdf-brochure .pdf-page .block {
    margin-bottom: 14px;
}

.pdf-brochure .pdf-page .block:last-child {
    margin-bottom: 0;
}

.pdf-brochure .pdf-download-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(42, 127, 170, 0.3);
}

.pdf-brochure .pdf-download-btn:hover {
    background: var(--accent-dark);
}

.pdf-brochure .pdf-download-btn:active {
    transform: scale(0.97);
}

.pdf-brochure .hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
}

/* ===== FOOTER ===== */
footer {
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: auto;
}

footer .footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
}

footer .footer-link:hover {
    color: var(--accent);
}

/* ===== КНОПКА ВВЕРХ ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(42, 127, 170, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
    z-index: 99;
    font-size: 18px;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* ===== СИТУАЦИИ (ДЕТАЛЬНЫЕ БЛОКИ) ===== */
.context {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    padding-left: 48px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(11, 43, 74, 0.03);
}

.context:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(42, 127, 170, 0.1);
    border-color: var(--accent);
}

.context .context-header h3 {
    margin-bottom: 0;
    font-size: 19px;
}

.context .price {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--price-bg);
    border-left: 4px solid var(--price-border);
    font-size: 14px;
    color: var(--ink-soft);
}

.context .price strong {
    color: var(--ink);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.context .price strong .fire-icon {
    font-size: 18px;
    line-height: 1;
    color: #e67e22;
}

.context .example {
    background: var(--accent-soft);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-soft);
    border-left: 3px solid var(--accent);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 40px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    font-size: 22px;
    color: var(--accent);
}

.category-title .badge {
    font-weight: 400;
    font-size: 14px;
    color: var(--muted);
    margin-left: auto;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    .hero-photo {
        max-width: 160px;
        min-width: 120px;
    }
    .about-photo-wrap {
        max-width: 300px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    /* Показываем бургер, прячем десктопное меню */
    nav {
        display: none;
    }
    .burger-btn {
        display: block;
    }
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-text .subtitle {
        font-size: 17px;
        margin-bottom: 24px;
        max-width: 100%;
    }
    .hero-photo {
        max-width: 150px;
        min-width: 120px;
        aspect-ratio: 1/1;
    }
    .about-top {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .about-photo-wrap {
        position: static;
        max-width: 220px;
        min-width: 160px;
        aspect-ratio: 3/4;
    }
    .about-text {
        text-align: center;
    }
    .zones-list {
        gap: 16px;
    }
    .zone-category {
        padding: 16px;
    }
    .zone-category .cat-badge {
        margin-left: 0;
        width: 100%;
    }
    .zone-category ul li {
        flex-wrap: wrap;
        gap: 4px;
    }
    .principles,
    .risks-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .page {
        padding: 32px 0 48px;
    }
    .scroll-top-btn {
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }
    .checklist li {
        padding: 12px 0;
    }
    .context {
        padding: 20px 16px;
    }
    .context .price {
        padding: 10px 14px;
    }
    .step {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    .step .step-num {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .contact-simple li {
        padding: 4px 0;
    }
    .hero .core {
        max-width: 100%;
        padding: 24px;
    }
    .contact-simple .calendar-links {
        padding-left: 0;
    }
    .contact-simple .calendar-label {
        padding-left: 0;
    }
    .category-title .badge {
        display: none;
    }
    .zone-category ul li .item-title {
        flex: 1 1 100%;
    }
    .skills {
        padding: 20px;
    }
    .projects {
        padding: 20px;
    }
    .team-note {
        padding: 16px 20px;
    }
    .tech-background {
        padding: 20px;
    }
    .projects li {
        font-size: 14px;
        padding: 10px 0 10px 20px;
    }
    .education {
        padding: 20px;
    }
    .pdf-brochure .pdf-page .situation-grid {
        grid-template-columns: 1fr;
    }
    .pdf-brochure .pdf-page .experience-list {
        grid-template-columns: 1fr;
    }
    .pdf-brochure .pdf-page .header-pdf .photo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .pdf-brochure .pdf-page .header-pdf .logo-block .name {
        font-size: 18px;
    }
    .pdf-brochure .pdf-page .contacts-block {
        flex-direction: column;
        gap: 4px;
    }
    .pdf-brochure .pdf-page .qr-wrapper {
        float: none;
        margin: 0 0 8px 0;
        text-align: right;
    }
    .pdf-brochure .pdf-page .qr-wrapper img {
        width: 48px;
        height: 48px;
    }
    .pdf-brochure .pdf-page {
        padding: 12px 16px;
    }
    .pdf-brochure {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-photo {
        max-width: 120px;
    }
    .about-photo-wrap {
        max-width: 180px;
    }
    .contact-simple a {
        font-size: 14px;
    }
    .contact-simple .calendar-links a {
        font-size: 13px;
        padding: 3px 10px;
    }
    .contact-simple .calendar-links {
        gap: 8px;
    }
    .context {
        padding-left: 16px;
    }
    .projects li {
        font-size: 13px;
    }
}

/* ===== ПЕЧАТНЫЕ СТИЛИ ДЛЯ PDF-БРОШЮРЫ ===== */
@media print {
    body,
    .page,
    .pdf-brochure,
    .pdf-page {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }
    .pdf-brochure .pdf-page {
        border: none !important;
        padding: 20px 24px !important;
        width: 100% !important;
    }
    .pdf-brochure .pdf-download-btn,
    .pdf-brochure .hint {
        display: none !important;
    }
    .pdf-brochure .pdf-page .header-pdf .photo-placeholder {
        border: 1px solid #ccc !important;
    }
    .pdf-brochure .pdf-page .qr-wrapper img {
        border: 1px solid #ccc !important;
    }
    .pdf-brochure .pdf-page .contacts-block {
        background: #eaf3f8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .pdf-brochure .pdf-page .header-pdf {
        border-bottom-color: #ccc !important;
    }
    .pdf-brochure .pdf-page .block {
        page-break-inside: avoid;
    }
    .header-pdf .photo-placeholder {
        background: #f0f0f0 !important;
    }
    header,
    .burger-btn,
    .mobile-menu {
        display: none !important;
    }
}