:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --yellow: #fff343;
  --paper: #f8f8f8;
  --body: Montserrat, Arial, sans-serif;
  --heading: Lato, Montserrat, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 16px/1.45 var(--body); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; }
p + p { margin-top: .75rem; }
button { color: inherit; font: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid #716600; outline-offset: 4px; }
.dark button:focus-visible, .header button:focus-visible { outline-color: var(--yellow); }
img { display: block; max-width: 100%; }
.wrap { width: min(1170px, calc(100% - 64px)); margin-inline: auto; }
.narrow { width: min(960px, calc(100% - 64px)); }
.dark { color: #fff; background: var(--ink); }
.soft { background: var(--paper); }
.actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.icon { width: 1.25em; height: 1.25em; object-fit: contain; flex: none; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 12px 29px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.cta span { font-size: 1.5em; line-height: .8; }
.cta.yellow { background: var(--yellow); color: #131313; }
.cta.outline { background: var(--ink); border-color: var(--yellow); color: var(--yellow); }
.cta.black { background: var(--ink); color: #fff; }
.cta:hover { filter: brightness(.91); }
.header { background: #171717; color: #fff; font-family: var(--heading); }
.header-top { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid #393939; }
.brand { display: flex; align-items: end; gap: 2px; font-size: 14px; line-height: 1; white-space: nowrap; }
.brand .icon { width: 36px; height: 29px; }
.header-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 21px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border: 1px solid #8d8d8d; border-radius: 999px; padding: 5px 15px; font-size: 13px; }
.pill:hover, .pill.current { color: var(--yellow); border-color: var(--yellow); }
.nav { min-height: 59px; display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; font-size: 14px; }
.nav button:hover, .footer button:hover { color: var(--yellow); }
.hero { min-height: 680px; display: grid; place-items: start center; position: relative; isolation: isolate; background: #090909; color: #fff; text-align: center; clip-path: polygon(0 0, 100% 0, 100% 87%, 50% 100%, 0 87%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("1-imgParticles1.png") center / cover no-repeat; transform: scaleX(-1); }
.hero-inner { padding-top: 54px; padding-bottom: 100px; }
.hero-logo { width: min(310px, 52vw); height: 119px; object-fit: contain; margin: 0 auto 14px; }
.hero-brand { display: block; margin-bottom: 24px; font-size: clamp(14px, 1.7vw, 24px); letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { font: 600 clamp(31px, 3.35vw, 50px)/1.25 var(--body); text-transform: uppercase; letter-spacing: .035em; }
.hero h1 strong { color: var(--yellow); font-weight: inherit; }
.hero p { margin-top: 29px; text-transform: uppercase; font-size: clamp(16px, 1.8vw, 26px); }
.hero .actions { gap: 23px 50px; margin-top: 43px; }
.notice { margin-top: 27px; padding: 24px 26px; border-left: 6px solid var(--yellow); background: #f4f4f4; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; }
.notice h2 { font-size: clamp(21px, 2.4vw, 31px); }
.notice p { margin-top: 6px; }
.notice .cta { min-height: 50px; flex-shrink: 0; }
.section { padding: clamp(68px, 7vw, 110px) 0; text-align: center; }
.section-title { position: relative; isolation: isolate; display: grid; align-items: center; justify-items: center; min-height: clamp(74px, 8vw, 112px); margin-bottom: 22px; }
.section-title > span { position: absolute; z-index: -1; align-self: start; inset-inline: 0; color: #e8e8e8; font-weight: 750; font-size: clamp(42px, 7vw, 102px); line-height: .9; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.section-title h2 { font-size: clamp(23px, 2.75vw, 39px); text-transform: uppercase; font-weight: 850; }
.dark .section-title > span { color: #333; }
.services { padding-top: 52px; }
.diamonds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 6.5vw, 95px) 0; margin: -28px 0 min(13vw, 175px); }
.diamond { isolation: isolate; position: relative; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 424px; aspect-ratio: 1; }
.diamond::before { content: ""; position: absolute; z-index: -1; width: 70.71%; aspect-ratio: 1; transform: rotate(45deg); background: #fff; box-shadow: 8px 14px 22px #0004, 0 0 12px #0001; transition: background .15s; }
.diamond:nth-child(3n+2) { transform: translateY(50%); }
.diamond.selected, .diamond:hover { color: #fff; }
.diamond.selected::before, .diamond:hover::before { background: #292929; }
.diamond-body { width: 62%; display: grid; justify-items: center; gap: clamp(8px, 1.35vw, 20px); font-size: clamp(11px, .98vw, 14px); line-height: 1.2; }
.diamond b { font: 750 clamp(15px, 1.55vw, 22px)/1.13 var(--heading); text-transform: uppercase; }
.detail { font-size: 13px; padding-left: 6px; border-left: 2px solid var(--yellow); font-weight: 700; text-transform: uppercase; }
.portfolio { padding-top: 28px; }
.carousel { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 12px; }
.arrow { width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 1px solid var(--yellow); font-size: 26px; }
.arrow.next { background: var(--ink); color: var(--yellow); }
.arrow:hover { filter: brightness(.88); }
.project { max-width: 700px; margin-inline: auto; }
.project img { width: 100%; height: auto; }
.portfolio .cta, .team .cta, .process .cta, .doubts .cta { margin-top: 45px; }
.features { padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; list-style: none; }
.features li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.features .icon { width: 70px; height: 70px; object-fit: contain; }
.doubts .features .icon { box-sizing: content-box; width: 34px; height: 34px; padding: 14px; border-radius: 8px; background: var(--ink); transform: rotate(45deg); margin: 13px; }
.doubts .features .icon { background: var(--yellow); }
.why, .timeline, .process { background: var(--paper) url("15-imgGroup35.svg") right center / auto 115% no-repeat; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 6vw, 92px); align-items: center; text-align: left; }
.split .section-title, .timeline .section-title { justify-items: start; margin-bottom: 9px; text-align: left; }
.split .actions { align-items: start; justify-content: flex-start; margin-top: 22px; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reasons article { padding: 22px; background: var(--ink); color: white; box-shadow: 0 6px 12px #0002; }
.reasons article:last-child { grid-column: 1 / -1; background: var(--yellow); color: var(--ink); }
.reasons h3, .team h3 { text-transform: uppercase; margin-bottom: 10px; }
.reasons p, .team p { font-size: 14px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.portrait { position: relative; width: 100%; aspect-ratio: 1; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); overflow: hidden; background: #e8e8e8; margin-bottom: 22px; }
/* Match the Figma image boxes inside the diamond masks. */
.portrait img { position: absolute; max-width: none; filter: grayscale(1); }
.portrait--alexander img { left: -1.85%; top: -3.3%; width: 117.77%; height: 163.69%; }
.portrait--stanislav img { left: 0; top: -6.6%; width: 100%; height: 139.4%; }
.portrait--svetlana img { left: -21.5%; top: -16%; width: 122%; height: auto; }
.person-social { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.social { font-size: 12px; font-weight: 700; color: #646464; }
.reviews { background: #212121; }
.review { margin: 45px auto 0; max-width: 720px; padding: 0 clamp(14px, 4vw, 45px) 38px; background: #1b1b1b; box-shadow: 0 4px 18px #0004; border-radius: 9px; }
.review img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto -30px; transform: translateY(-50%); }
.review .detail { display: inline-block; margin: 15px 0; color: var(--yellow); }
.review figcaption, .counter { color: #b2b2b2; }
.counter { margin-top: 28px; }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; min-height: 150px; align-items: center; }
.client-name { width: min(100%, 200px); aspect-ratio: 4 / 3; justify-self: center; background: url("11-imgImage2.png") no-repeat var(--logo-x, 23.07%) 76.17% / 930% 371.33%; mix-blend-mode: multiply; }
.client-name:nth-child(2) { --logo-x: 40.96%; }
.client-name:nth-child(3) { --logo-x: 58.92%; }
.client-name:nth-child(4) { --logo-x: 76.81%; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: left; padding: 0; margin: 0; list-style: none; }
.process-grid li { display: flex; flex-direction: column; align-items: start; gap: 13px; min-height: 232px; padding: 18px; background: #fff; border-radius: 8px; box-shadow: 0 8px 13px #0001; font-size: 14px; }
.step-number { display: grid; width: 48px; height: 48px; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; font-size: 28px; }
.doubts .features { margin: 30px 0; row-gap: 42px; }
.doubts .features li { flex-direction: column; max-width: 280px; justify-self: center; }
.timeline { text-align: left; }
.timeline .wrap > p { max-width: 720px; }
.timeline ol { list-style: none; padding: 0; margin: 30px 0 35px; max-width: 810px; display: grid; gap: 26px; }
.timeline li { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.timeline .icon { box-sizing: content-box; width: clamp(29px, 5vw, 58px); height: clamp(29px, 5vw, 58px); padding: clamp(12px, 1.5vw, 22px); border: 5px double #e3e3e3; border-radius: 50%; background: var(--ink); }
.timeline li:nth-child(3) .icon { background: var(--yellow); }
.timeline h3 { text-transform: uppercase; margin-bottom: 7px; }
.closing { padding: 80px 0; background: #212121 url("9-imgRectangle28.png") center / cover no-repeat; }
.closing h2 { font-size: clamp(25px, 3vw, 36px); text-transform: uppercase; margin-bottom: 12px; }
.closing-actions { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.field { border: 1px solid #aaa; padding: 12px; text-align: left; font-size: 14px; min-height: 50px; }
.footer { padding: 55px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr .7fr; gap: 45px; }
.footer-grid h2 { font-size: 20px; margin-bottom: 8px; }
.footer-grid button:not(.cta), .footer-grid p { display: flex; align-items: center; text-align: left; gap: 7px; margin: 0 0 12px; font-size: 14px; }
.footer-grid .cta { margin-top: 15px; }
.footer-brand img { width: min(390px, 100%); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; border-top: 1px solid #3f3f3f; margin-top: 50px; padding-top: 20px; font-size: 13px; color: #bdbdbd; }
.footer-meta button:not(.social) { text-decoration: underline; }
.footer-meta .icon { width: 24px; height: 24px; }
.floating { position: fixed; z-index: 1; right: clamp(16px, 5vw, 72px); top: min(65vh, 499px); width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 4px 14px #0004; }
.floating .icon { width: 20px; height: 23px; }
dialog { width: min(480px, calc(100% - 30px)); max-height: calc(100% - 30px); overflow: auto; border: 0; border-top: 5px solid var(--yellow); border-radius: 8px; padding: 32px 24px 24px; color: #fff; background: var(--ink); box-shadow: 0 16px 58px #0007; }
dialog::backdrop { background: #000a; }
dialog p { margin: 13px 0 18px; }
dialog .close { position: absolute; top: 2px; right: 10px; min-width: 36px; min-height: 36px; font-size: 28px; }
dialog a { color: var(--yellow); overflow-wrap: anywhere; }
dialog :focus-visible { outline-color: var(--yellow); }
.contact-list { display: grid; gap: 8px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.contact-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #aaa; border-radius: 50px; text-decoration: none; }
@media (max-width: 900px) {
  .header-controls { gap: 6px; }
  .wrap, .narrow { width: calc(100% - 40px); }
  .nav { flex-wrap: wrap; justify-content: center; padding: 13px 0; }
  .hero { min-height: 550px; }
  .hero-logo { height: 125px; }
  .notice { align-items: flex-start; flex-direction: column; }
  .features { gap: 18px; }
  .doubts .features .icon { width: 23px; height: 23px; padding: 10px; margin: 5px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .header-top { flex-direction: column; padding-block: 14px; gap: 11px; }
  .header-controls { justify-content: center; }
  .pill { font-size: 12px; padding: 5px 9px; }
  .hero { min-height: auto; clip-path: polygon(0 0, 100% 0, 100% 96%, 50% 100%, 0 96%); }
  .hero-inner { padding: 28px 0 65px; }
  .hero-logo { margin-bottom: 10px; height: 92px; }
  .hero-brand { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(22px, 6vw, 34px); }
  .hero p, .hero .actions { margin-top: 20px; }
  .cta { min-height: 47px; font-size: 12px; padding: 8px 13px; }
  .hero .actions { gap: 10px; }
  .section { padding-block: 54px; }
  .section-title { min-height: 65px; margin-bottom: 16px; }
  .section-title > span { font-size: clamp(30px, 10vw, 58px); }
  .diamonds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; margin: 10px 0 0; }
  .diamond { aspect-ratio: auto; min-height: 148px; border-radius: 6px; padding: 10px 5px; }
  .diamond::before { width: 100%; height: 100%; aspect-ratio: auto; transform: none; border-radius: inherit; box-shadow: 0 5px 12px #0002; }
  .diamond:nth-child(3n+2) { transform: none; }
  .diamond-body { width: 100%; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 5px; }
  .arrow { width: 28px; height: 28px; font-size: 16px; }
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .portrait { width: min(150px, 100%); margin-bottom: 6px; }
  .review { font-size: 13px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .process-grid { gap: 9px; }
  .process-grid li { min-height: 195px; padding: 10px; font-size: 13px; overflow-wrap: anywhere; }
  .doubts .features { grid-template-columns: repeat(2, 1fr); }
  .features li { font-size: 13px; }
  .closing { padding-block: 44px; }
  .closing-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-contacts { grid-column: 1 / -1; }
  .footer-meta { margin-top: 18px; }
  .floating { width: 42px; height: 42px; top: auto; bottom: max(18px, env(safe-area-inset-bottom)); }
}

