/* Rukki home — визуальный канон как на https://rukki.pro/ */
:root {
    --rukki-orange: #ff6633;
    --rukki-orange-hover: #eb521f;
    --rukki-orange-soft: rgba(255, 102, 51, 0.12);
    --rukki-green: #21c17a;
    --rukki-dark: #222222;
    --rukki-black: #141414;
    --rukki-muted: #6b6b6b;
    --rukki-line: #ebebeb;
    --rukki-surface: #f6f6f6;
    --rukki-white: #ffffff;
    --rukki-max: 1180px;

    /* Radii: xl for CTA, md for cards, pill only for chips/badges */
    --rukki-radius-sm: 0.75rem;
    --rukki-radius-md: 1.1rem;
    --rukki-radius-lg: 1.25rem;
    --rukki-radius-panel: 26px;
    --rukki-radius-pill: 999px;

    --rukki-btn-min-height: 2.75rem;
    --rukki-btn-height-lg: 52px;

    /* Hero order form (CMS settings) */
    --rukki-order-blur: 20px;
    --rukki-order-field-bg: rgba(0, 0, 0, 0.2);
    --rukki-order-field-bg-hover: rgba(0, 0, 0, 0.28);
    --rukki-order-field-bg-focus: rgba(0, 0, 0, 0.34);
    --rukki-order-input-size: 20px;
    --rukki-order-placeholder: #c8c8c8;
    --rukki-suggest-bg: rgba(10, 10, 10, 0.92);
    --rukki-suggest-border: rgba(255, 255, 255, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    margin: 0;
    font-family: var(--rukki-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--rukki-dark);
    background: var(--rukki-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input {
    font: inherit;
}

.home-wrap {
    width: min(100% - 2rem, var(--rukki-max));
    margin-inline: auto;
}

/* ——— Nav ——— */
.home-nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    padding: 1.1rem 0;
}

.home-nav__inner {
    width: min(100% - 2rem, var(--rukki-max));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-nav__logo {
    display: block;
    width: clamp(7.5rem, 16vw, 9.5rem);
    height: auto;
    filter: brightness(0) invert(1);
}

.home-nav__links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-nav__links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.home-nav__links a:hover {
    color: var(--rukki-orange);
}

.home-nav__links li[hidden] {
    display: none !important;
}

.home-nav__cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home-nav__phone {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
}

.home-nav__phone:hover {
    color: var(--rukki-orange);
}

.home-nav__cta .home-btn[hidden],
.home-nav__cta .home-nav__phone[hidden] {
    display: none !important;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--rukki-btn-min-height);
    padding: 0.7rem 1.35rem;
    border: 0;
    border-radius: var(--rukki-radius-sm);
    background: var(--rukki-orange);
    color: var(--rukki-white);
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-btn:hover {
    background: var(--rukki-orange-hover);
}

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

.home-btn--ghost {
    background: transparent;
    color: var(--rukki-white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.home-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rukki-white);
}

.home-btn--dark {
    background: var(--rukki-dark);
}

.home-btn--dark:hover {
    background: #000;
}

.home-btn--wide {
    width: 100%;
}

/* ——— Hero ——— */
.home-hero {
    position: relative;
    min-height: 90svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    padding: 5.5rem 0 3rem;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.04);
    animation: home-hero-ken 18s ease-out forwards;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.28) 38%, rgba(18, 18, 18, 0.78) 100%),
        linear-gradient(90deg, rgba(18, 18, 18, 0.55) 0%, transparent 55%);
}

.home-hero__layout {
    width: min(100% - 2rem, var(--rukki-max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 420px);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.home-hero__content {
    width: 100%;
    max-width: 40rem;
    margin: 0;
    padding-top: 0;
    animation: home-rise 0.9s ease both;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rukki-orange);
    background: rgba(255, 102, 51, 0.2);
    border: 1px solid rgba(255, 102, 51, 0.4);
    border-radius: var(--rukki-radius-pill);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 102, 51, 0.2);
}

.home-hero__eyebrow-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--rukki-radius-pill);
    background: var(--rukki-orange);
    animation: home-pulse 1.6s ease-in-out infinite;
}

.home-hero__brand {
    margin: 0 0 1rem;
    font-family: var(--rukki-display);
    font-size: clamp(2.6rem, 6.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.home-hero__brand-line {
    display: block;
}

.home-hero__brand-line--accent {
    color: var(--rukki-orange);
}

.home-hero__lead {
    margin: 0 0 1.6rem;
    max-width: 34rem;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.home-hero__order {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--rukki-radius-panel);
    background: transparent;
    backdrop-filter: blur(var(--rukki-order-blur));
    -webkit-backdrop-filter: blur(var(--rukki-order-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    animation: home-rise 1.05s ease 0.12s both;
    position: relative;
    z-index: 4;
    --hero-order-placeholder-color: var(--rukki-order-placeholder);
}

.home-hero__order-title {
    margin: 0;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: left;
    text-wrap: balance;
}

.home-hero__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--rukki-radius-sm);
    border: 2px solid transparent;
    background: var(--rukki-order-field-bg);
    transition: background 0.2s ease;
}

.home-hero__field:hover {
    background: var(--rukki-order-field-bg-hover);
}

.home-hero__field:focus-within {
    background: var(--rukki-order-field-bg-focus);
}

.home-hero__field--suggest {
    position: relative;
    z-index: 5;
}

.home-hero__field label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8c8c8;
}

.home-hero__field-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 1.5rem;
}

.home-hero__field-icon {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

.home-hero__field input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--rukki-white);
    font-weight: 700;
    font-size: var(--rukki-order-input-size);
    line-height: 1.2;
    color-scheme: dark;
}

.home-hero__field input[type="date"] {
    min-width: 0;
}

.home-hero__field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(1);
}

.home-hero__field input::placeholder {
    color: var(--hero-order-placeholder-color);
    font-weight: 500;
}

.home-btn--order {
    width: 100%;
    min-height: var(--rukki-btn-height-lg);
    height: var(--rukki-btn-height-lg);
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(255, 102, 51, 0.35);
}

/* Подсказки: техника + адрес — один стиль */
.home-suggest,
.home-hero__order .order-address-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: min(20rem, 50vh);
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem 0;
    border-radius: var(--rukki-radius-sm);
    background: var(--rukki-suggest-bg);
    border: 1px solid var(--rukki-suggest-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(var(--rukki-order-blur));
    -webkit-backdrop-filter: blur(var(--rukki-order-blur));
}

.home-hero__order .order-address-suggest {
    margin-top: 6px;
}

.home-suggest__item,
.home-hero__order .order-address-suggest__item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rukki-white);
    text-align: left;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.home-suggest__item:hover,
.home-suggest__item.is-active,
.home-suggest__item:focus-visible,
.home-hero__order .order-address-suggest__item:hover,
.home-hero__order .order-address-suggest__item:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--rukki-orange);
    outline: none;
}

.home-suggest__title {
    font-size: inherit;
    font-weight: inherit;
}

.home-suggest__meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.home-suggest__empty {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.home-hero__order .home-btn {
    align-self: stretch;
}

.home-hero__note {
    width: 100%;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.home-hero__note a {
    color: var(--rukki-white);
    text-decoration: none;
}

.home-hero__note u {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ——— Sections ——— */
.home-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.home-section--muted {
    background: var(--rukki-surface);
}

.home-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.home-kicker {
    margin: 0 0 0.55rem;
    color: var(--rukki-orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-title {
    margin: 0;
    font-family: var(--rukki-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.home-lead {
    margin: 0.75rem 0 0;
    max-width: 36rem;
    color: var(--rukki-muted);
}

.home-link {
    color: var(--rukki-orange);
    font-weight: 700;
    white-space: nowrap;
}

.home-link:hover {
    color: var(--rukki-orange-hover);
}

/* Popular */
.home-equip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-equip__item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    border-radius: var(--rukki-radius-md);
    background: var(--rukki-white);
    border: 1px solid var(--rukki-line);
    transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-equip__item:hover {
    border-color: rgba(255, 102, 51, 0.45);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.home-equip__item img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
}

.home-equip__icon-fallback {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--rukki-radius-sm);
    background: var(--rukki-surface);
    border: 1px dashed var(--rukki-line);
}

.home-equip__status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--rukki-muted);
}

.home-equip__item h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.home-equip__item span {
    color: var(--rukki-orange);
    font-weight: 700;
    font-size: 0.92rem;
}

/* Steps */
.home-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    counter-reset: home-step;
}

.home-step {
    position: relative;
    padding-top: 0.25rem;
}

.home-step::before {
    counter-increment: home-step;
    content: counter(home-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 1rem;
    border-radius: var(--rukki-radius-pill);
    background: var(--rukki-orange-soft);
    color: var(--rukki-orange);
    font-weight: 800;
}

.home-step h3 {
    margin: 0 0 0.45rem;
    font-size: 1.12rem;
}

.home-step p {
    margin: 0;
    color: var(--rukki-muted);
    font-size: 0.95rem;
}

/* Stats */
.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: var(--rukki-radius-lg);
    background: var(--rukki-dark);
    color: var(--rukki-white);
}

.home-stats strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rukki-orange);
}

.home-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

/* Advantages */
.home-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    margin-top: 2rem;
}

.home-why__item {
    padding: 1.4rem 1.35rem;
    border-radius: var(--rukki-radius-md);
    background: var(--rukki-white);
    border: 1px solid var(--rukki-line);
}

.home-why__item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
}

.home-why__item p {
    margin: 0;
    color: var(--rukki-muted);
    font-size: 0.95rem;
}

.home-why__mark {
    width: 0.65rem;
    height: 0.65rem;
    margin-bottom: 0.9rem;
    border-radius: var(--rukki-radius-pill);
    background: var(--rukki-orange);
}

/* Industries */
.home-industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.home-industries span {
    display: block;
    padding: 1rem 1.15rem;
    border-radius: var(--rukki-radius-md);
    background: var(--rukki-white);
    border: 1px solid var(--rukki-line);
    font-weight: 600;
}

/* Cities */
.home-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.home-cities a {
    padding: 0.65rem 1rem;
    border-radius: var(--rukki-radius-pill);
    background: var(--rukki-white);
    border: 1px solid var(--rukki-line);
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.home-cities a:hover {
    border-color: var(--rukki-orange);
    color: var(--rukki-orange);
}

/* FAQ */
.home-faq {
    display: grid;
    gap: 0.65rem;
    max-width: 48rem;
    margin-top: 1.75rem;
}

.home-faq details {
    border: 1px solid var(--rukki-line);
    border-radius: var(--rukki-radius-md);
    background: var(--rukki-white);
    padding: 0.15rem 1.1rem;
}

.home-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 0;
    font-weight: 700;
}

.home-faq summary::-webkit-details-marker {
    display: none;
}

.home-faq p {
    margin: 0 0 1rem;
    color: var(--rukki-muted);
}

/* Owners */
.home-owners {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--rukki-radius-lg);
    background:
        linear-gradient(135deg, rgba(34, 34, 34, 0.88), rgba(34, 34, 34, 0.72)),
        url("https://cms.rukki.pro/api/media/file/harvester.jpg") center / cover;
    color: #fff;
}

.home-owners h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: -0.03em;
}

.home-owners p {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 32rem;
}

.home-owners__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-owners__stat {
    justify-self: end;
    text-align: right;
}

.home-owners__stat strong {
    display: block;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
    color: var(--rukki-orange);
}

.home-owners__stat span {
    color: rgba(255, 255, 255, 0.75);
}

/* Footer */
.home-footer {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--rukki-line);
    background: #111;
    color: rgba(255, 255, 255, 0.78);
}

.home-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
}

.home-footer__logo {
    width: 7.5rem;
    filter: brightness(0) invert(1);
    margin-bottom: 0.85rem;
}

.home-footer h3 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 0.95rem;
}

.home-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.home-footer a:hover {
    color: var(--rukki-orange);
}

.home-footer__copy {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Motion */
@keyframes home-hero-ken {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 980px) {
    .home-nav__links {
        display: none;
    }

    .home-hero__layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .home-equip,
    .home-steps,
    .home-stats,
    .home-why,
    .home-industries {
        grid-template-columns: 1fr 1fr;
    }

    .home-owners,
    .home-footer__inner {
        grid-template-columns: 1fr;
    }

    .home-owners__stat {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .home-nav__phone {
        display: none;
    }

    .home-hero {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 2rem;
        justify-content: flex-start;
    }

    .home-hero__content {
        max-width: none;
    }

    .home-hero__order {
        margin-bottom: 0;
    }

    .home-hero__order-title {
        display: none;
    }

    .home-equip,
    .home-steps,
    .home-stats,
    .home-why,
    .home-industries,
    .home-section__head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .home-section__head {
        align-items: start;
    }
}
