:root {
    --bg: #f5f5f3;
    --bg-dark: #14171c;
    --surface: #ffffff;
    --text: #1a1d22;
    --text-muted: #5b6068;
    --text-on-dark: #e9ebee;
    --accent: #fbbf24;
    --accent-dark: #f59e0b;
    --border: #e3e3df;
    --radius: 3px;
    --shadow: 0 10px 30px rgba(20, 23, 28, 0.08);
    --container: 1180px;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

/* Глобальный zoom: на десктопе масштабируем контент на +25% (как зум браузера 125%) */
@media (min-width: 881px) {
    body { zoom: 1.25; }
}
@media (min-width: 2400px) {
    body { zoom: 1.5; }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.hero__stats strong,
.logo__text {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hero__title { letter-spacing: -0.03em; }
.section__title { letter-spacing: -0.025em; }
.logo__text { letter-spacing: -0.02em; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #1a1d22;
    box-shadow: 0 4px 14px -6px rgba(245, 158, 11, 0.5);
}
.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(245, 158, 11, 0.6);
}
.btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px -6px rgba(245, 158, 11, 0.5);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover {
    background: rgba(20, 23, 28, 0.04);
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -10px rgba(20, 23, 28, 0.25);
}
.btn--ghost:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px -6px rgba(20, 23, 28, 0.2);
}
.btn--block { width: 100%; }

/* Успешная отправка формы — зелёная кнопка с анимированной галочкой */
.form--success .btn--primary,
.form--success .btn--primary:hover {
    background: #10b981;
    color: #fff;
    box-shadow: 0 10px 26px -10px rgba(16, 185, 129, 0.6);
    transform: none;
    pointer-events: none;
    animation: btnSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes btnSuccessPop {
    0%   { transform: scale(0.96); }
    55%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.btn__check {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: drawCheck 0.45s 0.15s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 245, 243, 0.9);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 0; font-weight: 400; font-size: 18px; letter-spacing: -0.01em; }
.logo__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    margin: -14px -18px -14px -10px;
}
.logo__text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}
.logo__one {
    color: var(--text);
}
.logo__m {
    color: var(--text);
    margin-left: 0.02em;
}
.logo__cube {
    color: var(--accent-dark);
    font-size: 0.55em;
    display: inline-block;
    transform: translateY(-0.7em);
    margin-left: 0.05em;
    font-weight: 800;
}
.nav { display: flex; gap: 28px; }
.nav a {
    position: relative;
    font-size: 15px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 8px; width: 38px; height: 38px; }
.burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 80px;
    background:
        radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.22), transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(20, 23, 28, 0.05), transparent 60%),
        linear-gradient(180deg, transparent 0%, transparent 70%, rgba(251, 191, 36, 0.08) 100%),
        var(--bg);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
    align-items: end;
    gap: clamp(20px, 3vw, 60px);
    position: relative;
    z-index: 2;
}
.hero__content { min-width: 0; max-width: 720px; }

.hero__visual {
    justify-self: center;
    width: 100%;
    max-width: 500px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero__deco {
    width: 100%;
    height: auto;
    max-height: clamp(260px, 28vw, 410px);
    object-fit: contain;
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 28px 56px rgba(20, 23, 28, 0.18));
    animation: heroDecoIn 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__slogan {
    margin-top: 22px;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 1.7vw, 25px);
    color: var(--text);
    letter-spacing: 0.005em;
    line-height: 1.4;
    opacity: 0;
    animation: heroSloganIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
.hero__slogan::before,
.hero__slogan::after {
    color: var(--accent-dark);
    font-weight: 700;
    font-style: normal;
}
.hero__slogan::before { margin-right: 3px; }
.hero__slogan::after  { margin-left: 1px; }
[lang="et"] .hero__slogan::before { content: '„'; }
[lang="et"] .hero__slogan::after  { content: '"'; }
[lang="ru"] .hero__slogan::before { content: '«'; }
[lang="ru"] .hero__slogan::after  { content: '»'; }
[lang="ru"] .hero__slogan {
    font-size: clamp(17px, 1.4vw, 21px);
    white-space: nowrap;
}

.hero__slogan-dot {
    color: #000;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25em;
    margin-left: 1px;
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    animation: sloganDotPulse 2.6s ease-in-out infinite;
}
@keyframes sloganDotPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}
.hero__slogan-accent {
    position: relative;
    font-weight: 700;
    color: var(--text);
    z-index: 1;
    white-space: nowrap;
}
.hero__slogan-accent::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: 2px;
    height: 10px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.55), rgba(245, 158, 11, 0.65));
    z-index: -1;
    border-radius: 2px;
    transform: skewX(-8deg);
}

@keyframes heroSloganIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@keyframes heroDecoIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* Узкий экран (планшет/маленький ноут): картинка уходит ВНИЗ под текст */
@media (max-width: 1200px) {
    .hero__inner { grid-template-columns: 1fr; align-items: stretch; }
    .hero__visual { justify-self: center; align-items: center; }
    .hero__deco {
        max-height: 280px;
        width: auto;
        opacity: 0.8;
    }
    .hero__slogan { text-align: center; }
    .hero__stats {
        grid-template-columns: repeat(4, auto);
        gap: 32px;
    }
}
.hero__title {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 24px;
}
.hero__title span { color: var(--accent-dark); }
.hero__subtitle {
    font-size: clamp(17px, 1.6vw, 21px);
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: clamp(20px, 2.4vw, 48px);
    justify-content: start;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; white-space: nowrap; }
.hero__stats span { font-size: 15px; color: var(--text-muted); }

/* Sections */
.section { padding: 100px 0; }
#services {
    background:
        linear-gradient(180deg, rgba(251, 191, 36, 0.07) 0%, transparent 240px),
        #faf6ee;
}
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark .section__lead { color: rgba(233, 235, 238, 0.7); }
.section__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 16px;
}
.section__title--left { text-align: left; }
.section__lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 56px;
    font-size: 17px;
}
.section__title--left + .section__lead { text-align: left; margin: 0 0 32px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--products { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--services { grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 720px) {
    .grid--services { grid-template-columns: 1fr; }
}
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--reviews { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Cards */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}
.card__badge--accent { background: var(--accent); color: #1a1d22; }
.card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 0; }
@media (max-width: 720px) {
    .card { padding: 28px; }
    .card h3 { font-size: 28px; margin-bottom: 8px; }
}
.card__price { font-weight: 600; color: var(--text); }

/* Services */
.service {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    row-gap: 14px;
    align-items: start;
}
.service:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.service__icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0.08));
    color: var(--accent-dark);
    display: grid;
    place-items: center;
    margin: 0;
    align-self: center;
}
.service__icon svg { width: 26px; height: 26px; }
.service__icon--art {
    background: none;
    width: 45px;
    height: 45px;
}
.service__icon--art.service__icon--sm {
    width: 24px;
    height: 24px;
}
.service__icon--art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.service h3 {
    font-size: 22px;
    letter-spacing: -0.015em;
    margin: 0;
    align-self: center;
}
.service p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    grid-column: 1 / -1;
}
.service__cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
    padding: 12px 26px;
    font-size: 15px;
}

/* Cases */
.case {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(20,23,28,0.65), rgba(20,23,28,0.25)),
        repeating-linear-gradient(45deg, #6b7280 0 8px, #9ca3af 8px 16px);
}
.case__media::after {
    content: attr(data-label);
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.case__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #1a1d22;
    font-size: 12px;
    font-weight: 600;
}
.case h3 { font-size: 19px; letter-spacing: -0.01em; }
.case p { color: var(--text-muted); font-size: 15px; flex: 1; }
.case__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.case__meta div { display: flex; flex-direction: column; gap: 2px; }
.case__meta dt { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.case__meta dd { font-size: 14px; font-weight: 600; }

/* Reviews */
.review {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background var(--transition), transform var(--transition);
}
.review:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-4px); }
.review blockquote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-on-dark);
    flex: 1;
    position: relative;
    padding-top: 20px;
}
.review blockquote::before {
    content: '"';
    position: absolute;
    top: -10px; left: -4px;
    font-size: 56px;
    line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
}
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review__avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #14171c;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.section--dark .review__avatar { color: #14171c; }
.review figcaption strong { display: block; font-size: 15px; color: var(--text-on-dark); }
.review figcaption span { font-size: 13px; color: rgba(233, 235, 238, 0.6); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 24px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.faq__item:hover { border-color: rgba(245, 158, 11, 0.4); }
.faq__item[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.faq__item summary:hover::after { transform: rotate(90deg); color: var(--accent); }
.faq__item[open] summary:hover::after { transform: rotate(45deg); }
.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--accent-dark);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
    color: var(--text-muted);
    font-size: 15px;
    padding: 0 0 18px;
    margin: 0;
    animation: faqOpen 0.35s ease;
}
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features */
.feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: background var(--transition), transform var(--transition);
}
.feature:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-4px); }
.feature__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 0;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: rgba(233, 235, 238, 0.7); font-size: 15px; }

/* Delivery */
.delivery__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 18px; height: 18px;
    border-radius: var(--radius);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px var(--bg);
}
.delivery__visual {
    position: relative;
    background: linear-gradient(135deg, #1a1d22, #2a2f38);
    border-radius: var(--radius);
    height: 360px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.delivery__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 60px);
    animation: road 1.6s linear infinite;
}
@keyframes road { from { transform: translateX(0); } to { transform: translateX(-60px); } }

/* Mixer truck (CSS-only, минимальная анимация) */
.mixer { position: relative; width: 280px; height: 140px; }
.mixer__cab {
    position: absolute; left: 0; bottom: 28px;
    width: 80px; height: 70px;
    background: var(--accent);
    border-radius: 8px 16px 6px 6px;
    box-shadow: inset -10px 0 0 rgba(0,0,0,0.15);
}
.mixer__cab::after {
    content: ''; position: absolute;
    top: 8px; right: 8px; width: 26px; height: 22px;
    background: #1a1d22; border-radius: 4px;
}
.mixer__drum {
    position: absolute; left: 70px; bottom: 36px;
    width: 180px; height: 88px;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    border-radius: 50% 30% 30% 50% / 50% 40% 40% 50%;
    box-shadow: inset -16px 0 0 rgba(0,0,0,0.18);
    animation: spin 4s linear infinite;
    transform-origin: center;
}
.mixer__drum::before {
    content: '';
    position: absolute; inset: 12px;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 4px, transparent 4px 14px);
    border-radius: inherit;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.mixer__wheel {
    position: absolute; bottom: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #1a1d22;
    border: 4px solid #4b5563;
    animation: roll 0.6s linear infinite;
}
.mixer__wheel--1 { left: 20px; }
.mixer__wheel--2 { left: 140px; }
.mixer__wheel--3 { left: 200px; }
@keyframes roll { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* CTA */
.section--cta { background: var(--bg); }
#contacts {
    scroll-margin-top: 72px;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
}
.cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contacts { display: grid; gap: 14px; margin-top: 32px; }
.contacts li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}
.contacts li span { color: var(--text-muted); }
.contacts a { font-weight: 600; }
.contacts a:hover { color: var(--accent-dark); }

/* Form */
.form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: grid;
    gap: 16px;
    box-shadow: var(--shadow);
}
.form label { display: grid; gap: 6px; }
.form label span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font: inherit;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}
.form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1 6 6 11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form select:hover { border-color: var(--accent-dark); }
.form select option {
    background: var(--surface);
    color: var(--text);
    padding: 8px;
}
.form input[type="file"] {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}
.form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.form input[type="file"]::file-selector-button:hover {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: #1a1d22;
}
.form__file {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.form__file:hover { border-color: var(--accent-dark); }
.form__file:focus-within {
    border-color: var(--accent);
    background: var(--surface);
}
.form__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.form__file-button {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.form__file:hover .form__file-button {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: #1a1d22;
}
.form__file-name {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form__file--has-files .form__file-name {
    color: var(--text);
    font-weight: 500;
}
.form__hint {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}
.form__choice {
    display: grid;
    gap: 6px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.form__choice-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.form__choice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: relative;
}
.form__choice-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}
.form__choice-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.form__choice-options label:hover {
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}
.form__choice-options input[type="radio"]:checked + label {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: #1a1d22;
    font-weight: 600;
    box-shadow: 0 4px 14px -6px rgba(245, 158, 11, 0.5);
}
.form__choice-options input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}
.form--success .form__choice-options input[type="radio"]:checked + label {
    background: #10b981;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 4px 14px -6px rgba(16, 185, 129, 0.5);
}
.form__note { font-size: 12px; color: var(--text-muted); text-align: center; }
.form--success { border-color: #4ade80; }

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(233, 235, 238, 0.6);
    padding: 28px 0;
    font-size: 14px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.footer__inner > :first-child { justify-self: start; }
.footer__inner > :last-child { justify-self: end; text-align: right; }
.footer__brand {
    font-weight: 700;
    color: rgba(233, 235, 238, 0.85);
    letter-spacing: -0.01em;
}
@media (max-width: 720px) {
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__inner > :first-child,
    .footer__brand {
        display: none;
    }
    .footer__inner > :last-child {
        justify-self: center;
        text-align: center;
    }
}

/* Reveal animation (IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 880px) {
    .header__cta { display: none; }
    .lang-toggle { margin-left: auto; }
    .burger { display: flex; }
    .logo__img { width: 64px; height: 64px; margin: -10px -8px -10px -6px; }
    .logo__text { font-size: 26px; }
    .nav {
        display: flex;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(245, 245, 243, 0.97);
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        flex-direction: column;
        padding: 0 24px;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        border-bottom: 1px solid transparent;
        transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.3s ease,
                    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                    border-color 0.3s ease;
    }
    .nav.is-open {
        max-height: 480px;
        opacity: 1;
        padding: 12px 24px 20px;
        border-bottom-color: var(--border);
        pointer-events: auto;
        box-shadow: 0 16px 32px rgba(20, 23, 28, 0.08);
    }
    .nav a {
        padding: 14px 0;
        font-size: 17px;
        font-weight: 500;
        border-bottom: 1px solid rgba(20, 23, 28, 0.05);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
    }
    .nav a:last-child { border-bottom: none; }
    .nav.is-open a { opacity: 1; transform: translateY(0); }
    .nav.is-open a:nth-child(1) { transition-delay: 0.10s; }
    .nav.is-open a:nth-child(2) { transition-delay: 0.14s; }
    .nav.is-open a:nth-child(3) { transition-delay: 0.18s; }
    .nav.is-open a:nth-child(4) { transition-delay: 0.22s; }
    .nav.is-open a:nth-child(5) { transition-delay: 0.26s; }
    .nav.is-open a:nth-child(6) { transition-delay: 0.30s; }
    .delivery__inner, .cta__inner { grid-template-columns: 1fr; }
    .delivery__visual { height: 260px; }
    .mixer { transform: scale(0.8); }
    .hero { padding: 60px 0 20px; }
    .section { padding: 40px 0; }
    .hero__stats {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 24px 56px;
        width: 100%;
    }
    .hero__stats li { align-items: flex-start; }
    .hero__stats strong { font-size: 28px; }
    .hero__deco {
        height: 275px;
        max-width: 100%;
        opacity: 0.75;
        margin-top: 24px;
    }
    @keyframes heroDecoIn {
        from { opacity: 0; transform: translateY(40px) scale(0.92); }
        to { opacity: 0.75; transform: scale(1); }
    }
    .case__meta { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .case__meta dd { font-size: 13px; }
    [lang="ru"] .hero__slogan { white-space: normal; font-size: clamp(18px, 4.5vw, 22px); }
}

@media (max-width: 480px) {
    .case__meta { grid-template-columns: 1fr 1fr; }
    .hero__actions {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .hero__actions .btn {
        flex: 1 1 0;
        padding: 14px 12px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* Language toggle (ET / RU) */
.lang-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 88px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover {
    border-color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.9);
}
.lang-toggle__option {
    position: relative;
    z-index: 2;
    flex: 1 1 50%;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
    transition: color 0.25s ease;
    user-select: none;
}
.lang-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--accent);
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.lang-toggle[data-lang="et"] .lang-toggle__option--et { color: #1a1d22; }
.lang-toggle[data-lang="ru"] .lang-toggle__option--ru { color: #1a1d22; }
.lang-toggle[data-lang="ru"] .lang-toggle__thumb {
    transform: translateX(100%);
}
.lang-toggle.is-switching {
    pointer-events: none;
}


/* Documents section */
.docs {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 32px 40px;
    align-items: center;
    margin-top: 48px;
}
.doc-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px 22px 22px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(247, 182, 27, 0.06), rgba(255, 255, 255, 0.02) 60%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f3;
    text-decoration: none;
    transition: border-color 0.3s ease;
}
.doc-card:hover {
    border-color: rgba(247, 182, 27, 0.5);
}
.doc-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.doc-card__icon {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(247, 182, 27, 0.14);
    color: var(--accent);
}
.doc-card__badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1d22;
    border: 2px solid var(--bg-dark);
    transition: transform 0.3s ease;
}
.doc-card:hover .doc-card__badge {
    transform: translateY(3px);
}
.doc-card__body {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.doc-card__label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b8b9b3;
    transition: color 0.25s ease;
}
.doc-card:hover .doc-card__label { color: #f5f5f3; }
.doc-card__hint {
    font-size: 12px;
    color: #b8b9b3;
}
.doc-text h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.doc-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #b8b9b3;
}
@media (max-width: 720px) {
    .docs {
        grid-template-columns: 1fr;
        gap: 14px 0;
    }
    .doc-text { margin-bottom: 16px; }
    .doc-card { padding: 18px 22px; }
}


/* Грануляция фона для секции "Betooni margid" — едва заметная зернистость */
#products {
    position: relative;
    isolation: isolate;
}
#products::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.14  0 0 0 0 0.14  0 0 0 0 0.14  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
    background-size: 320px 320px;
    opacity: 0.30;
    mix-blend-mode: multiply;
}
#products .container { position: relative; z-index: 1; }


/* === Русская версия: облегчённые заголовки (Medium 500 + Bold 700 акценты) === */
[lang="ru"] h1,
[lang="ru"] h2,
[lang="ru"] h3 {
    font-weight: 500;
}
[lang="ru"] .hero__title {
    font-weight: 500;
    font-size: clamp(44px, 5.6vw, 76px);
}
[lang="ru"] .hero__title span {
    font-weight: 700;
}
[lang="ru"] .hero__stats strong {
    font-weight: 700;
}
[lang="ru"] .feature__icon {
    font-weight: 700;
}
[lang="ru"] .card h3,
[lang="ru"] .case h3,
[lang="ru"] .service h3,
[lang="ru"] .feature h3,
[lang="ru"] .review strong,
[lang="ru"] .doc-text h3 {
    font-weight: 500;
}
[lang="ru"] .card__price,
[lang="ru"] .case__meta dd {
    font-weight: 700;
}


/* Плавающая CTA-кнопка для мобильных — внизу справа, появляется при скролле */
.floating-cta { display: none; }
@media (max-width: 880px) {
    .floating-cta {
        position: fixed;
        bottom: 18px;
        right: 18px;
        z-index: 60;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 13px 20px;
        background: var(--accent);
        color: #1a1d22;
        border-radius: 999px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        box-shadow: 0 12px 28px -10px rgba(245, 158, 11, 0.6);
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
        animation: ctaPulse 2.4s ease-in-out infinite;
    }
    .floating-cta.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .floating-cta:active { transform: translateY(0) scale(0.96); }
    .floating-cta:hover { background: var(--accent-dark); }
    .floating-cta svg { flex-shrink: 0; }
    @keyframes ctaPulse {
        0%, 100% { box-shadow: 0 12px 28px -10px rgba(245, 158, 11, 0.6); }
        50%      { box-shadow: 0 12px 32px -6px rgba(245, 158, 11, 0.95), 0 0 0 6px rgba(251, 191, 36, 0.18); }
    }
}
