/* style.css - Alexey Skulanov site */

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

:root {
  --ink:     #0e0e0e;
  --ink-2:   #1a1a1a;
  --g700:    #3d3d3d;
  --g500:    #6b6b6b;
  --g400:    #8a8a8a;
  --g300:    #b8b8b8;
  --g200:    #e2e2e2;
  --g100:    #f2f2f2;
  --g50:     #f8f8f8;
  --white:   #ffffff;
  --accent:  #1246d4;
  --adim:    rgba(18,70,212,.08);
  --green:   #16a34a;
  --max:     1100px;
  --font:    'Geologica', system-ui, sans-serif;
  --r:       6px;
  --rlg:     12px;
  --rxl:     18px;

  /* aliases for newer blocks */
  --gray-700: var(--g700);
  --gray-500: var(--g500);
  --gray-400: var(--g400);
  --gray-300: var(--g300);
  --gray-200: var(--g200);
  --gray-100: var(--g100);
  --gray-50:  var(--g50);
  --r-lg:     var(--rlg);
  --r-xl:     var(--rxl);
  --accent-dim: var(--adim);
  --accent-mid: rgba(18,70,212,.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; border-bottom: 1px solid var(--g200); }
.section--dark { background: var(--ink); border-color: rgba(255,255,255,.06); }
.section--tinted { background: var(--g50); }

.label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section--dark .label { color: rgba(120,160,255,.9); }

.h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--g500); line-height: 1.7; max-width: 600px; }
.section--dark .h2 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,.5); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; border-radius: var(--r); border: none; cursor: pointer; transition: opacity .15s, transform .1s; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: .85; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--white); padding: 13px 26px; font-size: 15px; }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--g200); padding: 12px 24px; font-size: 15px; }
.btn--outline:hover { border-color: var(--ink); opacity: 1; }
.btn--accent { background: var(--accent); color: var(--white); padding: 13px 26px; font-size: 15px; }
.btn--sm { background: var(--ink); color: var(--white); padding: 9px 18px; font-size: 13px; font-weight: 600; }
.btn--ghost { background: none; border: none; color: var(--g500); font-size: 14px; font-weight: 500; padding: 0; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; font-family: var(--font); cursor: pointer; }
.btn--ghost::after { content: '→'; }
.btn--ghost:hover { color: var(--ink); opacity: 1; }
.btn--ghost-inv { background: none; border: none; color: rgba(255,255,255,.45); font-size: 14px; font-weight: 500; padding: 0; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; font-family: var(--font); cursor: pointer; text-decoration: none; }
.btn--ghost-inv::after { content: '→'; }
.btn--ghost-inv:hover { color: rgba(255,255,255,.9); opacity: 1; }
.btn--contact { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--rlg); border: 1px solid var(--g200); background: var(--white); font-size: 15px; font-weight: 500; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.btn--contact:hover { border-color: var(--ink); box-shadow: 0 4px 16px rgba(0,0,0,.06); opacity: 1; }
.btn--contact svg { flex-shrink: 0; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--g200); }
.header__inner { display: flex; align-items: center; height: 62px; gap: 28px; }
.brand { font-size: 15px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); flex-shrink: 0; }

.nav { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.nav__link { font-size: 13px; font-weight: 500; color: var(--g500); padding: 6px 10px; border-radius: var(--r); transition: color .15s, background .15s; white-space: nowrap; background: none; border: none; }
.nav__link:hover, .nav__link.active { color: var(--ink); background: var(--g100); }
.nav__dropdown { position: relative; }
.nav__drop-btn { background: none; border: none; cursor: pointer; }
.nav__arrow { font-size: 10px; opacity: .5; }
.nav__menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--g200); border-radius: var(--rlg); box-shadow: 0 8px 40px rgba(0,0,0,.12); padding: 6px; min-width: 210px; z-index: 9999; }
.nav__dropdown.open .nav__menu { display: block; }
.nav__menu-item { display: block; padding: 9px 12px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--g700); transition: background .15s, color .15s; }
.nav__menu-item:hover { background: var(--g100); color: var(--ink); }

.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--g200); background: none; margin-left: auto; flex-shrink: 0; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
.mobile-nav { display: none; border-top: 1px solid var(--g200); padding: 12px 0; background: var(--white); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 24px; font-size: 15px; font-weight: 500; color: var(--g700); }
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .btn--sm { margin: 8px 24px 4px; display: block; text-align: center; }

/* TAGS */
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; background: var(--g100); color: var(--g500); }
.tag--vk     { background: #e8f0fe; color: #1a56db; }
.tag--direct { background: #fff3e0; color: #c05600; }
.tag--ybiz   { background: #e6f9f0; color: #0d7a4a; }
.tag--both   { background: #f3e8ff; color: #7c3aed; }
.tag--web    { background: #f0fdf4; color: #166534; }
.tag--bot    { background: #fdf4ff; color: #7e22ce; }

.section__head { margin-bottom: 48px; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }

/* ARCH */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--g200); border-radius: var(--rxl); overflow: hidden; border: 1px solid var(--g200); }
.arch__core { grid-column: 1 / -1; background: var(--ink); padding: 32px 36px; }
.arch__core-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(120,160,255,.8); margin-bottom: 20px; }
.arch__core-items { display: flex; gap: 12px; flex-wrap: wrap; }
.arch__core-item { padding: 10px 20px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.12); font-size: 15px; font-weight: 700; color: var(--white); background: rgba(255,255,255,.06); }
.arch__tools { background: var(--white); padding: 28px 32px; }
.arch__tools-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.arch__tools-items { display: flex; flex-wrap: wrap; gap: 8px; }
.arch__tool { padding: 7px 14px; border-radius: var(--r); border: 1px solid var(--g200); font-size: 13px; font-weight: 500; color: var(--g700); background: var(--g50); }

/* SERVICE GRID */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--g200); border-radius: var(--rxl); overflow: hidden; border: 1px solid var(--g200); }
.svc-card { background: var(--white); padding: 28px; display: flex; flex-direction: column; transition: background .15s; }
.svc-card:hover { background: var(--g50); }
.svc-card__icon { width: 40px; height: 40px; border-radius: var(--r); background: var(--adim); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.svc-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.015em; }
.svc-card__text { font-size: 14px; color: var(--g500); line-height: 1.65; flex: 1; }
.svc-card__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--accent); transition: gap .15s; }
.svc-card:hover .svc-card__link { gap: 8px; }

/* THESES */
.tezis-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--g200); }
.tezis { padding: 28px 32px; border-right: 1px solid var(--g200); }
.tezis:last-child { border-right: none; }
.tezis__num { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.tezis__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tezis__text { font-size: 13px; color: var(--g500); line-height: 1.65; }

/* CASES PREVIEW */
.cases-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-preview { padding: 24px; border: 1px solid var(--g200); border-radius: var(--rlg); background: var(--white); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; cursor: pointer; }
.case-preview:hover { border-color: var(--ink); box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.case-preview__tags { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.case-preview__title { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.case-preview__niche { font-size: 13px; color: var(--g500); margin-bottom: 14px; }
.case-preview__kpis { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.kpi-mini__val { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi-mini__label { font-size: 11px; color: var(--g500); margin-top: 2px; }
.case-preview__more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; }

/* CASES LIST */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--g200); background: var(--white); color: var(--g500); cursor: pointer; font-family: var(--font); transition: all .15s; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cases-count { font-size: 13px; color: var(--g500); }
.case-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--g200); cursor: pointer; transition: background .12s; }
.case-row:first-child { border-top: 1px solid var(--g200); }
.case-row:hover { background: var(--g50); margin: 0 -20px; padding: 24px 20px; }
.case-row__tags { display: flex; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.case-row__title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; line-height: 1.3; }
.case-row__niche { font-size: 13px; color: var(--g500); }
.case-row__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.case-row__kpis { display: flex; gap: 28px; }
.r-kpi__val { font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-align: right; }
.r-kpi__label { font-size: 11px; color: var(--g500); text-align: right; margin-top: 2px; }
.case-row__arrow { font-size: 16px; color: var(--g300); transition: color .15s, transform .15s; }
.case-row:hover .case-row__arrow { color: var(--ink); transform: translateX(4px); }

/* ABOUT */
.about-short { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.about-short__photo { width: 100%; aspect-ratio: 3/4; border-radius: var(--rlg); overflow: hidden; background: var(--g100); }
.about-short__photo img { width: 100%; height: 100%; object-fit: cover; }

/* NUMS ROW */
.nums-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); width: 100%; }
.num-item { padding: 28px 24px; border-right: 1px solid var(--g200); min-width: 0; }
.num-item:last-child { border-right: none; }
.num-item__val { font-size: 48px; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 6px; display: block; }
.num-item__label { font-size: 13px; color: var(--g500); }

/* CTA BAND */
.cta-band { background: var(--ink); padding: 80px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__h { font-size: clamp(26px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; color: var(--white); max-width: 560px; }
.cta-band__h em { font-style: normal; color: rgba(255,255,255,.38); }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--cta { background: var(--white); color: var(--ink); font-size: 15px; font-weight: 700; padding: 14px 28px; border-radius: var(--r); display: inline-block; transition: opacity .15s; font-family: var(--font); }
.btn--cta:hover { opacity: .9; }
.btn--cta-outline { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); font-size: 15px; font-weight: 500; padding: 13px 28px; border-radius: var(--r); display: inline-block; transition: all .15s; font-family: var(--font); }
.btn--cta-outline:hover { color: var(--white); border-color: rgba(255,255,255,.5); }

/* CONTACT */
.contact-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin: 32px 0; }

/* SERVICE PAGE */
.page-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--g200); }
.page-kpi { padding: 28px; border: 1px solid var(--g200); border-radius: var(--rxl); background: var(--g50); display: flex; flex-direction: column; gap: 24px; }
.page-kpi__val { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.page-kpi__label { font-size: 13px; color: var(--g500); margin-top: 4px; }

.theses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.thesis { padding: 24px 28px; border-top: 1px solid var(--g200); border-right: 1px solid var(--g200); display: flex; align-items: flex-start; gap: 14px; }
.thesis:nth-child(2n) { border-right: none; }
.thesis__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
.thesis__text { font-size: 15px; font-weight: 600; line-height: 1.5; }

/* FAQ */
.faq-list {}
.faq-item { border-top: 1px solid var(--g200); }
.faq-item:last-child { border-bottom: 1px solid var(--g200); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: var(--font); }
.faq-q__icon { font-size: 20px; color: var(--g300); transition: transform .2s, color .2s; flex-shrink: 0; }
.faq-item.open .faq-q__icon { transform: rotate(45deg); color: var(--ink); }
.faq-a { display: none; padding: 0 0 20px; font-size: 15px; color: var(--g700); line-height: 1.7; max-width: 680px; }
.faq-item.open .faq-a { display: block; }

/* TRUST TABLE */
.trust-table { width: 100%; border-collapse: collapse; }
.trust-table tr { border-top: 1px solid var(--g200); }
.trust-table tr:last-child { border-bottom: 1px solid var(--g200); }
.trust-table td { padding: 16px 0; vertical-align: top; }
.trust-table td:first-child { font-size: 13px; font-weight: 600; color: var(--g400); width: 180px; padding-right: 24px; }
.trust-table td:last-child { font-size: 15px; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.52); align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--rxl); width: 100%; max-width: 700px; box-shadow: 0 24px 80px rgba(0,0,0,.2); position: relative; animation: mIn .18s ease; }
@keyframes mIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 20px; color: var(--g400); cursor: pointer; padding: 4px; transition: color .15s; }
.modal-close:hover { color: var(--ink); }
.modal-header { padding: 28px 28px 20px; border-bottom: 1px solid var(--g200); }
.modal-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.modal-title { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 4px; }
.modal-niche { font-size: 14px; color: var(--g500); }
.modal-kpis { display: flex; margin: 0 28px; border-bottom: 1px solid var(--g200); }
.modal-kpi { padding: 16px 20px; flex: 1; border-right: 1px solid var(--g200); }
.modal-kpi:last-child { border-right: none; }
.modal-kpi__val { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 2px; }
.modal-kpi__label { font-size: 12px; color: var(--g500); }
.modal-body { padding: 20px 28px 28px; display: grid; gap: 20px; }
.modal-section-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g400); margin-bottom: 8px; }
.modal-text { font-size: 14px; color: var(--g700); line-height: 1.7; }
.modal-steps { list-style: none; display: grid; gap: 8px; }
.modal-steps li { font-size: 14px; color: var(--g700); display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.modal-steps li::before { content: attr(data-n); font-size: 11px; font-weight: 700; color: var(--g300); flex-shrink: 0; padding-top: 2px; width: 14px; }
.modal-insight { padding: 16px; border-radius: var(--r); background: var(--adim); font-size: 14px; color: var(--accent); line-height: 1.65; font-style: italic; }
.modal-gallery a { display: block; border-radius: var(--r); overflow: hidden; }
.modal-gallery img { width: 100%; height: 160px; object-fit: cover; }
.modal-cta { padding: 0 28px 28px; display: flex; gap: 12px; align-items: center; }
.modal-cta__close { font-size: 14px; color: var(--g500); background: none; border: none; cursor: pointer; font-family: var(--font); transition: color .15s; }
.modal-cta__close:hover { color: var(--ink); }

/* FOOTER */
.footer { border-top: 1px solid var(--g200); padding: 56px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer__name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.footer__tagline { font-size: 13px; color: var(--g500); line-height: 1.65; max-width: 260px; }
.footer__nav { display: flex; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g400); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--g500); transition: color .15s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--g200); font-size: 13px; color: var(--g400); flex-wrap: wrap; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .about-short { grid-template-columns: 1fr; }
  .about-short__photo { max-width: 300px; aspect-ratio: 1/1; }
  .contact-block { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav { flex-wrap: wrap; gap: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-preview { grid-template-columns: repeat(2, 1fr); }
  .nums-row { grid-template-columns: repeat(2, 1fr); }
  .num-item:nth-child(2) { border-right: none; }
  .num-item:nth-child(1), .num-item:nth-child(2) { border-bottom: 1px solid var(--g200); }
  .tezis-row { grid-template-columns: 1fr; }
  .tezis { border-right: none; border-bottom: 1px solid var(--g200); }
  .tezis:last-child { border-bottom: none; }
  .theses { grid-template-columns: 1fr; }
  .thesis { border-right: none !important; }
  .arch { grid-template-columns: 1fr; }
  .nav { display: none; }
  .btn--sm.desk { display: none; }
  .burger { display: flex; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-preview { grid-template-columns: 1fr; }
  .nums-row { grid-template-columns: repeat(2, 1fr); }
  .modal-kpis { flex-wrap: wrap; }
  .modal-kpi { flex: 0 0 50%; }
  .modal-kpi:nth-child(2) { border-right: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}



/* =========================================================
   PAGE-SPECIFIC / CURRENT HOMEPAGE SYSTEM
   ========================================================= */

/* HERO */
.hero{
  padding:72px 0 56px;
  border-bottom:1px solid var(--g200);
  background:var(--white);
}
.hero__inner{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(360px, .9fr);
  gap:56px;
  align-items:start;
}
.hero__content{
  max-width:640px;
  padding-top:8px;
}
.hero__label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--g500);
  margin-bottom:18px;
}
.hero__label::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
  flex-shrink:0;
}
.hero__h1{
  font-size:clamp(46px,5.2vw,78px);
  font-weight:800;
  letter-spacing:-.055em;
  line-height:.98;
  margin-bottom:18px;
  max-width:700px;
}
.hero__h2{
  font-size:18px;
  color:var(--g500);
  line-height:1.58;
  margin-bottom:10px;
  max-width:560px;
}
.hero__text{
  font-size:15px;
  color:var(--g700);
  line-height:1.72;
  max-width:540px;
  margin-bottom:26px;
}
.hero__btns{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.hero__note{
  font-size:13px;
  color:var(--g500);
  max-width:520px;
}
.hero__diagram{
  border:1px solid var(--g200);
  border-radius:var(--rxl);
  background:var(--ink);
  padding:28px;
  min-height:360px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:0 8px 30px rgba(0,0,0,.06);
}
.hero__diag-block + .hero__diag-block{ margin-top:18px; }
.hero__diag-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.35);
  margin-bottom:12px;
}
.hero__diag-core a{
  flex:1;
  padding:16px 14px;
  border-radius:var(--r);
  background:#161616;
  color:#fff;
  font-size:15px;
  font-weight:700;
  text-align:center;
  display:block;
}
.hero__diag-sep{
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.24);
  margin:16px 0 12px;
}
.hero__diag-tools{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.hero__diag-tool{
  padding:7px 12px;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.12);
  font-size:12px;
  color:rgba(255,255,255,.68);
  background:rgba(255,255,255,.04);
}

/* Numbers */
.nums-row{
  display:grid !important;
  grid-template-columns:repeat(4, 1fr);
  width:100%;
  border-top:1px solid var(--g200);
  border-bottom:1px solid var(--g200);
}
.num-item{
  padding:28px 24px;
  border-right:1px solid var(--g200);
  min-width:0;
}
.num-item:last-child{ border-right:none; }
.num-item__val{
  font-size:48px;
  font-weight:800;
  letter-spacing:-.05em;
  line-height:1;
  margin-bottom:6px;
}
.num-item__label{
  font-size:13px;
  color:var(--g500);
}

/* Better dark approach block helpers */
.tezis-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:rgba(255,255,255,.08);
  border-radius:var(--rxl);
  overflow:hidden;
}
.tezis-3__item{
  background:rgba(255,255,255,.03);
  padding:24px 24px 26px;
}
.tezis-3__icon{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.52);
  margin-bottom:14px;
  font-size:14px;
}
.tezis-3__text{
  font-size:15px;
  line-height:1.55;
}

/* Featured cases from current index */
.f-main{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--g200);
  border-radius:var(--rxl);
  overflow:hidden;
  margin-bottom:2px;
  cursor:pointer;
  transition:border-color .18s, box-shadow .18s;
}
.f-main:hover{
  border-color:var(--ink);
  box-shadow:0 8px 30px rgba(0,0,0,.05);
}
.f-main__img{
  background:var(--ink-2);
  min-height:320px;
  position:relative;
  overflow:hidden;
}
.f-main__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.88;
  transition:transform .35s ease, opacity .25s ease;
}
.f-main:hover .f-main__img img{
  transform:scale(1.03);
  opacity:1;
}
.f-main__tag{ position:absolute; top:16px; left:16px; }
.f-main__body{
  background:var(--ink);
  color:#fff;
  padding:34px 34px 30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.f-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(120,160,255,.8);
  margin-bottom:10px;
}
.f-title{
  font-size:21px;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.28;
  margin-bottom:8px;
}
.f-niche{
  font-size:13px;
  color:rgba(255,255,255,.34);
  margin-bottom:22px;
}
.f-kpis{
  display:flex;
  gap:24px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.f-kpi__val{
  font-size:28px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.04em;
}
.f-kpi__label{
  font-size:11px;
  color:rgba(255,255,255,.35);
  margin-top:3px;
}
.f-insight{
  font-size:14px;
  color:rgba(255,255,255,.46);
  line-height:1.65;
  font-style:italic;
  margin-bottom:22px;
}
.f-open{
  align-self:flex-start;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.7);
  font-size:13px;
  font-weight:600;
  padding:10px 16px;
  border-radius:var(--r);
  transition:all .18s;
}
.f-main:hover .f-open{
  background:rgba(255,255,255,.13);
  border-color:rgba(255,255,255,.22);
  color:#fff;
}
.f-small-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
}
.f-small{
  border:1px solid var(--g200);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  cursor:pointer;
  transition:border-color .18s, box-shadow .18s;
}
.f-small:first-child{ border-radius:0 0 0 var(--rxl); }
.f-small:last-child{ border-radius:0 0 var(--rxl) 0; }
.f-small:hover{
  border-color:var(--ink);
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  z-index:1;
}
.f-small__img{
  height:160px;
  background:var(--g100);
  overflow:hidden;
}
.f-small__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.f-small:hover .f-small__img img{ transform:scale(1.04); }
.f-small__body{
  padding:20px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.f-small__label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:6px;
}
.f-small__num{
  font-size:28px;
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1;
  margin-bottom:2px;
}
.f-small__num-label{
  font-size:11px;
  color:var(--g500);
  margin-bottom:10px;
}
.f-small__title{
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.015em;
  margin-bottom:6px;
}
.f-small__insight{
  font-size:13px;
  color:var(--g500);
  line-height:1.55;
  font-style:italic;
  flex:1;
}
.f-small__open{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:14px;
  font-size:13px;
  font-weight:600;
  color:var(--g300);
  transition:color .18s, gap .18s;
}
.f-small:hover .f-small__open{ color:var(--ink); gap:8px; }

/* about block used by current index */
.about-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:64px;
  align-items:start;
}
.about-photo{
  width:100%;
  aspect-ratio:3/4;
  border-radius:var(--rxl);
  overflow:hidden;
  background:var(--g100);
}
.about-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top;
}

/* make dropdown closer to screenshot */
.nav__menu{
  border-radius:var(--rxl);
  box-shadow:0 12px 36px rgba(0,0,0,.10);
  padding:10px;
  min-width:248px;
}
.nav__menu-item{
  padding:11px 14px;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
}

/* Responsive polish */
@media (max-width: 1100px){
  .hero__inner{
    grid-template-columns:1fr;
    gap:28px;
  }
  .hero__content{
    max-width:none;
  }
  .hero__diagram{
    min-height:auto;
  }
}
@media (max-width: 960px){
  .about-grid{
    grid-template-columns:1fr;
  }
  .about-photo{
    max-width:300px;
    aspect-ratio:1/1;
  }
  .tezis-3{
    grid-template-columns:1fr;
  }
  .f-main{
    grid-template-columns:1fr;
  }
  .f-main__img{
    min-height:220px;
  }
}
@media (max-width: 640px){
  .hero{
    padding:42px 0 36px;
  }
  .hero__h1{
    font-size:40px;
    line-height:1.02;
  }
  .hero__h2{
    font-size:16px;
  }
  .hero__btns{
    gap:10px;
  }
  .hero__btns .btn{
    width:100%;
  }
  .nums-row{
    grid-template-columns:repeat(2,1fr);
  }
  .num-item:nth-child(2){
    border-right:none;
  }
  .num-item:nth-child(1),
  .num-item:nth-child(2){
    border-bottom:1px solid var(--g200);
  }
  .f-small-grid{
    grid-template-columns:1fr;
  }
  .f-small:first-child{
    border-radius:0;
  }
  .f-small:last-child{
    border-radius:0 0 var(--rxl) var(--rxl);
  }
}

.case-gallery {
  display: grid;
  gap: 14px;
}

.case-gallery__main {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--g100);
  border: 1px solid var(--g200);
}

.case-gallery__main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
}

.case-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.case-gallery__thumbs::-webkit-scrollbar {
  height: 8px;
}

.case-gallery__thumbs::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 999px;
}

.case-gallery__thumb {
  padding: 0;
  border: 1px solid var(--g200);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  flex: 0 0 140px;
  transition: border-color .2s, transform .2s;
}

.case-gallery__thumb:hover {
  border-color: var(--g400);
  transform: translateY(-1px);
}

.case-gallery__thumb.is-active {
  border-color: var(--ink);
}

.case-gallery__thumb img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .case-gallery__main img {
    max-height: 360px;
  }

  .case-gallery__thumb {
    flex-basis: 110px;
  }

  .case-gallery__thumb img {
    height: 72px;
  }
}