/* ═══════════════════════════════════════════════════════════════
   HakimovCodes — v2 design
   Idea: "a website starts in the address bar". One bold element
   (the hero address bar, echoed in browser-framed work), everything
   else quiet, left-aligned and editorial.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0F2A3A;       /* Caspian ink: text, the one dark section */
  --paper: #F5F8F9;     /* cool white page */
  --surface: #FFFFFF;   /* raised: address bar, forms */
  --teal: #157684;      /* from the logo: links, focus, address bar */
  --signal: #FF5B2E;    /* brand orange: primary actions only */
  --stone: #5B6B75;     /* secondary text */
  --line: #DCE3E7;      /* rules */
  --tint: #EAF1F3;      /* quiet band */

  --font: "Geologica", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale (classic: 14 16 18 21 24 36 48 72) */
  --t-sm: 0.875rem;
  --t-base: 1.125rem;
  --t-md: 1.3125rem;
  --t-lg: 1.5rem;
  --t-xl: clamp(1.875rem, 1.3rem + 2vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  --t-hero: clamp(2.75rem, 1.2rem + 6vw, 5.25rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 9vw, 128px);
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.v2 {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 350;
  line-height: 1.6;
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:where(.v2) :where(h1, h2, h3) { margin: 0; }
.v2 h1, .v2 h2, .v2 h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "SHRP" 100; /* sharp terminals for display text */
  color: var(--ink);
}
.v2 h2 { font-size: var(--t-2xl); }
.v2 h3 { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.01em; }
:where(.v2) p { margin: 0; }
.v2 a { color: var(--teal); text-decoration: none; }
.v2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2 img { max-width: 100%; display: block; }
:where(.v2) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }

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

.v2-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.v2-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.v2-meta { font-size: var(--t-sm); color: var(--stone); }

/* ── Buttons & links ───────────────────────────────────────── */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, transform .15s;
}
.v2 .v2-btn:hover { text-decoration: none; }
.v2-btn--signal { background: var(--signal); color: var(--ink); }
.v2 .v2-btn--signal { color: var(--ink); }
.v2-btn--signal:hover { background: #ff7650; }
.v2-btn--signal:active { transform: translateY(1px); }
.v2-btn--sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.v2-btn--block { width: 100%; }

.v2-link { font-weight: 500; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.v2 .v2-link:hover { text-decoration: none; border-bottom-width: 2.5px; }
.v2-link--quiet { color: var(--stone) !important; border-bottom-color: var(--line); }

/* ── Header ────────────────────────────────────────────────── */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(245 248 249 / 92%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.v2-header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.v2-logo { display: flex; align-items: center; font-weight: 700; color: var(--ink) !important; }
.v2-logo img { height: 56px; width: auto; }
.v2-nav { flex: 1; }
.v2-nav ul { display: flex; gap: 28px; }
.v2-nav a { color: var(--ink); font-size: 1rem; font-weight: 450; }
.v2-nav a[aria-current="page"] { color: var(--teal); }
.v2-header__end { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 2px; font-size: .875rem; }
.lang-switch__item { padding: 6px 8px; border-radius: 6px; color: var(--stone) !important; font-weight: 500; }
.lang-switch__item.is-active { color: var(--ink) !important; background: var(--tint); }

.v2-menu { display: none; position: relative; }
.v2-menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; cursor: pointer; border-radius: 8px; }
.v2-menu summary::-webkit-details-marker { display: none; }
.v2-menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.v2-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.v2-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.v2-menu__panel {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(300px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 18px 40px rgb(15 42 58 / 14%);
}
.v2-menu__panel a { display: block; padding: 12px 14px; color: var(--ink); border-radius: 6px; font-size: 1.0625rem; }
.v2-menu__panel a:hover { background: var(--tint); text-decoration: none; }

@media (max-width: 1080px) {
  .v2-nav { display: none; }
  .v2-menu { display: block; }
  .v2-header__end { margin-left: auto; }
}
@media (max-width: 560px) {
  .v2-header__end .v2-btn { display: none; }
  .v2-header__inner { gap: 12px; }
  .v2-logo img { height: 44px; }
}

/* ── Hero: the address bar ─────────────────────────────────── */
.v2-hero { padding: clamp(56px, 8vw, 112px) 0 0; overflow: hidden; }
.v2-hero__title { font-size: var(--t-hero); max-width: 15ch; letter-spacing: -0.035em; line-height: 1.02; }
.v2-hero__lede { margin-top: 32px; max-width: 58ch; font-size: var(--t-md); line-height: 1.55; color: var(--stone); }

.v2-addr {
  margin-top: 40px;
  display: flex;
  align-items: center;
  max-width: 760px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 1px 0 var(--ink), 0 22px 50px -24px rgb(15 42 58 / 45%);
  transition: border-color .15s, box-shadow .15s;
}
.v2-addr:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgb(21 118 132 / 18%), 0 22px 50px -24px rgb(15 42 58 / 45%); }
.v2-addr__scheme { font: 500 clamp(1rem, .8rem + 1vw, 1.375rem)/1 var(--mono); color: var(--stone); user-select: none; }
.v2-addr__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 10px 14px 2px;
  font: 500 clamp(1rem, .8rem + 1vw, 1.375rem)/1.2 var(--mono);
  color: var(--ink);
  caret-color: var(--signal);
}
.v2-addr__input::placeholder { color: #9AA8B0; }
.v2 .v2-addr__input:focus-visible { outline: 0; }
.v2-addr .v2-btn { min-height: 56px; }

.v2-hero__alt { margin-top: 18px; color: var(--stone); font-size: 1rem; }
.v2-hero__alt a { font-weight: 500; }

@media (max-width: 600px) {
  .v2-addr { flex-wrap: wrap; padding: 6px 6px 6px 14px; }
  .v2-addr__input { padding: 12px 6px 12px 2px; }
  .v2-addr .v2-btn { width: 100%; min-height: 50px; margin-top: 4px; }
}

/* Browser frame — the address-bar motif repeated on real work */
.v2-frame {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgb(15 42 58 / 40%);
}
.v2 .v2-frame:hover { text-decoration: none; }
.v2-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #FBFCFD;
}
.v2-frame__bar::before {
  content: "";
  width: 34px;
  height: 8px;
  flex: none;
  background:
    radial-gradient(circle 4px at 4px 4px, #E3E8EB 98%, transparent) 0 0 / 13px 8px repeat-x;
}
.v2-frame__url {
  flex: 1;
  min-width: 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--tint);
  font: 500 .75rem/1.3 var(--mono);
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.v2-strip { margin-top: clamp(56px, 7vw, 96px); padding-bottom: 8px; }
.v2-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 30vw, 420px);
  gap: 24px;
  padding: 0 var(--gutter) 40px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto;
  scrollbar-width: thin;
}
.v2-frame--strip:nth-child(even) { margin-top: 40px; }

@media (max-width: 700px) {
  .v2-strip__track { grid-auto-columns: 78vw; }
  .v2-frame--strip:nth-child(even) { margin-top: 0; }
}

/* ── Sections ──────────────────────────────────────────────── */
.v2-section { padding: var(--space) 0; }
.v2-section--line { border-top: 1px solid var(--line); }
.v2-section--tint { background: var(--tint); }

.v2-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.v2-head h2 { max-width: 18ch; }

/* Work rows */
.v2-work { display: grid; gap: clamp(56px, 7vw, 96px); }
.v2-work__row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.v2-work__row:nth-child(even) .v2-frame { order: 2; }
.v2-work__text h3 { margin-top: 8px; font-size: var(--t-xl); }
.v2-work__text h3 a { color: var(--ink); }
.v2-work__text > p:not(.v2-meta) { margin-top: 14px; color: var(--stone); max-width: 42ch; }
.v2-work__links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 820px) {
  .v2-work__row { grid-template-columns: 1fr; }
  .v2-work__row:nth-child(even) .v2-frame { order: 0; }
}

/* Services list */
.v2-services { border-top: 1px solid var(--ink); }
.v2-services li { border-bottom: 1px solid var(--line); }
.v2-services a {
  display: grid;
  grid-template-columns: minmax(200px, 4fr) 7fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  color: var(--ink);
}
.v2-services a::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--stone); transition: transform .2s, color .2s; }
.v2 .v2-services a:hover { text-decoration: none; }
.v2-services a:hover::after { color: var(--teal); transform: rotate(90deg); }
.v2-services a:hover .v2-services__name { color: var(--teal); }
.v2-services__name { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; font-variation-settings: "SHRP" 100; }
.v2-services__desc { color: var(--stone); max-width: 60ch; }

@media (max-width: 720px) {
  .v2-services a { grid-template-columns: 1fr auto; }
  .v2-services__desc { grid-column: 1 / -1; grid-row: 2; }
}

/* Process steps — a real sequence, so it is numbered */
.v2-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 28px; counter-reset: none; }
.v2-steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.v2-steps__n { display: block; font-size: var(--t-2xl); font-weight: 700; line-height: 1; color: var(--teal); font-variation-settings: "SHRP" 100; font-variant-numeric: tabular-nums; }
.v2-steps h3 { margin-top: 18px; font-size: var(--t-md); }
.v2-steps p { margin-top: 10px; font-size: 1rem; color: var(--stone); }
.v2-steps .v2-meta { margin-top: 12px; }

.v2-pay { margin-top: clamp(48px, 6vw, 80px); }
.v2-pay__title { font-weight: 600; font-size: var(--t-md); }
.v2-pay__bar { display: flex; gap: 4px; margin-top: 16px; }
.v2-pay__bar span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: 8px;
  font-size: .9375rem;
  color: var(--stone);
  min-width: 0;
}
.v2-pay__bar span:first-child { background: var(--ink); color: #C9D6DD; }
.v2-pay__bar strong { font-size: var(--t-lg); color: inherit; font-weight: 700; }
.v2-pay__bar span:first-child strong { color: #fff; }
.v2-pay__bar span:not(:first-child) strong { color: var(--ink); }

@media (max-width: 560px) {
  .v2-pay__bar { flex-direction: column; }
}

/* Plans (compact) */
.v2-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--ink); }
.v2-plan { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.v2-plan + .v2-plan { padding-left: 28px; border-left: 1px solid var(--line); }
.v2-plan h3 { font-size: var(--t-md); }
.v2-plan__price { margin-top: 14px; font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "SHRP" 100; }
.v2-plan__price span { font-size: 1rem; font-weight: 400; color: var(--stone); letter-spacing: 0; }
.v2-plan__for { margin-top: 12px; color: var(--stone); font-size: 1rem; }
.v2-plan--featured h3::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--signal); }

@media (max-width: 800px) {
  .v2-plan, .v2-plan + .v2-plan { padding: 24px 0; border-left: 0; }
}

/* ── Calculator (reuses partials/price-calculator, bare mode) ─ */
.v2 .price-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 72px);
}
.v2 .price-calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.v2 .calc-group { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.v2 .calc-group:last-child { margin-bottom: 0; }
.v2 .calc-group legend { font-weight: 600; font-size: 1.0625rem; margin-bottom: 14px; padding: 0; }
.v2 .calc-types, .v2 .calc-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v2 .calc-type { position: relative; cursor: pointer; margin: 0; }
.v2 .calc-type input, .v2 .calc-addon input { position: absolute; opacity: 0; pointer-events: none; }
.v2 .calc-type-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s; }
.v2 .calc-type-card strong { font-weight: 600; font-size: 1rem; }
.v2 .calc-type-card small { font-size: .875rem; color: var(--stone); line-height: 1.4; }
.v2 .calc-type-card em { font-style: normal; font-size: .875rem; font-weight: 600; color: var(--teal); }
.v2 .calc-type input:checked + .calc-type-card { border-color: var(--teal); background: #F1F8F9; box-shadow: inset 0 0 0 1px var(--teal); }
.v2 .calc-type input:focus-visible + .calc-type-card { outline: 3px solid var(--teal); outline-offset: 2px; }
.v2 .calc-pages-out { color: var(--teal); font-weight: 700; margin-left: 4px; }
.v2 .calc-range { width: 100%; accent-color: var(--teal); }
.v2 .calc-range-scale { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--stone); }
.v2 .calc-addon { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9375rem; line-height: 1.35; }
.v2 .calc-addon::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid #B9C5CC; border-radius: 4px; background: #fff; }
.v2 .calc-addon:has(input:checked) { border-color: var(--teal); background: #F1F8F9; }
.v2 .calc-addon:has(input:checked)::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat; }
.v2 .calc-addon:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.v2 .calc-addon-price { white-space: nowrap; font-size: .875rem; font-weight: 600; color: var(--stone); }
.v2 .calc-addon.is-included .calc-addon-price { color: var(--teal); }

.v2 .price-calc-result { position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: 14px; padding: 30px 26px; }
.v2 .calc-result-label { font-size: .9375rem; color: #A9BCC6; }
.v2 .calc-result-price { margin: 8px 0 18px; font-size: 2rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; font-variation-settings: "SHRP" 100; color: #fff; }
.v2 .calc-result-lines { padding-top: 14px; margin-bottom: 22px; border-top: 1px solid rgb(255 255 255 / 14%); }
.v2 .calc-result-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .875rem; color: #C9D6DD; }
.v2 .calc-result-lines li span:last-child { white-space: nowrap; color: #fff; }
.v2 .price-calc-result .calc-cta { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--signal); color: var(--ink); font-weight: 600; }
.v2 .price-calc-result .calc-cta:hover { background: #ff7650; text-decoration: none; }
.v2 .price-calc-result .calc-cta i { display: none; }
.v2 .calc-note { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: #93A8B3; }

@media (max-width: 980px) {
  .v2 .price-calc { grid-template-columns: 1fr; }
  .v2 .price-calc-result { position: static; }
}
@media (max-width: 560px) {
  .v2 .price-calc-form { padding: 22px 16px; }
  .v2 .calc-types, .v2 .calc-addons { grid-template-columns: 1fr; }
}

/* ── Founder ───────────────────────────────────────────────── */
.v2-founder { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.v2-founder__photo { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.v2-founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.v2-founder__photo span { font-size: clamp(4rem, 8vw, 7rem); font-weight: 700; color: var(--teal); font-variation-settings: "SHRP" 100; }
.v2-founder__text h2 { font-size: var(--t-2xl); max-width: 16ch; }
.v2-founder__text > p:not(.v2-founder__sign) { margin-top: 20px; max-width: 60ch; color: #33505F; }
.v2-founder__sign { margin-top: 28px; font-weight: 600; }
.v2-founder__sign span { display: block; font-weight: 400; color: var(--stone); font-size: 1rem; }

@media (max-width: 760px) {
  .v2-founder { grid-template-columns: 1fr; }
  .v2-founder__photo { max-width: 260px; }
}

/* ── Close: audit + contact (the one dark section) ─────────── */
.v2-close { background: var(--ink); color: #D7E2E8; padding: var(--space) 0; }
.v2-close__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.v2-close h2 { color: #fff; max-width: 14ch; }
.v2-close__intro > p { margin-top: 22px; max-width: 50ch; font-size: var(--t-md); line-height: 1.55; }
.v2-close__alt { font-size: 1rem; color: #A9BCC6; }
.v2-close a { color: #7FD0DB; }

.v2-card { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 30px; }
.v2-form { display: grid; gap: 16px; }
.v2-field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 500; }
.v2-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: #fff;
}
.v2-field input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgb(21 118 132 / 16%); }
.v2-field.has-error input { border-color: #C9372C; }
.v2-field__error { display: block; margin-top: 6px; font-size: .875rem; color: #B42318; }
.v2-done h3 { font-size: var(--t-lg); }
.v2-done p { margin-top: 10px; color: var(--stone); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 880px) {
  .v2-close__grid { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────── */
.v2-footer { background: var(--ink); color: #A9BCC6; padding: 56px 0 32px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 1rem; }
.v2-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.v2-footer__name { color: #fff; font-weight: 700; font-size: var(--t-md); }
.v2-footer__note { margin-top: 10px; max-width: 36ch; }
.v2-footer__title { color: #fff; font-weight: 600; margin-bottom: 12px; }
.v2-footer li { padding: 4px 0; }
.v2-footer a { color: #D7E2E8; }
.v2-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .875rem; }

@media (max-width: 820px) {
  .v2-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .v2-footer__grid { grid-template-columns: 1fr; }
}

/* ── Shared bits from the current site, restyled ───────────── */
.cookie-bar[hidden] { display: none; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; }
.cookie-bar__inner { max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: 0 18px 40px rgb(15 42 58 / 16%); }
.cookie-bar__text { font-size: .9375rem; color: var(--stone); }
.cookie-bar__actions { display: flex; gap: 8px; }
.cookie-bar__btn { min-height: 40px; padding: 0 16px; border-radius: 8px; font: 600 .9375rem var(--font); cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.cookie-bar__btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ═══ Inner pages ═══════════════════════════════════════════ */

/* Page heading */
.v2-pagehead { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.v2-pagehead h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch; }
.v2-pagehead .v2-meta { margin-bottom: 14px; }
.v2-pagehead__lede { margin-top: 24px; max-width: 60ch; font-size: var(--t-md); line-height: 1.55; color: var(--stone); }
.v2-pagehead__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.v2-crumbs { display: flex; gap: 8px; margin-bottom: 20px; font-size: .9375rem; }
.v2-crumbs span { color: var(--line); }

.v2-section--flush { padding-top: 0; }
.v2-narrow { max-width: calc(760px + 2 * var(--gutter)); }

.v2-head__note { flex-basis: 100%; max-width: 60ch; color: var(--stone); }
.v2-head--stack { flex-direction: column; align-items: flex-start; }

/* Two-column text + aside */
.v2-split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.v2-split--faq { grid-template-columns: 4fr 7fr; }
@media (max-width: 860px) { .v2-split, .v2-split--faq { grid-template-columns: 1fr; } }

.v2-prose h2 { font-size: var(--t-xl); margin-bottom: 20px; }
.v2-prose p { max-width: 64ch; color: #33505F; }
.v2-prose p + p { margin-top: 18px; }
.v2-prose--wide p { font-size: var(--t-md); line-height: 1.6; }

/* About stats */
.v2-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.v2-stats > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column-reverse; }
.v2-stats > div:nth-child(odd) { padding-right: 20px; }
.v2-stats > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.v2-stats dd { margin: 0; font-size: var(--t-2xl); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "SHRP" 100; }
.v2-stats dt { margin-top: 8px; color: var(--stone); font-size: 1rem; }

/* Technologies */
.v2-techs { border-top: 1px solid var(--ink); }
.v2-techs__row { display: grid; grid-template-columns: minmax(180px, 3fr) 8fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.v2-techs__row h3 { font-size: var(--t-base); font-weight: 650; }
.v2-techs__row p { color: var(--stone); }
@media (max-width: 640px) { .v2-techs__row { grid-template-columns: 1fr; gap: 6px; } }

/* Portfolio grid */
.v2-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.v2-filters .filter { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 500 .9375rem var(--font); cursor: pointer; }
.v2-filters .filter:hover { border-color: var(--ink); }
.v2-filters .filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.v2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.v2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .v2-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .v2-grid, .v2-grid--3 { grid-template-columns: 1fr; } }
.v2-tile.is-hidden { display: none; }
.v2-tile .v2-meta { margin-top: 18px; }
.v2-tile__title { margin-top: 6px; font-size: var(--t-lg) !important; letter-spacing: -0.01em; }
.v2-tile__title a { color: var(--ink); }
.v2-tile__desc { margin-top: 8px; color: var(--stone); max-width: 48ch; }
.v2-empty { padding: 40px 0; color: var(--stone); }

/* Case study */
.v2-pagehead--case { padding-bottom: 0; }
.v2-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.v2-facts dt { font-size: .875rem; color: var(--stone); }
.v2-facts dd { margin: 2px 0 0; font-weight: 500; }
.v2-facts--stack { flex-direction: column; gap: 20px; border-top: 0; padding-top: 0; margin-top: 24px; }
.v2-case__shot { margin-top: clamp(40px, 5vw, 64px); }
.v2-case__shot .v2-frame img { aspect-ratio: 16 / 9; }

.v2-cs { display: grid; gap: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.v2-cs h3 { font-size: var(--t-md); }
.v2-cs p { margin-top: 10px; color: #33505F; font-size: 1rem; }

.v2-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; margin: 0; border-top: 1px solid var(--ink); }
.v2-features > div { padding: 22px 0; border-bottom: 1px solid #CFDBE0; }
.v2-features dt { font-weight: 650; font-size: var(--t-base); }
.v2-features dd { margin: 6px 0 0; color: var(--stone); font-size: 1rem; }

.v2-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.v2-gallery img { border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 680px) { .v2-gallery { grid-template-columns: 1fr; } }

/* Services */
.v2-group + .v2-group { margin-top: clamp(56px, 7vw, 96px); }
.v2-group__head { margin-bottom: 24px; }
.v2-group__head h2 { font-size: var(--t-xl); }
.v2-group__head p { margin-top: 10px; color: var(--stone); max-width: 60ch; }
.v2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.v2-chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; color: var(--stone); background: var(--surface); }

/* Pricing */
.v2-plans--full .v2-plan { display: flex; flex-direction: column; gap: 0; }
.v2-plan__name { font-size: var(--t-md) !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-plans--full .v2-plan--featured h2::after { display: none; }
.v2-badge { padding: 4px 10px; border-radius: 999px; background: var(--signal); color: var(--ink); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.v2-checks { margin: 24px 0 !important; display: grid; gap: 10px; flex: 1; }
.v2-checks li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.45; }
.v2-checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.v2-plans--full .v2-meta { margin-bottom: 20px; }
.v2-btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.v2-btn--ghost:hover { background: var(--ink); color: #fff !important; }

/* FAQ */
.v2-faq { border-top: 1px solid var(--ink); }
.v2-faq details { border-bottom: 1px solid var(--line); }
.v2-faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--t-base); }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.v2-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--stone); transition: transform .2s; }
.v2-faq details[open] summary::after { transform: rotate(45deg); color: var(--teal); }
.v2-faq details p { padding: 0 0 24px; max-width: 64ch; color: #33505F; }
.v2-faq__more { margin-top: 32px; color: var(--stone); }

/* Contact (styles the shared contact-form partial) */
.v2-contact { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .v2-contact { grid-template-columns: 1fr; } }
.v2-contact__info h2 { font-size: var(--t-lg); }
.v2-contact__note { margin-top: 28px; color: var(--stone); }

.v2 .form-block { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 36px); }
.v2 .form-head h3 { font-size: var(--t-lg); margin-bottom: 20px; }
.v2 .fieldsets { margin-bottom: 16px; }
.v2 .fieldsets.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .v2 .fieldsets.row { grid-template-columns: 1fr; } }
.v2 .form-block label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 500; }
.v2 .form-block input[type="text"], .v2 .form-block input[type="email"], .v2 .form-block input[type="tel"], .v2 .form-block select, .v2 .form-block textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.v2 .form-block textarea { min-height: 140px; resize: vertical; }
.v2 .form-block input:focus, .v2 .form-block select:focus, .v2 .form-block textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgb(21 118 132 / 16%); }
.v2 .form-block .has-error input, .v2 .form-block .has-error textarea { border-color: #C9372C; }
.v2 .form-block .field-error { display: none; margin-top: 6px; font-size: .875rem; color: #B42318; }
.v2 .form-block .field-error.is-visible, .v2 .form-block .field-error:not(:empty) { display: block; }
.v2 .form-block .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--stone); }
.v2 .form-block .checkbox input { margin-top: 5px; accent-color: var(--teal); }
.v2 .form-block .ree-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 0; border-radius: var(--radius); background: var(--signal); color: var(--ink); font: 600 1rem var(--font); cursor: pointer; }
.v2 .form-block .ree-btn:hover { background: #ff7650; }
.v2 .form-block .ree-btn i { display: none; }
.v2 .form-block .trm { margin-top: 14px; font-size: .875rem; color: var(--stone); text-align: center; }
.v2 .form-block .trm i { display: none; }
.v2 .form-status:empty { display: none; }

/* Blog */
.v2-post { padding: 28px 0; border-bottom: 1px solid var(--line); }
.v2-post:first-child { border-top: 1px solid var(--ink); }
.v2-post__title { margin-top: 8px; font-size: var(--t-xl) !important; }
.v2-post__title a { color: var(--ink); }
.v2-post__excerpt { margin-top: 10px; color: var(--stone); max-width: 62ch; }
.v2-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.v2-article__meta { margin-top: 18px; margin-bottom: 0 !important; }
.v2-article__cover { margin-bottom: clamp(40px, 5vw, 64px); }
.v2-article__cover img { width: 100%; border-radius: 14px; }
.v2-article__body p { font-size: 1.1875rem; line-height: 1.7; }

/* Contact success modal (shared partial) */
.swal-alert { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; }
.swal-alert.is-open { display: grid; }
.swal-alert__backdrop { position: absolute; inset: 0; background: rgb(15 42 58 / 55%); }
.swal-alert__card { position: relative; max-width: 420px; width: 100%; background: var(--surface); border-radius: 14px; padding: 32px; text-align: center; }
.swal-alert__icon svg { width: 56px; height: 56px; margin: 0 auto; stroke: var(--teal); stroke-width: 3; }
.swal-alert__title { margin-top: 16px !important; font-size: var(--t-lg); }
.swal-alert__text { margin-top: 10px; color: var(--stone); }
.swal-alert button, .swal-alert .swal-alert__btn { margin-top: 20px; min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 1rem var(--font); cursor: pointer; }

/* Contact page: the page heading already says what the form head says */
.page-contact .form-head { display: none; }

/* ── Pricing offers: example project, support + installments band ── */
.v2-plan__example { margin-top: 14px; font-size: .9375rem; color: var(--stone); }
.v2-plan__example a { font-weight: 500; }
.v2-offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin: 40px 0 0; padding: 0; }
.v2-offer > div { padding: 18px 0 18px 18px; border-left: 3px solid var(--teal); }
.v2-offer dt { font-weight: 600; font-size: 1rem; }
.v2-offer dd { margin: 4px 0 0; color: var(--stone); font-size: .9375rem; line-height: 1.5; }
.v2 .calc-result-monthly { margin: -8px 0 18px; font-size: .9375rem; line-height: 1.45; color: #A9D8DF; }

/* ── Testimonials ──────────────────────────────────────────── */
.v2-quotes__title { font-size: var(--t-2xl); max-width: 18ch; }
.v2-quotes { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.v2-quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.v2-quote blockquote { margin: 0; }
.v2-quote__lead { font-size: 1.1875rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.v2-quote blockquote p + p { margin-top: 12px; color: #33505F; }
.v2-quote figcaption { display: flex; align-items: center; gap: 12px; }
.v2-quote figcaption img, .v2-quote figcaption > span[aria-hidden] { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tint); color: var(--teal); display: grid; place-items: center; font-weight: 700; }
.v2-quote__who { font-weight: 600; }
.v2-quote__who small { display: block; font-weight: 400; color: var(--stone); font-size: .9375rem; }

.v2-gallery img { height: auto; }
.v2-close__alt a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Blog rows with cover thumbnails ───────────────────────── */
.v2-post--img { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: center; }
.v2-post__img { display: block; border-radius: 12px; overflow: hidden; }
.v2-post__img img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; transition: transform .3s ease; }
.v2-post__img:hover img { transform: scale(1.03); }
.v2-article__cover img { height: auto; }
@media (max-width: 720px) {
  .v2-post--img { grid-template-columns: 1fr; }
  .v2-post__img { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .v2-post__img img { transition: none; } }

/* ── Industry landing pages ────────────────────────────────── */
.v2-industries__lede { margin-top: -12px; margin-bottom: 28px; max-width: 60ch; color: var(--stone); }
.v2-industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.v2-industries a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; transition: border-color .2s ease, transform .2s ease; }
.v2-industries a:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-2px); }
.v2-industries img { width: 36px; height: 36px; flex: none; }
.v2-industries__name { flex: 1; line-height: 1.3; }
.v2-industries__go { color: var(--teal); font-size: 1.25rem; }
.v2-chips--links a { color: inherit; }
.v2-chips--links a:hover { color: var(--teal); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .v2-industries a { transition: none; } }


/* ── 404: the address is the error ─────────────────────────── */
.v2-404 { padding: clamp(56px, 8vw, 112px) 0 var(--space); }
.v2-404__title { font-size: var(--t-2xl); max-width: 20ch; letter-spacing: -0.03em; line-height: 1.05; }

.v2-404bar { display: flex; align-items: center; max-width: 760px; margin-top: 32px; padding: 6px 6px 6px 22px; min-height: 64px; border-radius: 14px; }
.v2-404bar__url { flex: 1; min-width: 0; padding: 14px 10px 14px 2px; font: 500 clamp(1rem, .8rem + 1vw, 1.375rem)/1.3 var(--mono); overflow-wrap: anywhere; }
/* The address that failed: present, but no longer a working object. */
.v2-404bar--dead { background: transparent; border: 2px dashed #B8C5CC; color: var(--stone); }
/* The address that works: the hero bar, live. */
.v2-404bar--live { margin-top: 12px; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 1px 0 var(--ink), 0 22px 50px -24px rgb(15 42 58 / 45%); color: var(--ink) !important; transition: border-color .15s, box-shadow .15s; }
.v2-404bar--live:hover { text-decoration: none; border-color: var(--teal); }
.v2-404bar--live .v2-btn { min-height: 52px; flex: none; }

/* The broken part, marked like a spelling mistake. */
.v2-404__bad { position: relative; background: none; color: var(--ink); padding: 0; }
.v2-404__bad::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7'%3E%3Cpath d='M0 5 Q3.5 0 7 5 T14 5' fill='none' stroke='%23FF5B2E' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 14px 7px;
  animation: v2-404-squiggle .7s .35s cubic-bezier(.3, .7, .4, 1) both;
}
@keyframes v2-404-squiggle { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.v2-404__ask { margin-top: 36px; font-weight: 600; font-size: var(--t-base); }
.v2-404__lede { margin-top: 36px; max-width: 52ch; font-size: var(--t-md); line-height: 1.55; color: var(--stone); }
.v2-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 28px; }
.v2-404__contact { font-weight: 500; }

.v2-404__map { margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); }
.v2-404__map h2 { font-size: var(--t-base); font-weight: 500; color: var(--stone); }
.v2-404__map ul { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 14px 0 0; padding: 0; list-style: none; }
.v2-404__map a { font-size: var(--t-lg); font-weight: 600; color: var(--ink); }
.v2-404__map a:hover { color: var(--teal); text-decoration: none; }

@media (max-width: 600px) {
  .v2-404bar { flex-wrap: wrap; padding: 6px 6px 6px 14px; }
  .v2-404bar--live .v2-btn { width: 100%; }
  .v2-404__map ul { gap: 8px 24px; }
  .v2-404__map a { font-size: var(--t-md); }
}
@media (prefers-reduced-motion: reduce) { .v2-404__bad::after { animation: none; } .v2-404bar--live { transition: none; } }

/* ── 500: the address is right, the server failed ──────────── */
.v2-500 { min-height: calc(100vh - 73px); }
.v2-500 .v2-404bar--live { margin-top: 32px; }
.v2-500__status { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 1rem; color: var(--stone); }
.v2-500__dot { flex: none; margin-top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgb(255 91 46 / 18%); }
.v2-500__status--calm .v2-500__dot { background: var(--teal); box-shadow: 0 0 0 4px rgb(21 118 132 / 18%); }
