/* ZAHAR'EV visual system */
:root {
    --bg: #090909;
    --panel: #111;
    --text: #f0ede6;
    --muted: rgba(255, 255, 255, .5);
    --line: #1a1a1a;
    --orange: #ff4d00;
    --yellow: #f5c800;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: 20px; }

.topbar {
    position: sticky; top: 0; z-index: 100; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px;
    background: rgba(9, 9, 9, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.topbar-logo, .footer-logo { font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.topbar-logo { font-size: 18px; flex: 0 0 auto; }
.topbar-logo span, .footer-logo span, .logo span, .hero-title span { color: var(--orange); }
.topbar-nav { display: none; align-items: center; gap: 20px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar-nav a { color: rgba(255,255,255,.4); }
.topbar-nav a:hover { color: var(--orange); }
.topbar-contact, .btn-primary {
    display: inline-block; border: 0; border-radius: 4px; background: var(--orange); color: #fff;
    padding: 11px 16px; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
}
.topbar-contact:hover, .btn-primary:hover { background: #e04400; color: #fff; transform: translateY(-1px); }

.hero {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: calc(100svh - 64px);
    width: 100%; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at center, #252525 0%, #090909 68%); background-position:center; background-size:cover; }
.hero-bg-media { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.72; }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(115deg, transparent 0 49%, #fff 50%, transparent 51%); background-size: 7px 7px; }
.hero-content { position: relative; z-index: 1; width: min(100%, 900px); padding: 40px 20px; }
.hero-title { font-size: clamp(42px, 15vw, 140px); font-weight: 900; line-height: .95; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.hero-sub { margin-top: 20px; font-size: clamp(16px, 2vw, 28px); line-height: 1.4; }
.hero-sub em { color: var(--orange); font-style: normal; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn-outline { display: inline-block; border: 2px solid var(--orange); border-radius: 4px; padding: 9px 16px; color: var(--text); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-black { display: inline-block; padding: 14px 24px; background: var(--bg); color: var(--text); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.btn-black:hover { background: #fff; color: var(--bg); }

.section-title { margin: 64px 0 24px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.05); color: rgba(255,255,255,.25); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.direction-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #161616, var(--bg) 62%); }
.direction-hero-inner { position: relative; }
.back-link { display: inline-block; margin-bottom: 48px; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.direction-hero-icon { margin-bottom: 20px; color: var(--direction-accent, var(--orange)); font-size: 44px; line-height: 1; }
.direction-hero h1, .page-not-found h1 { max-width: 900px; margin: 0; color: #fff; font-size: clamp(40px, 10vw, 100px); font-weight: 900; line-height: .95; text-transform: uppercase; }
.direction-hero-description { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.direction-ambassador { display: grid; gap: 4px; width: fit-content; margin-top: 32px; padding: 16px 20px; border-left: 3px solid var(--direction-accent, var(--orange)); background: rgba(255,255,255,.04); }
.direction-ambassador span, .direction-ambassador small { color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.direction-ambassador strong { color: #fff; font-size: 16px; text-transform: uppercase; }
.direction-projects { min-height: 360px; padding-bottom: 32px; }
.ambassador-page { min-height:60svh; padding-top:80px; }.ambassador-photo { width:min(320px,100%); aspect-ratio:1; object-fit:cover; margin:0 0 28px; border:1px solid #222; }
.page-not-found { min-height: 60svh; padding-top: 100px; }
.page-not-found p:not(.eyebrow) { max-width: 500px; margin: 20px 0 28px; color: var(--muted); line-height: 1.6; }
.about { display: grid; gap: 30px; padding: 48px 0; align-items: center; }
.about-image { display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; border: 1px solid #222; background: linear-gradient(135deg, #222, #0d0d0d); color: rgba(255,255,255,.2); font-size: 10px; font-weight: 900; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.about-content h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.05; }
.about-content p { max-width: 620px; margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-content .quote { margin: 24px 0; color: var(--orange); font-size: 20px; font-weight: 900; }

.directions-grid, .projects-grid, .blog-grid, .team-grid { display: grid; gap: 12px; }
.directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.direction-card { position: relative; min-height: 190px; padding: 24px 16px; border: 1px solid #222; background: var(--bg); }
.direction-card:hover { border-color: var(--orange); background: #111; transform: translateY(-4px); }
.direction-card .icon { margin-bottom: 28px; color: var(--orange); font-size: 30px; }
.direction-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 900; letter-spacing: .08em; }
.direction-card p { margin: 0; color: rgba(255,255,255,.45); font-size: 11px; line-height: 1.5; }
.direction-card .ambassador { position: absolute; right: 16px; bottom: 14px; color: rgba(255,255,255,.25); font-size: 9px; text-transform: uppercase; }
.direction-link { display: inline-block; margin-top: 14px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.complex { margin-top: 24px; padding: 24px; border: 1px solid #222; text-align: center; }
.complex h3 { margin: 0 0 10px; font-size: 18px; }
.complex p { margin: 0 auto 18px; max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.complex-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom:24px; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.complex .btn-primary { margin-top: 6px; }

.projects-grid { grid-template-columns: 1fr; }
.project-card { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a1a; }
.project-card .cover { width: 100%; height: 100%; object-fit: cover; background: #1a1a1a; transition: transform .5s, filter .3s; }
.project-card:hover .cover { transform: scale(1.05); filter: brightness(.85) saturate(1.1); }
.project-card .overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.project-card .cat { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.project-card .title { margin-top: 4px; color: #fff; font-size: 14px; font-weight: 700; }
.project-card .play-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; transform: translate(-50%,-50%); }
.project-card:hover .play-icon { border-color: var(--orange); background: var(--orange); }
.section-action { margin-top: 30px; text-align: center; }
.empty-state { margin: 20px 0; color: rgba(255,255,255,.35); font-size: 13px; text-align: center; }
.blog-grid { grid-template-columns: 1fr; }
.blog-card, .team-card { padding: 20px; border: 1px solid transparent; background: var(--panel); }
.blog-card:hover, .team-card:hover { border-color: var(--orange); background: #181818; }
.blog-card .date { color: rgba(255,255,255,.3); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.blog-card h3 { margin: 12px 0; font-size: 17px; line-height: 1.2; }
.blog-card p { color: var(--muted); font-family: Georgia, serif; font-size: 13px; line-height: 1.5; }
.blog-card .read-more { display: inline-block; margin-top: 8px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.team-grid { grid-template-columns: 1fr; }
.team-card .avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); font-size: 18px; font-weight: 900; }
.team-card .name { font-size: 16px; font-weight: 900; text-transform: uppercase; }
.team-card .role { margin: 4px 0 8px; color: rgba(255,255,255,.5); font-size: 11px; }
.team-card .quote { color: rgba(255,255,255,.35); font-size: 12px; font-style: italic; line-height: 1.4; }

.blog-page { min-height: 65svh; padding-top: 76px; padding-bottom: 52px; }
.page-title { margin: 0; color: #fff; font-size: clamp(48px, 10vw, 110px); font-weight: 900; line-height: .95; }
.page-intro { max-width: 580px; margin: 20px 0 42px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.blog-list { display: grid; gap: 16px; }
.article-card { display: grid; overflow: hidden; border: 1px solid #222; background: var(--panel); }
.article-card:hover { border-color: var(--orange); }
.article-card-cover { display: block; min-height: 210px; background: #181818; }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card-content { padding: 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.42); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-meta span { color: var(--orange); }
.article-card h2 { margin: 14px 0; font-size: clamp(20px, 4vw, 30px); line-height: 1.1; text-transform: uppercase; }
.article-card h2 a:hover { color: var(--orange); }
.article-card p { margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 14px; line-height: 1.6; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid #333; color: var(--text); font-size: 12px; font-weight: 900; }
.pagination a:hover, .pagination a[aria-current="page"] { border-color: var(--orange); background: var(--orange); color: #fff; }
.post-header { padding-top: 76px; padding-bottom: 40px; }
.post-header .article-meta { margin-top: 48px; }
.post-header h1 { max-width: 1050px; margin: 16px 0 0; color: #fff; font-size: clamp(34px, 7vw, 78px); font-weight: 900; line-height: 1; text-transform: uppercase; }
.post-lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-family: Georgia, serif; font-size: 18px; line-height: 1.6; }
.post-cover { width: min(100%, 1400px); max-height: 720px; margin: 0 auto; object-fit: cover; }
.post-content { max-width: 800px; padding-top: 50px; padding-bottom: 32px; }
.post-content p { margin: 0 0 22px; color: var(--text); font-family: Georgia, serif; font-size: 18px; line-height: 1.75; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin: 34px 0 14px; color: #fff; line-height: 1.2; }
.post-content h1 { font-size: 38px; }
.post-content h2 { font-size: 32px; }
.post-content h3 { font-size: 25px; }
.post-content h4 { font-size: 21px; }
.post-content ul, .post-content ol { margin: 0 0 22px; padding-left: 28px; color: var(--text); font-family: Georgia, serif; font-size: 18px; line-height: 1.75; }
.post-content blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); color: var(--muted); font-family: Georgia, serif; font-size: 18px; line-height: 1.7; }
.post-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-content code { padding: 2px 5px; background: #202020; font-size: .88em; }
.post-content pre { overflow-x: auto; margin: 0 0 22px; padding: 16px; background: #151515; line-height: 1.5; }
.post-content pre code { padding: 0; background: transparent; }
.project-hero { position: relative; display: flex; align-items: end; min-height: min(78svh, 760px); overflow: hidden; background: #151515; }
.project-hero-cover, .project-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-hero-cover { object-fit: cover; }
.project-hero-shade { background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.2)), linear-gradient(0deg, rgba(0,0,0,.8), transparent 60%); }
.project-hero-content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 52px; }
.project-hero h1 { max-width: 950px; margin: 0; color: #fff; font-size: clamp(38px, 9vw, 94px); font-weight: 900; line-height: .95; text-transform: uppercase; }
.project-date { display: block; margin-top: 18px; color: rgba(255,255,255,.65); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.project-content { padding-top: 44px; padding-bottom: 20px; }
.project-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #151515; }
.project-video iframe { width: 100%; height: 100%; border: 0; }
.project-description { max-width: 760px; margin: 48px auto 0; }
.project-description h2 { margin: 0 0 20px; color: #fff; font-size: 26px; font-weight: 900; text-transform: uppercase; }
.project-description p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.project-navigation { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 40px; padding-bottom: 48px; }
.project-nav-link { display: flex; min-height: 110px; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid #222; background: var(--panel); }
.project-nav-link:hover { border-color: var(--orange); background: #181818; }
.project-nav-link span { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.project-nav-link strong { margin-top: 8px; color: #fff; font-size: 16px; text-transform: uppercase; }
.project-nav-next { text-align: right; }
.contact-section { display: grid; grid-template-columns: 1fr; margin-top: 64px; }
.contact-left { display: flex; flex-direction: column; justify-content: center; padding: 40px 20px; background: var(--yellow); color: #090909; }
.contact-left h2 { margin: 0 0 20px; font-size: clamp(32px, 8vw, 52px); font-weight: 900; line-height: .95; }
.contact-left p { max-width: 500px; margin: 0 0 24px; font-family: Georgia, serif; font-size: 14px; line-height: 1.5; }
.contact-right { display: flex; flex-direction: column; justify-content: center; padding: 40px 20px; border-top: 1px solid var(--line); }
.contact-right h3 { margin: 0 0 24px; color: rgba(255,255,255,.25); font-size: 10px; font-weight: 900; letter-spacing: .25em; text-transform: uppercase; }
.c-item { margin-bottom: 20px; }
.c-label { display: block; margin-bottom: 4px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.c-item a, .c-item span { color: var(--text); font-size: 15px; font-weight: 900; text-transform: uppercase; }
.soc-row, .footer-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { padding: 9px 12px; border: 1px solid #2a2a2a; color: var(--text); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.soc:hover { border-color: var(--orange); color: var(--orange); }
.footer { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 28px; border-top: 1px solid #141414; margin-top: 32px; text-align: center; }
.footer-logo { font-size: 16px; }
.footer-contacts { justify-content: center; font-size: 10px; }
.footer p { margin: 0; color: rgba(255,255,255,.22); font-size: 10px; letter-spacing: .08em; }

@media (min-width: 769px) {
    .container { padding-inline: 40px; }
    .topbar { padding: 20px 40px; }
    .topbar-nav { display: flex; }
    .topbar-contact { padding-inline: 20px; }
    .hero-content { padding-inline: 40px; }
    .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; padding-block: 80px; }
    .article-card { grid-template-columns: minmax(220px, 36%) 1fr; }
    .article-card-cover { min-height: 100%; }
    .directions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-section { grid-template-columns: 1fr 1fr; }
    .contact-left, .contact-right { padding: 60px; }
    .contact-right { border-top: 0; border-left: 1px solid var(--line); }
    .footer { flex-direction: row; justify-content: space-between; text-align: left; }
    .footer-contacts { justify-content: flex-start; }
}
@media (min-width: 1025px) {
    .topbar-nav { gap: 24px; }
    .directions-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}