:root {
    --bg: #0f1115;
    --card: #151821;
    --text: #e9ecf1;
    --muted: #aab3c5;
    --brand: #ff6a00;
    --brand-2: #ff5c00;
    --radius: 14px;
    --gap: 14px;
    --shadow: 0 12px 28px rgba(0, 0, 0, .35);
    --ring: 0 0 0 3px rgba(255, 106, 0, .25);
    --topbar-bg: #000;
    --topbar-text: #fff;
    --danger-dot: #ff2a2a;
    --overlay-bg: rgba(20, 22, 30, .55);
    --overlay-border: #2a3140;
}

* {
    box-sizing: border-box
}

html
{
    scroll-behavior: auto !important;
    
    height: 100%;
}
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #0e1014 0%, #0f1115 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(1120px, 100% - 24px);
    margin: 0 auto
}

/* Topbar (переработано под бренд) */
.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 13px;
    border-bottom: 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 10px;
}

.topbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: #fff;
}

.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger-dot);
    box-shadow: 0 0 8px var(--danger-dot);
}

.brand-name {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.topbar-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    opacity: .9;
}

.dot-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3cad6;
    display: inline-block
}

/* right side of topbar = lang + burger on mobile */
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* burger in topbar now */
.burger-hero {
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: none;
    /* shown on mobile */
}

/* Lang switcher (now visible on mobile too, inline in topbar) */
.lang-switch {
    position: relative;
    display: flex;
    align-items: center
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.lang-btn svg {
    width: 18px;
    height: 18px
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 42px;
    background: rgba(20, 22, 30, .95);
    border: 1px solid #2a3140;
    border-radius: 12px;
    padding: 6px;
    display: none;
    min-width: 140px;
    z-index: 90;
}

.lang-menu.open {
    display: block
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.lang-item:hover {
    background: rgba(255, 255, 255, .08)
}

.lang-code {
    opacity: .8;
    font-size: 12px
}

@media(max-width:900px) {
    .burger-hero {
        display: inline-flex
    }
}

/* скрываем дублирующиеся штуки в hero-toolbar на мобилке */
@media(max-width:900px) {

    .hero-toolbar .nav-hero,
    .hero-toolbar .social-hero,
    .hero-toolbar .lang-switch {
        display: none !important;
    }
}

/* Mobile menu */
#mobileMenu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 19, 29, .95);
    z-index: 120;
}

#mobileMenu .container {
    display: grid;
    gap: 12px;
    place-content: center;
    height: 100%;
}

#mobileMenu a {
    padding: 16px 22px;
    border-radius: 12px;
    background: #121723;
    border: 1px solid #2a3140;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

#mobileMenu a:hover {
    background: #171c2a
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform .08s ease, filter .15s;
    text-align: center;
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    min-width: 140px;
}

.btn-primary:hover {
    filter: brightness(.96)
}

.btn-outline {
    background: rgba(0, 0, 0, .2);
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    min-width: 140px;
}

.btn-outline:hover {
    filter: brightness(1.05)
}

/* HERO */
.hero-split {
    position: relative;
    isolation: isolate;
    height: 95vh;
    overflow: hidden;
}

@media(max-width:900px) {
    .hero-split {
        height: 95vh
    }
}

.hero-split .bg {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-split .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 26%;
    display: block;
}

.hero-split .scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .55) 0%,
            rgba(0, 0, 0, .45) 40%,
            rgba(0, 0, 0, .20) 60%,
            rgba(0, 0, 0, .10) 100%);
}

/* Toolbar (чуть упрощаем, но на десктопе всё остаётся) */
.hero-toolbar {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    top: 0;
    padding: 8px 12px;
    pointer-events: none;
}

.hero-toolbar .wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: auto;
}

.nav-hero {
    display: flex;
    gap: 8px;
    background: var(--overlay-bg);
    border: 1px solid var(--overlay-border);
    padding: 8px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.nav-hero a {
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.nav-hero a:hover {
    background: rgba(255, 255, 255, .08)
}

.social-hero {
    display: flex;
    gap: 8px;
    background: var(--overlay-bg);
    border: 1px solid var(--overlay-border);
    padding: 8px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .08)
}

/* общий блок копира в хиро */
.hero-copy {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .45);
    line-height: 1.2;
    left: clamp(16px, 4vw, 40px);
}

/* desktop: держим копирайт ближе к нижней трети */
@media(min-width:901px) {
    .hero-copy {
        bottom: clamp(10%, 12vw, 18%);
    }
}

/* mobile: поднимаем выше головы попугая */
@media(max-width:900px) {
    .hero-copy {

        /* NEW: turn it into a full-height mobile flex column */
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        /* this creates vertical space so the buttons can sink lower */
        min-height: 90vh;

        /* keep it from hugging screen edges too hard */
        padding-bottom: 24px;
        padding-right: 16px;
        padding-left: 0;
    }
}


/* заголовок */
.hero-copy .label-hero {
    width: 100%;
    position: static;
    /* убираем absolute */
    margin: 0 0 16px 0;
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(28px, 6vw, 72px);
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .45);
}

/* текст под заголовком */
.hero-copy .hero-tagline {
    position: static;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.hero-copy .hero-tagline .sublead {
    margin: 0;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
}

.hero-copy .hero-tagline .sublead-strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

/* кнопки */
.hero-copy .fab-wrap {
    margin-bottom: 20px;
    position: static;
    z-index: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
}

@media(max-width:600px) {
    .hero-copy .fab-wrap {
    margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Subhero */
.subhero {
    padding: 14px 0 8px
}

.fastline {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.fastline .thin {
    font-weight: 300;
    color: #dfe3ea;
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.3;
}

.fastline .big {
    font-weight: 800;
    font-size: clamp(34px, 9vw, 84px);
    line-height: 1.05;
}

/* новый текст после правок */
.sublead {
    color: var(--muted);
    margin: .5rem 0 0;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 400;
}

.sublead-strong {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-top: 4px;
}


/* Gallery / Наши услуги */
.grid {
    display: grid;
    gap: var(--gap)
}

.grid.gallery {
    grid-template-columns: 1fr
}

@media(min-width:740px) {
    .grid.gallery {
        grid-template-columns: 1fr 1fr
    }
}

.service-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #222636;
}

.service-card img,
.service-card video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.service-label {
    text-transform: uppercase;
    font-weight: 700;
    /* looks bolder with caps */
    letter-spacing: 0.5px;
    /* small spacing improves readability */
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

/* Sections */
section {
    padding: 34px 0
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px
}

h2 {
    font-size: clamp(22px, 3.6vw, 34px);
    margin: 0;
    font-weight: 800
}

.lead {
    color: var(--muted);
    margin: 0
}

.about {
    display: grid;
    gap: var(--gap)
}

.about .panel {
    background: var(--card);
    border: 1px solid #222636;
    border-radius: var(--radius);
    padding: 16px
}

.testi {
    display: grid;
    gap: var(--gap)
}

.quote {
    background: var(--card);
    border: 1px solid #222636;
    border-radius: var(--radius);
    padding: 16px
}

.quote .who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a3144
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #222636;
    box-shadow: var(--shadow)
}

.map {
    width: 100%;
    height: 340px;
    border: 0;
    display: block
}

/* Contacts */
.contact {
    display: grid;
    gap: var(--gap)
}

form {
    display: grid;
    gap: 10px;
    background: var(--card);
    padding: 16px;
    border: 1px solid #222636;
    border-radius: var(--radius)
}

.input {
    width: 100%;
    padding: 12px 14px;
    background: #10131a;
    color: var(--text);
    border: 1px solid #222636;
    border-radius: 10px;
    outline: none
}

.input:focus {
    box-shadow: var(--ring);
    border-color: transparent
}

form .btn {
    width: 100%;
    height: 46px;
    font-size: 16px
}

.contact-form-result {
    min-height: 1.2em
}

footer {
    padding: 24px 0 40px;
    color: var(--muted)
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200
}

.modal.open {
    display: flex
}

.modal-card {
    width: min(520px, 100% - 24px);
    background: var(--card);
    border: 1px solid #2a3140;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800
}

.close-btn {
    background: #12151d;
    border: 1px solid #2a3140;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px
}

/* hero tagline under main title */
.hero-tagline {
    position: absolute;
    left: clamp(16px, 4vw, 40px);
    right: clamp(16px, 4vw, 40px);
    color: #fff;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* desktop placement: ниже заголовка, выше кнопок */
@media(min-width:901px) {
    .hero-tagline {
        bottom: clamp(22%, 14vw, 24%);
    }
}

/* mobile placement: тоже под заголовком */
@media(max-width:900px) {
    .hero-tagline {
        top: calc(14vh + 48px);
        /* 14vh = top заголовка, +48px = отступ вниз */
    }
}

/* строки внутри */
.hero-tagline .sublead {
    margin: 0;
    color: #fff;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
}

.hero-tagline .sublead-strong {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

/* убираем прежнюю плашку на мобилке */
.sublead-wrap {
    background: transparent !important;
    backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

@media(max-width:900px) {

    /* less vertical padding in the bar */
    .topbar-inner {
        padding: 6px 12px;
    }

    /* hide phone + address + email block */
    .topbar-info {
        display: none;
    }

    /* keep brand name visible */
    .brand-name {
        font-size: 14px;
        font-weight: 700;
    }

    /* shrink gap on the left group since it's just dot + name now */
    .topbar-left {
        gap: 6px;
    }
}

@media(max-width:900px) {
    .topbar-right {
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 8px;
        border-radius: 10px;
        font-size: 12px;
    }

    .burger-hero {
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 1;
    }
}

/* усиленный стиль для Быстро, качественно! */
h1[data-i18n="sublead_strong"] {
    font-weight: 900;
    /* максимально жирный */
    font-size: clamp(26px, 5vw, 48px);
    /* крупнее адаптивно */
    line-height: 1.1;
    letter-spacing: -0.5px;
    /* чуть плотнее */
    color: #fff;
    /* чисто белый */
    text-shadow: 0 3px 18px rgba(0, 0, 0, .55);
    /* контраст на фоне */
    margin: 0;
}

/* misc */
picture.bg {
    display: block;
    line-height: 0
}

/* ===== Carousel ===== */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 0px;
    will-change: transform;
    animation: carousel-scroll var(--carousel-speed, 80s) linear infinite;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item {
    /* flex: 0 0 clamp(240px, 34vw, 420px); */
    /* margin-right: 10vw; */
}

/* если внутри видео — делаем высоту как у картинок */
.carousel-item .product-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/10;
}

/* плавный бесконечный скролл (требует дублирования контента в JS) */
@keyframes carousel-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* едем до середины (вторая половина — клон) */
}

/* ===== Process steps ===== */
#process {
    padding: 34px 0;
}

.process-title {
    font-weight: 800;
    margin: 0 0 16px 0;
}

.steps {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media(min-width:900px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    position: relative;
    border: 1px solid #222636;
    border-radius: 14px;
    padding: 28px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    text-align: center;
    box-shadow: var(--shadow);
}

.step-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    color: #fff;
    opacity: .9;
}

.step-ico svg {
    width: 100%;
    height: 100%;
}

.step-title {
    text-transform: uppercase;
    font-weight: 800;
    font-size: clamp(16px, 2.4vw, 22px);
    line-height: 1.2;
}

.step-desc {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

#services {
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
/* --- Carousel core --- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee var(--carousel-speed, 80s) linear infinite;
  /* slowed down default speed */
}

/* smooth infinite slide */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* pause animation when hovering (for desktop) */
.carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* cards (images only) */
.carousel .service-card,
.carousel .carousel-item {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.carousel .service-label {
  display: none !important;
}

/* image sizes */
.carousel .carousel-item img,
.carousel .carousel-item video {
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  height: 380px;       /* bigger for desktop */
  width: auto;
}

/* responsive: smaller height on mobile */
@media(max-width:900px){
  .carousel .carousel-item img,
  .carousel .carousel-item video {
    height: 240px;
  }
}
/* ==== Lightbox (simple grow) ==== */
.lb-overlay{
  position:fixed; inset:0; z-index:300;
  display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.8);
  opacity:0; transition:opacity .22s ease;
}
.lb-overlay.open{ display:flex; opacity:1; }

.lb-wrap{
  max-width:min(96vw, 1200px);
  max-height:90vh;
  transform:scale(.96);
  opacity:.6;
  transition:transform .22s ease, opacity .22s ease;
}
.lb-overlay.open .lb-wrap{ transform:scale(1); opacity:1; }

.lb-img{
  width:100%; height:100%;
  object-fit:contain; display:block;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}

/* курсоры/поведение */
.carousel .carousel-item img{ cursor: zoom-in; }
.lb-overlay{ cursor: zoom-out; }

/* пока открыт лайтбокс — стопим карусель и блокируем скролл фона */
.is-lightbox-open{ overflow:hidden; }
.is-lightbox-open .carousel-track{ animation-play-state: paused !important; }

