:root {
    --as63-bg: #0b0f17;
    --as63-panel: #111827;
    --as63-panel-2: #172033;
    --as63-line: rgba(148, 163, 184, 0.22);
    --as63-text: #f8fafc;
    --as63-muted: #a7b0c0;
    --as63-gold: #d8aa3d;
    --as63-green: #25d366;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--as63-bg);
    color: var(--as63-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.as63-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.as63-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 23, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(16px);
}

.as63-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.as63-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
    min-width: 0;
    flex: 0 0 auto;
}

.as63-brand__mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(216, 170, 61, 0.55);
    border-radius: 8px;
    background: #050505;
    overflow: hidden;
}

.as63-brand__mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.as63-brand strong {
    display: block;
    font-size: 1.14rem;
}

.as63-brand small {
    display: block;
    color: var(--as63-gold);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.as63-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.as63-nav a {
    color: var(--as63-muted);
    text-decoration: none;
    font-weight: 650;
    font-size: 0.93rem;
}

.as63-nav a:hover {
    color: var(--as63-text);
}

.as63-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.as63-header__link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    padding: 0.55rem 0.82rem;
    color: #d5dce8;
    text-decoration: none;
    font-weight: 750;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.42);
}

.as63-premium-btn {
    position: relative;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 229, 143, 0.72);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    color: #1b1203;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff2b0 0%, #d8aa3d 45%, #f8c64f 100%);
    box-shadow: 0 0 0 1px rgba(216, 170, 61, 0.18), 0 0 22px rgba(216, 170, 61, 0.28);
    overflow: hidden;
    isolation: isolate;
    animation: as63-premium-pulse 2.8s ease-in-out infinite;
}

.as63-premium-btn::before {
    content: "";
    position: absolute;
    inset: -80% auto -80% -45%;
    width: 38%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: as63-premium-shine 3.4s ease-in-out infinite;
    z-index: -1;
}

.as63-premium-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(216, 170, 61, 0.24), 0 0 30px rgba(216, 170, 61, 0.46);
}

.as63-premium-btn--active {
    animation-duration: 2s;
}

@keyframes as63-premium-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(216, 170, 61, 0.18), 0 0 18px rgba(216, 170, 61, 0.22); }
    50% { box-shadow: 0 0 0 1px rgba(255, 229, 143, 0.34), 0 0 34px rgba(216, 170, 61, 0.48); }
}

@keyframes as63-premium-shine {
    0%, 38% { left: -50%; }
    68%, 100% { left: 115%; }
}

.as63-header__cta,
.as63-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.62rem 1rem;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.as63-header__cta {
    color: #03130a;
    background: var(--as63-green);
}

.as63-btn--primary {
    background: var(--as63-gold);
    color: #15100a;
}

.as63-btn--ghost {
    color: var(--as63-text);
    border-color: rgba(248, 250, 252, 0.24);
    background: rgba(15, 23, 42, 0.5);
}

.as63-btn--telegram {
    background: #2aabee;
    color: #06121b;
}

.as63-btn--filter {
    background: rgba(216, 170, 61, 0.16);
    color: var(--as63-gold);
    border-color: rgba(216, 170, 61, 0.48);
}

.as63-hero {
    position: relative;
    min-height: 620px;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.as63-hero__media,
.as63-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.as63-hero__media {
    background: #0f172a center / cover no-repeat;
    transform: scale(1.02);
}

.as63-hero__overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0.7) 42%, rgba(11, 15, 23, 0.25) 100%),
        linear-gradient(0deg, rgba(11, 15, 23, 0.98) 0%, rgba(11, 15, 23, 0.25) 58%, rgba(11, 15, 23, 0.55) 100%);
}

.as63-hero__content {
    padding: 7rem 0 3.4rem;
}

.as63-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--as63-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.as63-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.as63-hero__lead {
    max-width: 690px;
    margin: 1.25rem 0 0;
    color: #d5dce8;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.as63-hero__actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.as63-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 0.8rem;
    max-width: 720px;
    margin: 2rem 0 0;
}

.as63-metrics div {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.66);
    padding: 0.9rem 1rem;
}

.as63-metrics dt {
    font-size: 1.45rem;
    font-weight: 800;
}

.as63-metrics dd {
    margin: 0.2rem 0 0;
    color: var(--as63-muted);
}

.as63-toolbar {
    padding: 2.2rem 0 1rem;
}

.as63-toolbar__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.as63-toolbar h2,
.as63-process h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.as63-toolbar p {
    max-width: 820px;
    margin: 0.45rem 0 0;
    color: var(--as63-muted);
    line-height: 1.55;
}

.as63-count {
    flex: 0 0 auto;
    color: var(--as63-gold);
    border: 1px solid rgba(216, 170, 61, 0.32);
    border-radius: 999px;
    padding: 0.35rem 0.68rem;
    font-weight: 800;
    background: rgba(216, 170, 61, 0.1);
}

.as63-filters {
    display: grid;
    grid-template-columns: minmax(200px, 1.15fr) repeat(5, minmax(135px, 0.72fr)) auto;
    gap: 0.7rem;
    align-items: end;
    border: 1px solid var(--as63-line);
    border-radius: 10px;
    background: var(--as63-panel);
    padding: 0.9rem;
}

.as63-filters label {
    display: grid;
    gap: 0.32rem;
}

.as63-filters span {
    color: #c7cfdd;
    font-size: 0.78rem;
    font-weight: 700;
}

.as63-filters input,
.as63-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 7px;
    background: #0b1220;
    color: var(--as63-text);
    padding: 0.55rem 0.65rem;
    font: inherit;
}

.as63-listing {
    padding: 0.7rem 0 3rem;
}

.as63-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
    gap: 1rem;
}

.as63-loading,
.as63-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    color: var(--as63-muted);
}

.as63-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--as63-line);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--as63-panel-2), var(--as63-panel));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.as63-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0f172a;
}

.as63-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.as63-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    color: rgba(248, 250, 252, 0.82);
    background:
        linear-gradient(145deg, rgba(216, 170, 61, 0.14), rgba(15, 23, 42, 0.94)),
        radial-gradient(circle at 70% 20%, rgba(216, 170, 61, 0.18), transparent 34%);
    font-weight: 850;
    line-height: 1.25;
}

.as63-card__badge {
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: #16120b;
    background: rgba(216, 170, 61, 0.95);
    font-size: 0.78rem;
    font-weight: 850;
}

.as63-card__body {
    padding: 0.95rem;
}

.as63-card__brand {
    color: var(--as63-gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.as63-card h3 {
    min-height: 2.4em;
    margin: 0.35rem 0 0.75rem;
    font-size: 1.05rem;
    line-height: 1.2;
}

.as63-card__prices {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.as63-card__turnkey {
    font-size: 1.18rem;
}

.as63-card__eur {
    color: var(--as63-muted);
    font-size: 0.9rem;
}

.as63-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
}

.as63-card__specs div {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    padding: 0.45rem 0.5rem;
    background: rgba(2, 6, 23, 0.24);
}

.as63-card__specs dt {
    color: var(--as63-muted);
    font-size: 0.68rem;
}

.as63-card__specs dd {
    margin: 0.12rem 0 0;
    font-weight: 750;
}

.as63-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.as63-card__actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

.as63-card__source {
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--as63-text);
}

.as63-card__whatsapp {
    color: #04130a;
    background: var(--as63-green);
}

.as63-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
}

.as63-process {
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.as63-process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    margin-top: 1rem;
}

.as63-process article {
    border: 1px solid var(--as63-line);
    border-radius: 10px;
    background: var(--as63-panel);
    padding: 1rem;
}

.as63-process span {
    color: var(--as63-gold);
    font-weight: 850;
}

.as63-process h3 {
    margin: 0.55rem 0 0.35rem;
}

.as63-process p,
.as63-footer p {
    margin: 0;
    color: var(--as63-muted);
    line-height: 1.5;
}

.as63-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 1.6rem 0;
    background: #090d14;
}

.as63-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.as63-footer__links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.as63-footer__links a {
    color: #d5dce8;
    text-decoration: none;
}

.as63-premium-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(216, 170, 61, 0.18), transparent 34rem),
        radial-gradient(circle at 88% 8%, rgba(239, 68, 68, 0.12), transparent 32rem),
        var(--as63-bg);
}

.as63-premium-hero {
    position: relative;
    overflow: hidden;
    padding: 4.8rem 0 3rem;
    border-bottom: 1px solid rgba(216, 170, 61, 0.14);
}

.as63-premium-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(11, 15, 23, 0.94), rgba(11, 15, 23, 0.66)),
        url("images/avtostok63/avtostok63-og.png?v=20260529") center right 8% / min(560px, 60vw) no-repeat;
    opacity: 0.94;
}

.as63-premium-hero__inner {
    position: relative;
}

.as63-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 1.2rem;
    color: var(--as63-muted);
    text-decoration: none;
    font-weight: 800;
}

.as63-premium-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.96;
}

.as63-premium-hero p:not(.as63-eyebrow) {
    max-width: 680px;
    margin: 1rem 0 0;
    color: #d5dce8;
    font-size: 1.08rem;
    line-height: 1.55;
}

.as63-premium-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.as63-premium-toolbar {
    padding-top: 2rem;
}

.as63-premium-card {
    border-color: rgba(216, 170, 61, 0.28);
}

.as63-premium-card .as63-card__badge {
    background: linear-gradient(135deg, #fff2b0, #d8aa3d);
}

@media (max-width: 980px) {
    .as63-header__inner {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .as63-header__actions {
        flex: 1 1 100%;
        justify-content: stretch;
        margin-left: 0;
    }

    .as63-header__actions > a {
        flex: 1 1 160px;
    }

    .as63-filters,
    .as63-process__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .as63-shell {
        width: min(100% - 20px, 1180px);
    }

    .as63-header {
        position: sticky;
        top: 0;
    }

    .as63-header__inner {
        min-height: 58px;
        gap: 0.55rem;
        padding: 0.45rem 0;
        flex-wrap: nowrap;
    }

    .as63-brand {
        width: auto;
        flex: 1 1 auto;
        gap: 0.5rem;
        min-width: 0;
    }

    .as63-brand__mark {
        width: 36px;
        height: 36px;
        border-radius: 7px;
        font-size: 0.86rem;
    }

    .as63-brand strong {
        font-size: 0.96rem;
        line-height: 1.05;
    }

    .as63-brand small {
        font-size: 0.64rem;
    }

    .as63-header__actions {
        display: flex;
        flex: 0 0 auto;
        width: auto;
        margin-left: 0;
    }

    .as63-header__link {
        display: none;
    }

    .as63-premium-btn {
        min-height: 34px;
        padding: 0.42rem 0.58rem;
        font-size: 0.7rem;
    }

    .as63-header__cta {
        width: auto;
        min-height: 38px;
        padding: 0.48rem 0.68rem;
        font-size: 0;
        border-radius: 7px;
    }

    .as63-header__cta i {
        font-size: 1rem;
    }

    .as63-header__cta::after {
        content: "Заявка";
        font-size: 0.82rem;
    }

    .as63-hero {
        min-height: auto;
        align-items: end;
    }

    .as63-hero__content {
        padding: 2.05rem 0 1.35rem;
    }

    .as63-eyebrow {
        margin-bottom: 0.45rem;
        font-size: 0.73rem;
        letter-spacing: 0.05em;
    }

    .as63-hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.1rem);
        line-height: 0.98;
    }

    .as63-hero__lead {
        max-width: 330px;
        margin-top: 0.72rem;
        font-size: 0.88rem;
        line-height: 1.42;
    }

    .as63-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-top: 0.95rem;
    }

    .as63-hero__actions .as63-btn {
        width: 100%;
        min-height: 38px;
        padding: 0.48rem 0.52rem;
        font-size: 0.78rem;
        border-radius: 7px;
    }

    .as63-hero__actions .as63-btn--ghost {
        display: none;
    }

    .as63-metrics,
    .as63-filters,
    .as63-process__grid,
    .as63-footer__inner {
        grid-template-columns: 1fr;
    }

    .as63-metrics {
        gap: 0.45rem;
        margin-top: 0.9rem;
    }

    .as63-metrics div {
        padding: 0.58rem 0.75rem;
        border-radius: 7px;
    }

    .as63-metrics dd {
        font-size: 0.82rem;
    }

    .as63-toolbar__head,
    .as63-footer__inner {
        display: grid;
    }

    .as63-toolbar {
        padding: 1.05rem 0 0.65rem;
    }

    .as63-toolbar__head {
        gap: 0.45rem;
        margin-bottom: 0.65rem;
    }

    .as63-toolbar h2 {
        font-size: 1.34rem;
    }

    .as63-toolbar p {
        margin-top: 0.28rem;
        font-size: 0.82rem;
        line-height: 1.32;
    }

    .as63-count {
        justify-self: start;
        padding: 0.25rem 0.55rem;
        font-size: 0.82rem;
    }

    .as63-filters {
        gap: 0.38rem;
        padding: 0.55rem;
        border-radius: 8px;
    }

    .as63-filters label {
        gap: 0.22rem;
    }

    .as63-filters span {
        font-size: 0.7rem;
    }

    .as63-filters input,
    .as63-filters select {
        min-height: 36px;
        padding: 0.45rem 0.55rem;
        border-radius: 6px;
        font-size: 0.84rem;
    }

    .as63-btn--filter {
        min-height: 36px;
        padding: 0.45rem 0.65rem;
    }

    .as63-listing {
        padding-top: 0.35rem;
    }

    .as63-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .as63-card h3 {
        min-height: 0;
    }

    .as63-card__specs,
    .as63-card__actions {
        grid-template-columns: 1fr 1fr;
    }

    .as63-footer__links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .as63-premium-hero {
        padding: 2.2rem 0 1.6rem;
    }

    .as63-premium-hero::before {
        background:
            linear-gradient(120deg, rgba(11, 15, 23, 0.94), rgba(11, 15, 23, 0.76)),
            url("images/avtostok63/avtostok63-og.png?v=20260529") center bottom / 120% no-repeat;
        opacity: 0.9;
    }

    .as63-premium-hero h1 {
        max-width: 340px;
        font-size: clamp(2.1rem, 11vw, 3.2rem);
    }

    .as63-premium-hero p:not(.as63-eyebrow) {
        max-width: 330px;
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .as63-premium-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .as63-premium-hero__actions .as63-btn {
        min-height: 38px;
        padding: 0.48rem 0.52rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 390px) {
    .as63-card__specs,
    .as63-card__actions {
        grid-template-columns: 1fr;
    }

    .as63-metrics dt {
        font-size: 1.25rem;
    }
}
