/* MB Club — site styles */

:root {
  --bg: #0a0c10;
  --bg-alt: #0d1015;
  --surface: #12161c;
  --surface-2: #181d25;
  --surface-3: #202733;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef1f6;
  --text-2: #c4cbd6;
  --muted: #8b96a6;
  --accent: #3b8cff;
  --accent-2: #7cb8ff;
  --accent-soft: rgba(59, 140, 255, 0.12);
  --accent-glow: rgba(59, 140, 255, 0.35);
  --silver: linear-gradient(180deg, #ffffff 0%, #b5bfcb 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- type helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section-lead { color: var(--text-2); font-size: 1.05rem; max-width: 62ch; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 60ch; }
.lead-2 { color: var(--muted); max-width: 64ch; }
.grad {
  background: linear-gradient(95deg, #ffffff 0%, #b9d9ff 45%, #3b8cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px -8px var(--accent-glow); }
.btn-primary:hover { background: #529aff; box-shadow: 0 14px 34px -8px var(--accent-glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-ghost .icon { transition: transform 0.2s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 700; font-size: 0.92rem; }
.link-arrow .icon { transition: transform 0.25s var(--ease); }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { background: rgba(10, 12, 16, 0.88); border-bottom-color: var(--line); }
.site-header.is-open { background: var(--bg); border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text small { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: 0.93rem; transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch a { padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); transition: color 0.2s, background 0.2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--text); color: var(--bg); }
.lang-switch-lg a { padding: 8px 16px; font-size: 0.9rem; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.site-header.is-open .nav-toggle-open { display: none; }
.site-header.is-open .nav-toggle-close { display: inline-flex; }

.mobile-nav { border-top: 1px solid var(--line); height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--bg); }
.mobile-nav .lang-switch { justify-self: start; }
.mobile-nav[hidden] { display: none; }
.mobile-nav .container { padding-block: 16px 28px; display: grid; gap: 20px; }
.mobile-links { list-style: none; display: grid; }
.mobile-links a { display: block; padding: 14px 4px; font-size: 1.25rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-links a.is-active { color: var(--accent-2); }
.mobile-contacts { display: grid; gap: 10px; }
.mobile-phone { display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.mobile-phone small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.mobile-phone span { font-size: 1.1rem; font-weight: 700; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .header-actions .lang-switch { display: none; }
  .header-call span { display: none; }
  .header-call { width: 44px; height: 44px; padding: 0; }
  .header-call .icon { width: 20px; height: 20px; }
}
@media (max-width: 400px) { .brand-text small { display: none; } }

/* ---------- hero ---------- */

.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 78% 38%, rgba(59, 140, 255, 0.2), transparent 62%),
    radial-gradient(45% 45% at 8% 0%, rgba(255, 255, 255, 0.07), transparent 70%),
    var(--bg);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 20%, transparent 75%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: auto 0 0; height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg)); z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: 'copy visual' 'copy card';
  align-items: center; gap: 28px 56px;
  min-height: min(94vh, 880px);
  padding-top: calc(var(--header-h) + 56px); padding-bottom: 72px;
}
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero h1 .grad { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 32px; }
.btn-phone { padding: 11px 28px 11px 22px; gap: 14px; }
.btn-phone .icon { width: 22px; height: 22px; }
.btn-phone-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-phone-text small { font-size: 0.74rem; font-weight: 600; opacity: 0.85; }
.btn-phone-text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.01em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dt { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.hero-facts dd { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; font-weight: 600; }

.hero-visual { grid-area: visual; position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; align-self: end; }
.hero-mark {
  position: absolute; inset: 11%;
  background: linear-gradient(160deg, #ffffff 0%, #dfe6ef 45%, #9fb2c8 100%);
  -webkit-mask: url('/img/logo.svg') center / contain no-repeat; mask: url('/img/logo.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 28px rgba(59, 140, 255, 0.35));
}
.hero-visual::before {
  content: ''; position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 140, 255, 0.55), transparent 70%); filter: blur(30px);
}

.hero-card {
  grid-area: card; justify-self: center; width: 100%; max-width: 440px;
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: rgba(24, 29, 37, 0.7); border: 1px solid var(--line-strong); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.hero-card:hover { border-color: rgba(59, 140, 255, 0.6); transform: translateY(-2px); }
.hero-card > .icon { color: var(--accent-2); margin-left: auto; }
.hero-card strong { display: block; font-size: 1rem; }
.hero-card small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.45; margin-top: 2px; }
.hero-card-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); }
.hero-card-icon .icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
  /* phones & tablets: the logo becomes a centred emblem above the headline */
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: 'visual' 'copy' 'card'; min-height: 0; gap: 28px; padding-top: calc(var(--header-h) + 28px); text-align: center; }
  .hero-visual { width: min(58vw, 300px); align-self: center; }
  .hero-mark { inset: 2%; }
  .hero-visual::before { inset: 30%; filter: blur(26px); }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-facts { justify-content: center; }
  .hero-facts div { align-items: center; }
  .hero-card { justify-self: center; text-align: left; }
}
@media (max-width: 560px) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
  .hero-facts dd { font-size: 0.78rem; line-height: 1.35; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- page hero ---------- */

.page-hero-inner { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; margin-bottom: 20px; max-width: 20ch; }
.page-hero .hero-actions { margin-top: 24px; }
.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center .lead { margin-inline: auto; }
.page-hero-center .hero-actions { justify-content: center; }
.big-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; margin: 0 0 8px; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.05em; }
.meta-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.9rem; margin: 8px 0 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px 56px; min-height: 230px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
  overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: rgba(59, 140, 255, 0.45); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { font-size: 1.04rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.feature-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.feature-arrow { position: absolute; left: 22px; bottom: 20px; color: var(--muted); transition: color 0.25s, transform 0.25s var(--ease); }
.feature-card:hover .feature-arrow { color: var(--accent-2); transform: translateX(4px); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(59, 140, 255, 0.18); flex-shrink: 0; }
.feature-icon .icon { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; padding: 18px 20px; min-height: 0; align-items: center; }
  .feature-card .feature-icon { grid-row: span 2; }
  .feature-card p { grid-column: 2; }
  .feature-arrow { position: static; grid-row: 1 / span 2; grid-column: 3; }
}
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; gap: 12px; } }

/* catalogue */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.aside-actions { margin-top: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-aside { position: static; } }

.catalog { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); border-radius: 0; transition: background 0.3s; }
.svc-head { display: flex; align-items: center; gap: 14px; padding: 18px 10px; list-style: none; cursor: default; }
summary.svc-head { cursor: pointer; }
summary.svc-head::-webkit-details-marker { display: none; }
.svc-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-2); transition: background 0.25s, color 0.25s; }
.svc-title { font-weight: 700; font-size: 1.04rem; line-height: 1.35; }
.svc-count { margin-left: auto; min-width: 28px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.78rem; font-weight: 700; text-align: center; }
.svc-chevron { color: var(--muted); transition: transform 0.3s var(--ease); }
.svc[open] .svc-chevron { transform: rotate(180deg); color: var(--accent-2); }
.svc[open] .svc-icon, summary.svc-head:hover .svc-icon { background: var(--accent); color: #fff; border-color: transparent; }
.svc-body { padding: 0 10px 22px 64px; }
.svc-short { margin: -10px 0 0; padding: 0 10px 18px 64px; color: var(--muted); font-size: 0.92rem; }
.svc.is-highlight { background: var(--accent-soft); }
.svc-note { margin: 10px 0 4px; padding: 12px 16px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, 0.025); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
@media (max-width: 560px) { .svc-body, .svc-short { padding-left: 10px; } .svc-head { padding-inline: 4px; } }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list > li { position: relative; padding-left: 28px; color: var(--text-2); }
.check-list > li::before {
  content: ''; position: absolute; left: 0; top: 0.32em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cb8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list ul { list-style: none; display: grid; gap: 4px; margin-top: 8px; }
.check-list ul li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.check-list ul li::before { content: ''; position: absolute; left: 2px; top: 0.75em; width: 8px; height: 1.5px; background: var(--muted); }
.check-list-lg { gap: 14px; }
.check-list-lg > li { font-size: 1.02rem; }

/* quote */
.quote { position: relative; margin: 0 auto; max-width: 920px; text-align: center; }
.quote-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 24px; }
.quote-icon .icon { width: 26px; height: 26px; }
.quote blockquote { margin: 0 0 24px; }
.quote blockquote p { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; margin: 0; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption { color: var(--muted); font-size: 1.02rem; max-width: 72ch; margin-inline: auto; }

/* promo duo */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promo-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: clamp(28px, 4vw, 44px); border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: radial-gradient(120% 100% at 100% 0%, rgba(59, 140, 255, 0.16), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.promo-card-alt { background: radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.promo-card:hover { border-color: rgba(59, 140, 255, 0.45); transform: translateY(-3px); }
.promo-card .feature-icon { margin-bottom: 18px; }
.promo-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.promo-card p:not(.eyebrow) { color: var(--text-2); }
.promo-card .eyebrow { margin-bottom: 8px; }
.promo-card .link-arrow { margin-top: auto; padding-top: 8px; }
.promo-card:hover .link-arrow .icon { transform: translateX(4px); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
.project-card:hover { border-color: rgba(59, 140, 255, 0.45); transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.55)); }
.project-num { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(10, 12, 16, 0.7); backdrop-filter: blur(6px); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; }
.project-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.project-body h2, .project-body h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.project-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.project-body .link-arrow { margin-top: auto; padding-top: 8px; }
.project-card:hover .link-arrow .icon { transform: translateX(4px); }

/* project story */
.story { padding-top: 0; }
.story-cover { margin-bottom: clamp(40px, 6vw, 72px); }
.story-cover .zoom { display: grid; place-items: center; padding: clamp(16px, 3vw, 32px); border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); }
.story-cover .zoom::before { content: ''; position: absolute; inset: -60px; background: var(--cover) center / cover no-repeat; filter: blur(48px) saturate(1.2); opacity: 0.4; }
.story-cover img { position: relative; border-radius: 12px; max-height: 560px; width: auto; box-shadow: var(--shadow); }
.story-body { display: grid; gap: clamp(32px, 5vw, 64px); max-width: 1040px; }
.story-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.story-block.is-flipped .story-text { order: 2; }
.story-block.story-multi, .story-block.story-text-only { grid-template-columns: 1fr; }
.story-block.story-multi .story-text { order: 0; max-width: 72ch; }
.story-text-only .story-text { max-width: 72ch; padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(90deg, var(--accent-soft), transparent); border-left: 2px solid var(--accent); }
.story-text p { margin: 0; font-size: 1.06rem; line-height: 1.75; color: var(--text-2); }
.story-step { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 10px; }
.story-media { display: grid; gap: 12px; }
.story-media.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-media.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-media.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .story-block { grid-template-columns: 1fr; }
  .story-block.is-flipped .story-text { order: 0; }
  .story-media.cols-3, .story-media.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.zoom { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; }
.story-media .zoom { padding: 8px; }
.story-media .zoom img { border-radius: 8px; transition: transform 0.5s var(--ease); }
.story-media .zoom:hover img { transform: scale(1.03); }
.zoom.is-cutout { background: #e7ebf0; }
.inline-link { color: var(--accent-2); font-weight: 700; }
.inline-link:hover { text-decoration: underline; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(48px, 7vw, 88px); }
.pager-link { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 700; transition: border-color 0.25s; }
.pager-link:hover { border-color: rgba(59, 140, 255, 0.5); }
.pager-link small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; margin-bottom: 2px; }
.pager-link .icon { color: var(--accent-2); }
.pager-next { justify-content: flex-end; text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } }

/* expertise panels */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel { padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) + 4px); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.panel-head .eyebrow { margin-bottom: 4px; }
.panel-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.prose p { color: var(--text-2); font-size: 1.03rem; line-height: 1.75; }
.panel-list { padding: 24px 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.panel-list h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.footnote { margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } }
.panel p, .panel li, .story-text p { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .panel-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .panel-list { padding: 20px 18px; }
}

/* MBK areas */
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.area-card { display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); transition: border-color 0.3s; }
.area-card:hover { border-color: rgba(59, 140, 255, 0.4); }
.area-card h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.area-card .check-list { gap: 8px; }
.area-card .check-list > li { font-size: 0.92rem; }
.area-card-plain { justify-content: flex-start; }
@media (max-width: 1100px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .area-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { padding-block: clamp(32px, 5vw, 56px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(90% 140% at 100% 0%, rgba(124, 184, 255, 0.35), transparent 60%), linear-gradient(120deg, #1d4fa8, #2f7cf0);
  box-shadow: 0 30px 70px -30px rgba(59, 140, 255, 0.6);
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: #0f2c63; box-shadow: none; }
.cta-band .btn-primary:hover { background: #e9f1ff; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.container.cta-inner { width: calc(100% - var(--gutter) * 2); max-width: var(--container); }

/* contacts */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } }
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 20px; }
@media (max-width: 480px) { .info-cards { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.info-card > .icon { width: 22px; height: 22px; color: var(--accent-2); margin-top: 2px; }
.info-label { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.info-value { display: block; font-weight: 700; line-height: 1.4; }
a.info-value:hover { color: var(--accent-2); }
.info-sub { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

.phone-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.phone-list > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.phone-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.phone-number { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s; }
.phone-number:hover { color: var(--accent-2); }
.messenger-links { display: flex; gap: 8px; width: 100%; justify-content: flex-end; }
.messenger-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 700; color: var(--text-2); transition: border-color 0.2s, color 0.2s; }
.messenger-links a:hover { border-color: var(--accent); color: var(--text); }
.messenger-links .icon { width: 15px; height: 15px; }
.phone-list.is-compact { border-top: 0; }
.phone-list.is-compact > li { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 0 12px; border: 0; }
.phone-list.is-compact .phone-label { font-size: 0.78rem; }
.phone-list.is-compact .phone-number { font-size: 1rem; font-weight: 700; }
.phone-list.is-compact .messenger-links { justify-content: flex-start; margin-top: 6px; }

.map-wrap { position: relative; min-height: 440px; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.92); }
.map-link { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.88rem; }
.map-link:hover { border-color: var(--accent); }

/* footer */
.site-footer { margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand .logo-mark { width: 64px; height: 64px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 18px 0; max-width: 38ch; }
.footer-col h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.footer-col h3 + p { margin-bottom: 22px; }
.footer-col ul { list-style: none; }
.footer-col nav ul, .footer-col > ul:not(.phone-list) { display: grid; gap: 8px; }
.footer-col a:hover { color: var(--accent-2); }
.footer-col p { color: var(--text-2); font-size: 0.95rem; }
.footer-col ul:not(.phone-list) li a { color: var(--text-2); }
.social-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; }
.social-link .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--line-strong); }
.social-link:hover { color: var(--text); }
.social-link:hover .icon { border-color: var(--accent); color: var(--accent-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 8, 11, 0.94); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.lightbox.is-visible { opacity: 1; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); image-rendering: auto; }
.lightbox img.is-cutout { background: #e7ebf0; padding: 10px; }
.lightbox figcaption { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(24, 29, 37, 0.8); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.lb-btn:hover { border-color: var(--accent); background: var(--surface-3); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
