/* Нова Дигитал, посока „Мазки“ (борд gen/r1/A1 + A2): бяло, едро черно заглавие, мазките от логото. */
:root {
  --ink: #0b0b0c;
  --text: #2a2a2e;
  --mute: #5f5f66;
  --line: #e4e4e8;
  --pink: #e5176e;
  --orange: #f47a00;
  --blue: #0b7fd6;
  --violet: #5b2aa8;
  --head: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --wrap: min(1240px, 100% - 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); color: var(--ink); letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(30px, 3.3vw, 46px); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; position: relative; z-index: 1; }
.todo { background: #fff1a8; padding: 0 5px; border-radius: 3px; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 15px 28px; border-radius: 6px; border: 1.5px solid var(--ink); font: 600 17px/1 var(--body); text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2c2c30; }
.btn.line { background: #fff; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 20px; }

/* шапка */
.top { background: #fff; position: relative; z-index: 5; }
.bar { width: min(1320px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo img { width: 104px; }
.nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 62px); font: 500 16.5px/1 var(--body); }
.nav a { text-decoration: none; color: var(--ink); padding-block: 8px; }
.nav a:not(.team):hover { color: var(--orange); }
.nav .team { border: 1.5px solid var(--ink); border-radius: 6px; padding: 13px 24px; margin-left: clamp(0px, 1.5vw, 24px); transition: background 0.15s ease, color 0.15s ease; }
.nav .team:hover { background: var(--ink); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

/* начало */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .say { padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 5vw, 64px) clamp(0px, 4.6vw, 70px); max-width: 880px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 5.1vw, 76px); line-height: 1.03; letter-spacing: -0.03em; }
.hero .lead { margin: 22px 0 34px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink); }
.hero .strokes { position: absolute; right: 0; bottom: -1px; width: min(46%, 700px); }

/* услуги */
.services { padding-block: clamp(48px, 5vw, 68px) clamp(40px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.services h2, .steps h2 { text-align: center; margin-bottom: clamp(28px, 3vw, 40px); }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 2.6vw, 40px); align-items: start; }
.svc img { width: 100%; aspect-ratio: 1100 / 500; object-fit: contain; margin-bottom: 22px; }
.svc h3 { font-weight: 700; font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 8px; }
.svc p { font-size: 16px; max-width: 30em; }
.svc .more { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font: 500 15.5px/1.2 var(--body); text-decoration: none; }
.svc .more svg { width: 20px; transition: transform 0.2s ease; }
.svc .more:hover svg { transform: translateX(4px); }
.c-pink .more { color: var(--pink); }
.c-orange .more { color: var(--orange); }
.c-blue .more { color: var(--blue); }
.c-violet .more { color: var(--violet); }

/* как работим */
.steps { padding-block: clamp(44px, 4.5vw, 60px) clamp(48px, 5vw, 68px); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 20px; padding-inline: clamp(14px, 2vw, 30px); }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: 1 / 3; font: 300 clamp(48px, 4.6vw, 66px) / 0.95 var(--head); color: var(--ink); letter-spacing: -0.03em; }
.steps h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; margin: 4px 0 6px; }
.steps li p { font-size: 15px; color: var(--mute); line-height: 1.5; }

/* продукт */
.product { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.product .txt { width: 50%; }
.product .txt { padding-block: clamp(44px, 5vw, 72px); }
.product .over { font: 600 clamp(19px, 1.8vw, 24px) / 1.2 var(--head); color: var(--ink); margin-bottom: 8px; }
.product h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 54px); max-width: 9em; }
.code { display: grid; grid-template-columns: 124px 1fr; gap: 24px; align-items: center; margin-top: 30px; max-width: 480px; }
.code .q svg { width: 124px; height: 124px; }
.code .addr { font: 700 20px/1.2 var(--head); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 8px; overflow-wrap: anywhere; }
.product .big { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.45; color: var(--ink); max-width: 27em; }
.product .note { margin-top: 14px; font-size: 16px; color: var(--mute); max-width: 32em; }
.product .book { position: absolute; right: 0; top: 0; width: 46%; height: 100%; max-width: none; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%); mask-image: linear-gradient(to right, transparent 0, #000 24%); }

/* фирмата */
.firm { position: relative; border-top: 1px solid var(--line); overflow: hidden; padding-block: clamp(48px, 5vw, 72px); }
.firm h2 { margin-bottom: 28px; }
.firm .wrap > div { max-width: 780px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; }
.firm .strokes { position: absolute; right: -3%; top: 50%; transform: translateY(-50%); width: min(24%, 330px); }

/* контакт */
.talk { position: relative; border-top: 1px solid var(--line); overflow: hidden; padding-block: clamp(44px, 5vw, 68px); }
.talk h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 50px); }
.talk p { margin: 14px 0 26px; max-width: 26em; }
.talk .wrap > div { max-width: 560px; }
.talk .strokes { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: min(58%, 880px); }

/* дъно */
.foot { border-top: 1px solid var(--line); padding-block: 40px 26px; font-size: 14.5px; color: var(--text); }
.foot .wrap { display: grid; grid-template-columns: 1.7fr 1.1fr 0.9fr 1fr; gap: 32px; }
.foot .about { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; max-width: 430px; }
.foot .logo img { width: 96px; }
.foot h3 { font: 700 14.5px/1.2 var(--body); letter-spacing: 0; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13.5px; color: var(--mute); }
.fine .links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* правни страници */
.doc { padding-block: 48px 88px; border-top: 1px solid var(--line); }
.doc .wrap { width: min(760px, 100% - 48px); }
.doc h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 10px; }
.doc .when { color: var(--mute); font-size: 14.5px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; letter-spacing: -0.015em; line-height: 1.2; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--blue); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); }
.scroll { overflow-x: auto; }

@media (min-width: 1101px) { .svc h3 { min-height: 2.4em; } }
@media (max-width: 1100px) and (min-width: 901px) { .four { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }

@media (max-width: 900px) {
  .burger { display: block; position: relative; z-index: 7; }
  .nav { position: fixed; inset: 0; z-index: 6; background: #fff url(img/side.webp) no-repeat right -90px bottom -40px / 300px auto; flex-direction: column; align-items: flex-start; gap: 6px; padding: 104px 24px 32px; font-size: 21px; transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; }
  .nav a { padding-block: 13px; }
  .nav .team { margin: 18px 0 0; background: var(--ink); color: #fff; font-size: 17px; padding: 15px 24px; }
  body.open { overflow: hidden; }
  body.open .nav { transform: none; visibility: visible; }
  body.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.open .burger span:nth-child(2) { opacity: 0; }
  body.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo img { width: 84px; }
  .hero .say { padding: 20px 0 0; }
  .hero .cta { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero .cta .btn { min-width: 190px; }
  .hero .strokes { position: static; width: 112%; max-width: none; margin: 8px 0 -1px -4%; }
  .four { grid-template-columns: 1fr; gap: 40px; }
  .services h2, .steps h2 { text-align: left; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { padding: 20px 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .product .txt { width: auto; }
  .product .txt { padding-bottom: 28px; }
  .product .book { position: static; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .code { grid-template-columns: 96px 1fr; gap: 18px; }
  .code .q svg { width: 96px; height: 96px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .firm .strokes { display: none; }
  .talk { padding-bottom: 0; }
  .talk .strokes { position: static; transform: none; width: 116%; max-width: none; margin: 34px 0 -6px -8%; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot .wrap { grid-template-columns: 1fr; }
  .talk .cta .btn { flex: 1 1 140px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav, .burger span, .svc .more svg { transition: none; }
}
