@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --ink: #26251e;
    --body: #5a5852;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    background-color: var(--canvas);
    color: var(--body);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--ink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 22px; line-height: 1.3; letter-spacing: -0.005em; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    display: block;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

.site-nav {
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background-color: var(--surface-strong);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 280px;
    z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.nav-dropdown-menu a:hover {
    background-color: var(--canvas);
    color: var(--ink);
}

.nav-dropdown-menu a strong {
    display: block;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
}

.nav-dropdown-menu a span {
    font-size: 13px;
    color: var(--muted);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
    display: none;
    background-color: var(--surface-card);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--ink);
}

.hero {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--hairline);
}

.hero-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 24px;
}

.hero-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    max-width: 640px;
    margin-bottom: 48px;
}

.hero-image {
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
    max-height: 480px;
    width: 100%;
    object-fit: cover;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--ink);
    background-color: var(--surface-strong);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
}

.badge-accent {
    background-color: var(--primary);
    color: var(--on-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.article-card:hover {
    border-color: var(--hairline-strong);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 12px;
}

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-top: 1px solid var(--hairline);
    padding-top: 16px;
    margin-top: auto;
}

.article-card-link:hover {
    color: var(--primary);
}

.info-band {
    background-color: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.info-item {
    padding: 40px 32px;
    border-right: 1px solid var(--hairline);
}

.info-item:last-child {
    border-right: none;
}

.info-item-icon {
    width: 40px;
    height: 40px;
    background-color: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.5;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.008em;
}

.article-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 8px;
}

.article-content img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    margin: 32px 0;
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 32px 0;
    background-color: var(--surface-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-top: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.article-content blockquote p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    margin: 0;
    font-style: italic;
}

.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--muted);
}

.article-header h1 {
    font-size: 44px;
    max-width: 760px;
    margin-bottom: 20px;
}

.article-header .article-intro {
    font-size: 18px;
    line-height: 1.65;
    color: var(--body);
    max-width: 680px;
}

.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    border-bottom: 1px solid var(--hairline-soft);
    padding: 10px 0;
}

.sidebar-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-card li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.sidebar-card li a:hover {
    color: var(--ink);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--hairline-strong);
}

.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

.page-header h1 {
    font-size: 44px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
}

.prose h2 {
    font-size: 26px;
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 12px;
}

.prose p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 20px;
}

.prose ul, .prose ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    margin-bottom: 6px;
}

.contact-form {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 560px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    height: 44px;
}

.form-group textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

.btn-submit {
    background-color: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 44px;
    transition: opacity 0.15s;
}

.btn-submit:hover {
    opacity: 0.85;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #1f8a65;
    background-color: #f0faf6;
    color: #1f8a65;
}

.form-message.visible {
    display: block;
}

.site-footer {
    background-color: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--body);
    margin-top: 12px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-card);
    border-top: 1px solid var(--hairline);
    z-index: 999;
    padding: 20px 24px;
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.cookie-text {
    font-size: 14px;
    color: var(--body);
    flex: 1;
}

.cookie-text a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--ink);
    color: var(--canvas);
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    padding: 9px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-cookie-reject {
    background-color: transparent;
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 9px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-cookie-accept:hover { opacity: 0.85; }
.btn-cookie-reject:hover { background-color: var(--surface-strong); }

.about-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 80px;
    align-items: start;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-item {
        border-right: none;
        border-bottom: 1px solid var(--hairline);
    }
    .info-item:last-child {
        border-bottom: none;
    }
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .hero h1 { font-size: 36px; }
    .article-header h1 { font-size: 32px; }
    .page-header h1 { font-size: 32px; }

    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .section { padding: 48px 0; }
    .hero { padding: 48px 0 40px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero-intro { font-size: 16px; }
}
