/* styles.css — ECKLIPSE Navarra · dark editorial/tech */

/* =============================================
   TOKENS
   ============================================= */
:root {
    color-scheme: dark;

    /* Palette: graphite + teal + warm amber */
    --bg: #0f1115;
    --surface: #161a21;
    --surface-2: #1c2129;
    --surface-3: #232933;

    --line: rgba(230, 235, 245, 0.08);
    --line-strong: rgba(230, 235, 245, 0.14);

    --text: #dfe3ea;
    --heading: #f1f3f7;
    --muted: #9aa3b2;
    --muted-2: #8790a0;

    --accent: #6fb8ad;
    --accent-strong: #92d2c8;
    --accent-ink: #0f1115;
    --accent-soft: rgba(111, 184, 173, 0.12);
    --accent-line: rgba(111, 184, 173, 0.28);

    --accent2: #c9a46a;
    --accent2-soft: rgba(201, 164, 106, 0.12);
    --accent2-line: rgba(201, 164, 106, 0.3);

    --warning: #e0a077;
    --warning-soft: rgba(208, 138, 92, 0.12);
    --warning-line: rgba(208, 138, 92, 0.3);

    --link: #8fd0c6;
    --link-visited: #a9b6c9;
    --focus: #9ee3d8;

    --code-bg: #0b0d11;
    --code-text: #cfd7e3;
    --inline-code-bg: #1f2530;
    --inline-code-text: #a9e0d6;

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    --gutter: clamp(16px, 4vw, 24px);
    --container: 1200px;
    --measure: 68ch;

    /* Type */
    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: var(--font-body);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --fs-base: 1rem;
    --lh-base: 1.7;

    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
    :root {
        --fs-base: 1.0625rem;
    }
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background-color: var(--bg);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-base);
    min-height: 100vh;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
    border-radius: var(--radius);
}

img {
    filter: brightness(0.95);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--heading);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

strong,
b {
    font-weight: 600;
    color: var(--heading);
}

em,
i {
    font-style: italic;
}

small {
    font-size: 0.875em;
    color: var(--muted);
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: rgba(143, 208, 198, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
    transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--accent-strong);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

hr {
    border: 0;
    height: 1px;
    background: var(--line-strong);
    margin: var(--s-7) 0;
}

mark {
    background: var(--accent2-soft);
    color: #f1e3c6;
    padding: 0 0.2em;
    border-radius: 4px;
}

kbd {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text);
    background: var(--surface-3);
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 1px 6px;
    line-height: 1.5;
}

code,
samp {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

:not(pre) > code {
    background: var(--inline-code-bg);
    color: var(--inline-code-text);
    padding: 0.15em 0.4em;
    border-radius: 6px;
    border: 1px solid var(--line);
    overflow-wrap: anywhere;
}

figure {
    margin: var(--s-6) 0;
}

figcaption {
    margin-top: var(--s-2);
    font-size: 0.875rem;
    color: var(--muted-2);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    /* мобильный: прокрутка внутри блока */
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Selection & scrollbar */
::selection {
    background: rgba(111, 184, 173, 0.28);
    color: var(--heading);
}

html {
    scrollbar-color: #2a313c var(--bg);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #2a313c;
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4350;
}

/* Form controls: dark defaults */
input,
textarea,
select,
button {
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: var(--s-2) var(--s-3);
    min-height: 44px;
    color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
    opacity: 1;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--accent-line);
}

button {
    cursor: pointer;
    background: var(--surface-2);
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

button:hover {
    background: var(--surface-3);
    border-color: var(--accent-line);
    color: var(--heading);
}

button:active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Focus ring */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-3) var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-2) var(--s-4);
}

.logo-name {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    gap: var(--s-1) var(--s-5);
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    scrollbar-width: none;
    order: 3;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--s-2) 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
    color: var(--heading);
    text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
    color: var(--accent-strong);
}

.lang-switcher {
    display: flex;
    gap: var(--s-2);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: var(--s-1) var(--s-2);
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--accent-strong);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    text-decoration: none;
}

@media (min-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
        padding: var(--s-4) var(--gutter);
    }

    .main-nav {
        width: auto;
        order: 0;
        overflow: visible;
        gap: var(--s-6);
        font-size: 0.875rem;
    }

    .main-nav a {
        min-height: auto;
        padding: var(--s-1) 0;
    }

    .main-nav a::after {
        bottom: 0;
    }

    .lang-switcher a {
        min-width: auto;
        min-height: auto;
        padding: var(--s-1) var(--s-2);
    }
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
main {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-7) var(--gutter) var(--s-8);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
    align-items: center;
    margin-bottom: var(--s-7);
}

.hero > * {
    min-width: 0;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 0;
    transition: transform 0.6s var(--ease);
}

.hero-visual:hover img {
    transform: scale(1.02);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding: 0;
}

.hero-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
    background: var(--accent2-soft);
    border: 1px solid var(--accent2-line);
    border-radius: var(--radius-pill);
    padding: var(--s-1) var(--s-3);
}

.article-title {
    font-family: var(--font-head);
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 2rem);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.lead {
    font-size: 1
.125rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 62ch;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-5);
    font-weight: 600;
    color: var(--accent-ink);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--accent-ink);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-5);
    font-weight: 500;
    color: var(--heading);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.btn-ghost:hover {
    color: var(--accent-strong);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: var(--s-7) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
}

.section-kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.section-desc {
    color: var(--muted);
    max-width: 60ch;
}

/* =============================================
   CARDS
   ============================================= */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
}

.card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading);
}

.card-text {
    font-size: 0.9375rem;
    color: var(--muted);
}

.card-link {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-strong);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    margin-top: var(--s-8);
    padding: var(--s-6) var(--gutter);
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 0.8125rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3) var(--s-5);
}

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
}

.footer-inner a:hover {
    color: var(--heading);
}

/* =============================================
   UTILITIES
   ============================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 768px) {
    .hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-7);
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

===end file===
===end file===
===end file===
===end file===
===end file===
===end file===