:root {
    --ink: #202428;
    --ink-deep: #171a1d;
    --text: #f7f7f7;
    --violet: #6b33e2;
    --header-height: 80px;
    --content-width: 1140px;
    --gutter: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; min-width: 320px; color: #2c3034; background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: 10px; padding: 10px 14px; color: #111; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.content { width: min(var(--content-width), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); background: rgba(32, 36, 40, .98); }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: flex-end; width: min(var(--content-width), calc(100% - (2 * var(--gutter)))); height: 100%; margin-inline: auto; }
.brand { position: absolute; z-index: 3; top: 0; left: -8px; display: grid; width: 160px; height: 142px; place-items: center; border-radius: 0 0 7px 7px; background: #262b2f; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.brand img { width: 122px; height: auto; }
.primary-nav { display: flex; gap: 42px; align-items: center; }
.primary-nav a, .site-footer nav a { color: #e6e6e6; font-size: 13px; text-decoration: none; }
.primary-nav a { padding-block: 14px; }
.primary-nav a:hover, .primary-nav a:focus-visible, .site-footer nav a:hover, .site-footer nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }

.hero { position: relative; height: 812px; min-height: 640px; overflow: hidden; color: var(--text); background: #111; }
.hero__slides, .hero__slide, .hero__slide img, .hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide { opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { object-fit: cover; object-position: center 48%; }
.hero__overlay { background: linear-gradient(90deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .44) 48%, rgba(0, 0, 0, .09) 100%); }
.hero__content { position: relative; z-index: 2; display: flex; height: 100%; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 18px; }
.hero h1 { max-width: 680px; margin: 0 0 55px; font-size: clamp(46px, 4.55vw, 55px); font-weight: 700; line-height: 1.12; letter-spacing: -.8px; }
.hero h2 { max-width: 690px; margin: 0 0 54px; font-size: 28px; font-weight: 400; line-height: 1.35; }
.button { display: inline-flex; min-height: 62px; align-items: center; justify-content: center; border: 0; border-radius: 4px; padding: 0 39px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .menu-toggle:focus-visible, .slideshow-toggle:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #00a6ff; outline-offset: 3px; }
.button--light { min-width: 230px; color: #31353a; background: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .18); }
.button--outline { min-height: 44px; border: 2px solid #555b60; padding-inline: 25px; color: #32363a; background: #fff; }
.button--outline:hover { color: #fff; background: #32363a; }
.button:disabled { opacity: .62; cursor: wait; transform: none; }
.slideshow-toggle { position: absolute; z-index: 3; right: 22px; bottom: 20px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 7px 13px; color: #fff; background: rgba(0, 0, 0, .48); cursor: pointer; }

.section-dark { color: var(--text); background: var(--ink-deep); }
.section-accent { position: relative; }
.section-accent::before { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 4px; content: ''; }
.section-accent--violet::before { background: linear-gradient(90deg, #8536eb, #245fec); }
.section-accent--cyan::before { background: linear-gradient(90deg, #4855e8, #08d6d1); }
.section-accent--green::before { background: linear-gradient(90deg, #173a12, #66db2a); }
.section-accent--orange::before { background: linear-gradient(90deg, #ff8b00, #ff4627); }
.section-accent--rainbow::before { background: linear-gradient(90deg, #ff0f27, #ff7614 45%, #f5f000 82%, #8dcf22); }
.about { min-height: 600px; display: flex; align-items: flex-start; }
.section-grid--text { padding-top: 140px; }
.section-grid--text > div { max-width: 535px; }
.about h2, .services h2, .references h2, .contact h2 { margin: 0; font-size: 52px; line-height: 1.1; letter-spacing: -1px; }
.lead { font-size: 25px; line-height: 1.28; }
.about .lead { margin: 22px 0 36px; }
.about p:not(.lead) { max-width: 500px; margin: 0; font-size: 16px; line-height: 1.48; }
.services { min-height: 900px; color: #fff; background: linear-gradient(90deg, rgba(85, 85, 85, .74), rgba(255, 255, 255, .88)), url('/assets/sections/bg-1.webp') center / cover no-repeat; }
.services__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(500px, .94fr); gap: 62px; align-items: start; padding-top: 140px; }
.services__copy h2 { margin-bottom: 28px; }
.services__copy .lead { max-width: 610px; margin: 0 0 35px; }
.services__copy p:not(.lead) { margin: 0 0 21px; font-size: 17px; line-height: 1.43; }
.services__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 80px; }
.services__gallery picture { overflow: hidden; aspect-ratio: 1.58; background: #444; }
.services__gallery img { width: 100%; height: 100%; object-fit: cover; }
.references { min-height: 205px; display: flex; align-items: center; }

.contact { min-height: 800px; padding: 100px var(--gutter) 70px; color: #30343a; background: #fff; }
.contact__inner { width: min(520px, 100%); margin-inline: auto; }
.contact h2 { margin-bottom: 22px; text-align: center; }
.contact-form { position: relative; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.field label span, .contact-form__actions p span { color: #f13535; }
.field input, .field textarea { width: 100%; border: 1px solid #aeb3b7; border-radius: 0; padding: 10px 12px; color: #202428; background: #fff; }
.field input { min-height: 43px; }
.field textarea { min-height: 145px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.field-error { display: block; margin-top: 3px; color: #b42318; font-size: 12px; }
.field-error:empty { display: none; }
.contact-form__actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.contact-form__actions p { margin: 0; font-size: 12px; }
.form-status { min-height: 24px; margin: 22px 0 0; font-weight: 700; }
.form-status.is-error { color: #b42318; }
.form-status.is-success { color: #19733a; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { color: #e6e6e6; background: #24282c; }
.site-footer__main { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-footer__main img { width: 160px; height: auto; }
.site-footer__main nav { display: flex; gap: 22px; }
.site-footer__legal { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-inline: max(var(--gutter), calc((100% - var(--content-width)) / 2)); color: #74787b; background: #fff; font-size: 11px; }
.site-footer__legal > p:last-child { text-align: right; }
.site-footer__legal nav { display: flex; gap: 26px; }
.site-footer__legal nav a { color: #74787b; font-size: 11px; }
.site-footer__legal p { margin: 0; }
.error-page { color: #fff; background: #171a1d; }
.error-page__main { display: flex; min-height: 100svh; width: min(620px, calc(100% - 40px)); margin-inline: auto; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.error-page__main > img { width: 138px; margin-bottom: 35px; }
.error-page__code { margin: 0 0 8px; color: #00cdd2; font-size: 22px; font-weight: 700; }
.error-page h1 { margin: 0 0 18px; font-size: clamp(40px, 7vw, 62px); line-height: 1.05; }
.error-page__main > p:not(.error-page__code) { margin: 0 0 34px; color: #d5d5d5; font-size: 19px; }

@media (max-width: 1023px) {
    :root { --header-height: 72px; --gutter: 28px; }
    .brand { width: 135px; height: 116px; }
    .brand { left: 0; }
    .brand img { width: 102px; }
    .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.38); border-radius: 4px; padding: 8px 12px; color: #fff; background: transparent; cursor: pointer; }
    .menu-toggle__lines { display: grid; width: 20px; gap: 4px; }
    .menu-toggle__lines i { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { transform: translateY(-6px) rotate(-45deg); }
    .primary-nav { position: absolute; top: 100%; right: 0; display: none; width: min(330px, calc(100vw - 2 * var(--gutter))); align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border-top: 3px solid var(--violet); background: #202428; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { min-height: 46px; padding: 13px 14px; font-size: 16px; }
    .hero { height: 700px; min-height: 620px; }
    .hero h1 { max-width: 630px; font-size: clamp(43px, 6.1vw, 54px); }
    .hero h2 { font-size: 24px; }
    .about { min-height: 540px; }
    .section-grid--text { padding-top: 118px; }
    .services { min-height: 0; }
    .services__layout { grid-template-columns: 1fr; gap: 34px; padding-block: 110px; }
    .services__copy { max-width: 680px; }
    .services__gallery { margin-top: 0; }
    .references { min-height: 190px; }
    .site-footer__main { align-items: flex-start; flex-direction: column; padding-block: 32px; }
    .site-footer__main nav { flex-wrap: wrap; }
    .site-footer__legal { grid-template-columns: 1fr; gap: 12px; padding-block: 25px; text-align: left; }
    .site-footer__legal > p:last-child { text-align: left; }
}

@media (max-width: 767px) {
    :root { --header-height: 68px; --gutter: 20px; }
    .brand { width: 112px; height: 98px; }
    .brand img { width: 85px; }
    .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .menu-toggle { padding-inline: 11px; }
    .hero { height: min(710px, calc(100svh - var(--header-height))); min-height: 570px; }
    .hero__slide img { object-position: 58% center; }
    .hero__overlay { background: linear-gradient(90deg, rgba(0,0,0,.79), rgba(0,0,0,.4)); }
    .hero__content { justify-content: flex-end; padding-bottom: 72px; }
    .hero h1 { margin-bottom: 28px; font-size: clamp(36px, 10.4vw, 48px); line-height: 1.07; }
    .hero h2 { margin-bottom: 34px; font-size: 20px; }
    .desktop-break { display: none; }
    .button--light { min-width: 0; min-height: 54px; }
    .slideshow-toggle { right: 14px; bottom: 14px; font-size: 13px; }
    .about { min-height: 0; }
    .section-grid--text { padding-block: 100px; }
    .about h2, .services h2, .references h2, .contact h2 { font-size: 42px; }
    .lead { font-size: 22px; }
    .about .lead { margin-bottom: 28px; }
    .services__layout { padding-block: 92px; }
    .services__copy p:not(.lead) { font-size: 16px; }
    .services__gallery { gap: 6px; }
    .references { min-height: 160px; }
    .contact { min-height: 0; padding: 88px var(--gutter) 78px; }
    .contact h2 { margin-bottom: 28px; }
    .field input, .field textarea { font-size: 16px; }
    .contact-form__actions { align-items: stretch; flex-direction: column-reverse; }
    .contact-form__actions .button { width: 100%; }
    .site-footer__main nav { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 0; }
    .site-footer__main nav a { min-height: 44px; display: flex; align-items: center; }
    .site-footer__legal nav { flex-direction: column; gap: 0; }
    .site-footer__legal nav a { min-height: 36px; display: flex; align-items: center; }
}

@media (max-width: 440px) {
    .services__gallery { grid-template-columns: 1fr; }
    .services__gallery picture { aspect-ratio: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
