@import url('styles.previous.css');

:root { --pink: #9cff57; --lime: #ffd23f; }
body { background-color: #0c0d10; background-image: linear-gradient(rgba(156,255,87,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(156,255,87,.035) 1px,transparent 1px); background-size: 24px 24px; }
h2 span { color: var(--pink); }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: .94; max-width: 760px; }
.site-header { background: rgba(12,13,16,.88); backdrop-filter: blur(10px); position: sticky; top: 0; width: 100%; box-sizing: border-box; padding-inline: 24px; }
.service-card { box-shadow: 7px 7px 0 #25272e; }
.service-card--lime { box-shadow: 7px 7px 0 #685a17; }
.about-section { background: #2b2e33; color: #f1f0eb; }
.about-copy h2 span { color: #ffd23f; }
.about-stats strong { color: #f1f0eb; }
.about-section .quote { border-left-color: #ffd23f; }
.about-grid { grid-template-columns: 1fr minmax(0, 2fr) minmax(220px, 1fr); gap: clamp(28px, 5vw, 64px); }
.about-copy { min-width: 0; }
.about-copy h2 { font-size: clamp(34px, 4.8vw, 62px); max-width: 620px; }
.about-copy h2 span { color: #ffd23f; }
.about-section .eyebrow { color: #aeb4b0; opacity: 1; }
.about-copy > p:not(.eyebrow) { max-width: 600px; }
.about-copy .quote { max-width: 100%; word-break: break-word; }
.about-stats { min-width: 0; }
.about-stats strong { overflow-wrap: anywhere; font-size: clamp(18px, 2vw, 26px); }
.about-stats span { display: block; }
.about-grid--qa { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }

.cv-promo { margin-block: 30px 110px; border: 1px solid #3a3e49; background: #121419; overflow: hidden; box-shadow: 12px 12px 0 #23262d; }
.cv-promo__media-link { display: block; background: #090a0c; }
.cv-promo__media-link:hover { opacity: .92; }
.cv-promo__media { display: block; background: #090a0c; }
.cv-promo__media img { width: 100%; height: auto; display: block; }
.cv-promo__footer { min-height: 76px; padding: 13px 18px 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cv-promo__footer p { margin: 0; color: var(--muted); font-size: 14px; }
.cv-promo__footer .button { flex: 0 0 auto; }

.project-carousel { grid-column: 1 / -1; min-width: 0; margin-top: 8px; }
.project-carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; font: 10px var(--pixel); }
.project-carousel__controls { display: flex; gap: 8px; }
.project-carousel__button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(241,240,235,.55); color: #f1f0eb; background: transparent; cursor: pointer; transition: color .18s, background .18s, transform .18s; }
.project-carousel__button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: square; stroke-linejoin: miter; shape-rendering: crispEdges; }
.project-carousel__button:hover { transform: translateY(-2px); }
.project-carousel__button:hover { color: var(--lime); background: #111; }
.project-strip { display: flex; gap: 12px; max-width: 100%; overflow-x: auto; padding: 0 0 2px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.project-strip::-webkit-scrollbar { display: none; }
.project-strip a { flex: 0 0 clamp(230px, 27vw, 310px); height: 76px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px; border: 1px solid rgba(17,17,17,.42); background: rgba(255,255,255,.13); font-size: 11px; font-weight: 700; scroll-snap-align: start; transition: transform .18s, background .18s; }
.project-strip a:hover { transform: translateY(-2px); background: rgba(255,255,255,.28); }
.project-strip img { width: 56px; height: 56px; flex: 0 0 56px; display: block; object-fit: cover; image-rendering: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.project-strip span { line-height: 1.35; }

.article-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.article-header { padding: 70px 0 42px; }
.article-header h1 { font-size: clamp(42px, 7vw, 82px); }
.article-lead { color: var(--muted); font-size: 19px; line-height: 1.7; max-width: 720px; }
.article-banner { display: block; border: 1px solid #3a3e49; box-shadow: 12px 12px 0 #23262d; margin-bottom: 70px; }
.article-banner img { display: block; width: 100%; }
.article-body { padding-bottom: 110px; }
.article-body section { padding: 34px 0; border-top: 1px solid var(--line); }
.article-body h2 { font-size: clamp(29px, 4vw, 46px); letter-spacing: -.04em; }
.article-body h3 { font-size: 20px; }
.article-body p, .article-body li { color: #c2c2bd; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 22px; }
.method-flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 28px 0; }
.method-flow span { background: var(--surface); border: 1px solid var(--line); padding: 18px 10px; text-align: center; font: 9px/1.5 var(--pixel); }
.method-flow span:not(:last-child)::after { content: '→'; color: var(--lime); margin-left: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.metric-grid div { background: var(--surface); border: 1px solid var(--line); padding: 23px; }
.metric-grid strong { display: block; color: var(--lime); font: 20px var(--pixel); margin-bottom: 10px; }
.article-note { border-left: 4px solid var(--lime); background: #17191e; padding: 20px 24px; }

@media(max-width:760px){
  .about-section { padding: 64px 0 70px; }
  .about-grid,
  .about-grid--qa { grid-template-columns: 1fr; gap: 28px; }
  .about-copy h2,.about-copy p { max-width: 100%; }
  .about-copy h2 { font-size: clamp(32px, 10vw, 50px); line-height: .98; }
  .about-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.65; }
  .about-copy .quote { margin-top: 24px; padding: 12px 0 12px 14px; font-size: 14px; }
  .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 0; }
  .about-stats div { min-width: 0; padding-top: 12px; }
  .about-stats strong { font-size: clamp(14px, 4.4vw, 19px); line-height: 1.15; }
  .about-stats span { font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
  .site-header { width: 100%; padding-inline: 16px; }
  .cv-promo { margin-bottom: 75px; }
  .cv-promo__footer { align-items: flex-start; flex-direction: column; padding: 18px; }
  .cv-promo__footer .button { width: 100%; }
  .project-carousel { margin-top: 0; }
  .project-carousel__head { align-items: flex-end; }
  .project-strip a { flex-basis: min(82vw, 290px); }
  .article-shell { width: min(100% - 32px, 600px); }
  .article-header { padding-top: 48px; }
  .article-banner { margin-bottom: 50px; }
  .method-flow { grid-template-columns: 1fr; }
  .method-flow span:not(:last-child)::after { display: block; margin: 8px 0 0; }
  .metric-grid { grid-template-columns: 1fr; }
}


.service-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(7,8,10,.78); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.service-modal.is-open { opacity: 1; pointer-events: auto; }
.service-modal__panel { position: relative; width: min(560px,100%); padding: clamp(26px,5vw,48px); color: var(--text); background: var(--surface); border: 1px solid var(--lime); box-shadow: 10px 10px 0 #08090b; transform: translateY(10px); transition: transform .18s ease; }
.service-modal.is-open .service-modal__panel { transform: translateY(0); }
.service-modal__panel h2 { margin-bottom: 18px; font-size: clamp(30px,5vw,52px); }
.service-modal__text { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.service-modal__close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
.roadmap { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: roadmap; }
.roadmap li { counter-increment: roadmap; display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.roadmap strong { color: var(--lime); font: 12px/1.5 var(--pixel); }
.roadmap span { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media(max-width:760px){ .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roadmap { grid-template-columns: 1fr; } .roadmap li { min-height: 0; padding: 18px; } }

.method-flow--animated span { position: relative; animation: cvqa-pulse 2.8s ease-in-out infinite; }
.method-flow--animated span:nth-child(2) { animation-delay: .25s; }
.method-flow--animated span:nth-child(3) { animation-delay: .5s; }
.method-flow--animated span:nth-child(4) { animation-delay: .75s; }
.method-flow--animated span:nth-child(5) { animation-delay: 1s; }
.method-flow--animated span::before { content: ''; position: absolute; inset: -1px; border: 1px solid var(--lime); opacity: 0; animation: cvqa-scan 2.8s ease-in-out infinite; }
.method-flow--animated span:nth-child(2)::before { animation-delay: .25s; }
.method-flow--animated span:nth-child(3)::before { animation-delay: .5s; }
.method-flow--animated span:nth-child(4)::before { animation-delay: .75s; }
.method-flow--animated span:nth-child(5)::before { animation-delay: 1s; }
.article-caption { color: var(--muted); font-size: 12px !important; margin-top: 18px; }
@keyframes cvqa-pulse { 0%,100% { color: var(--text); transform: translateY(0); } 12%,30% { color: var(--lime); transform: translateY(-3px); } 45% { color: var(--text); transform: translateY(0); } }
@keyframes cvqa-scan { 0%,10% { opacity: 0; transform: scale(.96); } 20%,34% { opacity: .8; transform: scale(1); } 48%,100% { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .method-flow--animated span, .method-flow--animated span::before { animation: none; } }

















.site-footer small { color: var(--muted); font-size: 10px; }
@media(max-width:760px){ .site-footer small { width: 100%; order: 4; } }




.article-gif { margin: 0 0 70px; border: 1px solid #3a3e49; background: #090a0c; box-shadow: 10px 10px 0 #23262d; }
.article-gif img { display: block; width: 100%; height: auto; }
.article-gif figcaption { padding: 12px 16px; color: var(--muted); font-size: 11px; }
@media(max-width:760px){ .article-gif { margin-bottom: 50px; box-shadow: 6px 6px 0 #23262d; } }


.lang-switch { font: 9px var(--pixel); color: var(--text) !important; white-space: nowrap; }
@media(max-width:760px){
  .menu-toggle { position: relative; z-index: 2; }
  .main-nav { z-index: 30; box-shadow: 8px 8px 0 #08090b; }
  .main-nav .lang-switch { color: var(--lime) !important; }
}
.menu-toggle { width: 44px; height: 40px; padding: 0; place-items: center; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 10px; width: 22px; height: 3px; background: currentColor; transition: transform .22s ease, top .22s ease, opacity .16s ease; }
.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

@media(max-width:760px){
  .menu-toggle { display: grid; }
  .main-nav { display: flex; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-12px) scaleY(.96); transform-origin: top; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .main-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scaleY(1); transition-delay: 0s; }
}
/* Mobile full-width actions */
@media(max-width:760px){
  .hero-actions { width: 100%; gap: 12px; }
  .button { width: 100%; min-height: 52px; padding: 16px 20px; }
  .contact-form .button { align-self: stretch; margin-top: 4px; }
  .service-modal__panel .button { margin-top: 4px; }
}
/* Clear mobile navigation */
@media(max-width:760px){
  .main-nav { padding: 10px; }
  .main-nav a { display: flex; align-items: center; min-height: 54px; padding: 15px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.25; }
  .main-nav .lang-switch { min-height: 50px; font-size: 11px; }
  .main-nav .nav-cta { justify-content: center; min-height: 56px; margin-top: 9px; border: 1px solid var(--lime); font-size: 15px; }
}
/* RU / EN switch */
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch i { color: #666; font-style: normal; }
.lang-switch span[aria-current="page"] { color: var(--lime); }
.lang-switch a { min-height: 0; padding: 0; border: 0; color: var(--muted) !important; font: inherit; }
.lang-switch a:hover { color: var(--text) !important; }
@media(max-width:760px){
  .main-nav > a { display: flex; align-items: center; min-height: 54px; padding: 15px 14px; border-bottom: 1px solid var(--line); }
  .main-nav .lang-switch { min-height: 54px; padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .main-nav .lang-switch a { display: inline; min-height: 0; padding: 0; border: 0; font-size: inherit; }
}
/* 50/50 mobile language switch */
@media(max-width:760px){
  .main-nav .lang-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-height: 56px; padding: 0; gap: 0; border: 1px solid var(--line); }
  .main-nav .lang-switch i { display: none; }
  .main-nav .lang-switch > a,
  .main-nav .lang-switch > span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0; font-size: 13px; }
  .main-nav .lang-switch > :first-child { border-right: 1px solid var(--line); }
  .main-nav .lang-switch > span[aria-current="page"] { background: rgba(255,210,63,.08); }
}