/*
 * Проект: Gazoblok-1sort.kz
 * Файл: styles.css
 * Автор: Beck Sarbassov
 * Версия: 1.1.0
 * Дата выпуска: 2026-06-25
 * Последнее обновление: 2026-07-14
 * Авторские права: © Beck Sarbassov. Все права защищены.
 *
 * EN: Main style file for responsive layout, modern visual design, and advertising-ready landing page UI.
 * RU: Основной файл стилей для адаптивной верстки, современного дизайна и рекламного лендинга.
 */

:root {
    --bg: #ffffff;
    --ink: #171717;
    --muted: #626262;
    --soft: #f5f6f8;
    --soft-strong: #eceff3;
    --line: #d9dde3;
    --brand: #ef3b33;
    --brand-dark: #cf2f28;
    --green: #04b54f;
    --green-dark: #038b3d;
    --surface: #ffffff;
    --shadow: 0 16px 38px rgba(20, 24, 31, 0.10);
    --shadow-soft: 0 10px 24px rgba(20, 24, 31, 0.08);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    padding-bottom: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(239, 59, 51, 0.16);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* EN: Header keeps the main contact and search visible during ad traffic visits. */
/* RU: Шапка держит контакт и поиск видимыми для посетителей из рекламы. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(217, 221, 227, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.header-grid {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.1;
}

.brand strong {
    font-size: 17px;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.search {
    position: relative;
    min-width: 0;
}

.search .icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 22px;
    height: 22px;
    color: #7d828a;
    transform: translateY(-50%);
}

.search input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--ink);
    font-size: 16px;
    outline: none;
    padding: 0 18px 0 50px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search input:focus {
    border-color: var(--brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(239, 59, 51, 0.12);
}

.header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 800;
    padding: 0 14px;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.header-call .icon {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

.header-call:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

.hero {
    padding: 46px 0 34px;
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 56%, #f7f8fa 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 38px;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--ink);
    font-size: 52px;
    line-height: 1.04;
    font-weight: 900;
}

.hero-copy > p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
    padding: 0 22px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary,
.btn-card {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(239, 59, 51, 0.20);
}

.btn-primary:hover,
.btn-card:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: #b9c0ca;
    background: #ffffff;
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin: 30px 0 0;
}

.hero-facts div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 14px 16px;
}

.hero-facts dt {
    margin: 0;
    color: var(--brand);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.hero-facts dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-media {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 14px;
    align-items: stretch;
}

.hero-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    box-shadow: var(--shadow-soft);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-main {
    grid-row: span 2;
    min-height: 440px;
}

.hero-photo:not(.hero-photo-main) {
    min-height: 213px;
}

.error-body {
    min-height: 100vh;
    background: #f7f8fa;
}

.error-page {
    min-height: calc(100vh - 188px);
}

.error-section {
    overflow: hidden;
    padding: 72px 0 76px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.error-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 42px;
    align-items: center;
}

.error-copy {
    min-width: 0;
}

.error-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0 0 14px;
    border: 1px solid rgba(239, 59, 51, 0.2);
    border-radius: var(--radius);
    background: #fff5f4;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    padding: 0 12px;
    text-transform: uppercase;
}

.error-copy h1 {
    max-width: 620px;
    margin: 0;
    color: var(--ink);
    font-size: 54px;
    font-weight: 900;
    line-height: 1.02;
}

.error-copy p:not(.error-kicker) {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.error-actions .icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

.error-scene {
    position: relative;
    min-height: 430px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(217, 221, 227, 0.45) 1px, transparent 1px) 0 0 / 42px 42px,
        linear-gradient(180deg, rgba(217, 221, 227, 0.4) 1px, transparent 1px) 0 0 / 42px 42px,
        #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.error-code {
    position: absolute;
    top: 34px;
    left: 32px;
    color: rgba(239, 59, 51, 0.1);
    font-size: 136px;
    font-weight: 900;
    line-height: 1;
}

.broken-wall {
    position: absolute;
    right: 46px;
    bottom: 54px;
    width: 360px;
    height: 238px;
}

.broken-wall::before {
    position: absolute;
    right: 72px;
    bottom: 36px;
    width: 210px;
    height: 130px;
    border: 3px solid #2f3338;
    border-right: 0;
    border-bottom: 0;
    transform: skewX(-13deg);
    content: "";
}

.brick-piece {
    position: absolute;
    display: block;
    width: 104px;
    height: 42px;
    border: 2px solid #d92f26;
    border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 49%, rgba(145, 18, 12, 0.28) 50%, transparent 51%),
        linear-gradient(180deg, #ff776f 0%, #ef3b33 100%);
    box-shadow: 0 14px 22px rgba(20, 24, 31, 0.14);
}

.brick-piece::after {
    position: absolute;
    inset: 9px auto auto 16px;
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
    content: "";
}

.brick-piece-1 {
    right: 92px;
    bottom: 118px;
    transform: rotate(-6deg);
}

.brick-piece-2 {
    right: 194px;
    bottom: 77px;
    transform: rotate(4deg);
}

.brick-piece-3 {
    right: 10px;
    bottom: 72px;
    transform: rotate(-12deg);
}

.brick-piece-4 {
    right: 126px;
    bottom: 32px;
    transform: rotate(9deg);
}

.brick-piece-5 {
    right: 36px;
    bottom: 180px;
    width: 76px;
    transform: rotate(18deg);
}

.brick-piece-6 {
    right: 246px;
    bottom: 142px;
    width: 86px;
    transform: rotate(-22deg);
}

.brick-piece-7 {
    right: 272px;
    bottom: 18px;
    width: 68px;
    transform: rotate(-9deg);
}

.shop-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: #3b4149;
    font-size: 13px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    padding: 0 12px;
}

.shop-chip-1 {
    top: 124px;
    left: 52px;
    transform: rotate(-7deg);
}

.shop-chip-2 {
    top: 88px;
    right: 72px;
    color: var(--green-dark);
    transform: rotate(6deg);
}

.shop-chip-3 {
    right: 54px;
    bottom: 34px;
    color: var(--brand-dark);
    transform: rotate(-5deg);
}

.shop-chip-4 {
    left: 58px;
    bottom: 70px;
    transform: rotate(8deg);
}

.quick-nav {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.quick-link {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: #4a4f57;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    padding: 12px 8px;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quick-link .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    color: var(--brand);
}

.quick-link:hover {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

section {
    scroll-margin-top: 92px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.lead-copy h2,
.promo-block h2,
.text-grid h2 {
    margin: 0;
    color: var(--ink);
    font-size: 31px;
    line-height: 1.16;
    font-weight: 900;
}

.section-heading p,
.lead-copy p,
.text-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.social-payments,
.products,
.benefits,
.partners,
.about-strip,
.promo,
.faq,
.lead-section {
    padding: 58px 0;
}

.social-payments {
    background: var(--soft);
}

.social-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.social-row a,
.payment-card,
.product-card,
.partner-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(20, 24, 31, 0.05);
}

.social-row a {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-row a:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.social-row img,
.payment-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.products {
    background: #ffffff;
}

/* EN: Conversion sections explain the purchase path without unsupported guarantees. */
/* RU: Коммерческие секции объясняют путь покупки без неподтвержденных гарантий. */
.benefits {
    background: var(--soft);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 24, 31, 0.05);
    padding: 24px;
}

.benefit-number {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.benefit-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.benefit-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    justify-items: center;
    min-width: 0;
    text-align: center;
    padding: 18px;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
    border-color: rgba(239, 59, 51, 0.54);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: contain;
    margin-bottom: 8px;
}

.product-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
}

.product-card strong {
    display: block;
    margin-top: 6px;
    color: var(--brand);
    font-size: 21px;
    line-height: 1.2;
}

.product-card p {
    min-height: 54px;
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: 16px;
}

.btn-card {
    width: 100%;
    max-width: 190px;
}

.partners {
    background: #ffffff;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.partner-card {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 0.9;
    padding: 12px;
}

.partner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-strip {
    background: var(--soft);
}

.text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.text-grid article {
    min-width: 0;
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    background: var(--soft);
    padding: 26px;
}

.text-grid a {
    color: var(--brand);
    font-size: 22px;
    font-weight: 900;
}

.promo {
    background: #ffffff;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.promo-block {
    min-width: 0;
}

.promo-block h2 {
    margin-bottom: 16px;
    text-align: center;
}

.promo-block img {
    width: 100%;
    aspect-ratio: 1.56 / 1;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.promo-copy {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 16px;
    text-align: center;
}

.promo-copy p {
    margin: 0;
    color: var(--muted);
}

.promo-copy .btn {
    width: 100%;
    max-width: 270px;
}

.faq {
    background: var(--soft);
}

.faq-layout {
    max-width: 980px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 24, 31, 0.04);
    padding: 0 20px;
}

.faq-list summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    padding: 18px 34px 18px 0;
}

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

.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 0;
    color: var(--brand);
    font-size: 24px;
    line-height: 1;
    transform: translateY(-50%);
    content: "+";
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: -2px 0 18px;
    color: var(--muted);
}

.faq-list details a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lead-section {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

.lead-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 28px;
    align-items: start;
}

.lead-copy {
    position: sticky;
    top: 104px;
}

.lead-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--brand);
    font-size: 22px;
    font-weight: 900;
}

.lead-contact-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.lead-contact-list .lead-phone {
    margin-top: 0;
}

.lead-phone span {
    display: grid;
    gap: 2px;
}

.lead-phone small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead-whatsapp {
    color: var(--green-dark);
}

.lead-phone .icon {
    width: 24px;
    height: 24px;
}

.lead-form {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 24px;
}

.lead-form label {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #c5cbd4;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    font-size: 16px;
    outline: none;
    padding: 13px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(239, 59, 51, 0.12);
}

.lead-form textarea {
    min-height: 112px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.submit-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: var(--green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    transition: background 160ms ease, transform 160ms ease;
}

.submit-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.form-status,
.noscript-note {
    min-height: 26px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.form-status a {
    color: var(--brand);
    font-weight: 900;
    text-decoration: underline;
}

.form-status.is-error {
    color: var(--brand-dark);
}

.form-status.is-success {
    color: var(--green-dark);
}

.is-hidden {
    display: none !important;
}

.site-footer {
    padding: 24px 0;
    background: #171717;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.footer-owner,
.footer-copy {
    min-width: 0;
    margin: 0;
}

.footer-owner {
    display: grid;
    gap: 4px;
}

.footer-owner strong {
    font-size: 16px;
    line-height: 1.2;
}

.footer-owner a,
.footer-grid a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.developer-banner {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 4px 8px;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.1;
    padding: 8px 14px;
    text-decoration: none !important;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.developer-banner span {
    color: rgba(255, 255, 255, 0.72);
}

.developer-banner strong {
    color: #ffffff;
    font-size: 16px;
}

.developer-banner:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
}

.footer-copy {
    justify-self: end;
    color: rgba(255, 255, 255, 0.82);
    text-align: right;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 82px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    color: #4f5660;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    padding: 8px 4px;
}

.bottom-nav .icon {
    width: 26px;
    height: 26px;
    color: var(--brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(239, 59, 51, 0.34);
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    .header-grid {
        grid-template-columns: 1fr auto;
    }

    .search {
        grid-column: 1 / -1;
        order: 3;
        margin-bottom: 12px;
    }

    .hero-layout,
    .lead-layout,
    .error-layout {
        grid-template-columns: 1fr;
    }

    .hero-media {
        grid-template-columns: 1fr 1fr;
    }

    .error-scene {
        min-height: 380px;
    }

    .lead-copy {
        position: static;
    }

    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    body {
        padding-bottom: 86px;
    }

    .bottom-nav {
        display: grid;
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-copy > p {
        font-size: 18px;
    }

    .error-section {
        padding: 48px 0 56px;
    }

    .error-copy h1 {
        font-size: 42px;
    }

    .error-copy p:not(.error-kicker) {
        font-size: 17px;
    }

    .hero-facts,
    .benefit-grid,
    .product-grid,
    .promo-grid,
    .text-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo-main {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .hero-photo:not(.hero-photo-main) {
        min-height: 180px;
    }

    .social-row,
    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .developer-banner {
        justify-content: start;
    }

    .footer-copy {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .header-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }

    .brand {
        width: 100%;
    }

    .header-call {
        width: 100%;
    }

    .search {
        order: initial;
        grid-column: auto;
        margin-bottom: 0;
    }

    .hero {
        padding: 28px 0 28px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .error-copy h1 {
        font-size: 34px;
    }

    .hero-actions,
    .hero-actions .btn,
    .error-actions,
    .error-actions .btn {
        width: 100%;
    }

    .hero-media,
    .quick-grid,
    .social-row,
    .payment-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .error-scene {
        min-height: 300px;
    }

    .error-code {
        top: 24px;
        left: 18px;
        font-size: 86px;
    }

    .broken-wall {
        right: 50%;
        bottom: 34px;
        width: 360px;
        height: 238px;
        transform: translateX(50%) scale(0.72);
        transform-origin: center bottom;
    }

    .shop-chip {
        min-width: 72px;
        min-height: 30px;
        font-size: 12px;
        padding: 0 10px;
    }

    .shop-chip-1 {
        top: 104px;
        left: 18px;
    }

    .shop-chip-2 {
        top: 74px;
        right: 18px;
    }

    .shop-chip-3 {
        right: 18px;
        bottom: 18px;
    }

    .shop-chip-4 {
        left: 22px;
        bottom: 48px;
    }

    .partner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .partner-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        padding: 6px;
    }

    .partner-card img {
        max-width: 100%;
        max-height: 66px;
        object-fit: contain;
    }

    .quick-link {
        min-height: 76px;
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
        padding: 12px 16px;
    }

    .quick-link .icon {
        width: 28px;
        height: 28px;
        margin: 0 10px 0 0;
    }

    .social-payments,
    .products,
    .benefits,
    .partners,
    .about-strip,
    .promo,
    .faq,
    .lead-section {
        padding: 42px 0;
    }

    .section-heading h2,
    .lead-copy h2,
    .promo-block h2,
    .text-grid h2 {
        font-size: 27px;
    }

    .lead-form {
        padding: 18px;
    }

    .product-card p {
        min-height: 0;
    }
}

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