﻿* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'ModalManrope';
    src: url('https://www.avito.st/s/common/assets/fonts/manrope/manrope-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ModalManrope';
    src: url('https://www.avito.st/s/common/assets/fonts/manrope/manrope-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: #121212;
    background: #ffffff;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(17, 20, 24, 0.62);
    z-index: 1300;
    pointer-events: none;
}

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

.wrap {
    width: min(1334px, calc(100% - 28px));
    margin: 0 auto;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    box-shadow: none;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 7px;
    font-size: 13px;
    color: #666d75;
}

.small-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.small-links a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.with-caret .mini-caret {
    width: 6px;
    height: 4px;
    position: relative;
    display: inline-block;
    top: 1px;
}

.with-caret .mini-caret::before {
    content: '';
    position: absolute;
    inset: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #8a9099;
}

.right-links {
    gap: 12px;
    color: #161616;
    flex-wrap: nowrap;
}

.icon-link {
    width: 28px;
    height: 20px;
    justify-content: center;
}

.icon-link svg {
    width: 24px;
    height: 24px;
    stroke: #c4c6ca;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-link,
.post-link {
    color: #111111;
}

.auth-link svg {
    width: 13px;
    height: 13px;
    margin-right: 1px;
    stroke: #111111;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.post-plus {
    font-size: 20px;
    line-height: 1;
    position: relative;
    top: -1px;
}

.search-line {
    display: grid;
    grid-template-columns: 142px 112px 48px minmax(0, 1fr) 82px 185px;
    align-items: center;
    gap: 8px;
    padding: 8px 0 12px;
}

.search-spacer {
    width: 142px;
    height: 48px;
}

.catalog-button,
.search-button,
.side-button {
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.catalog-button {
    width: 48px;
    height: 48px;
    background: #11a8ea;
    color: #ffffff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.catalog-icon {
    position: relative;
    width: 15px;
    height: 15px;
    display: inline-block;
    flex: 0 0 15px;
}

.catalog-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        6px 0 0 #ffffff,
        12px 0 0 #ffffff,
        0 6px 0 #ffffff,
        6px 6px 0 #ffffff,
        12px 6px 0 #ffffff,
        0 12px 0 #ffffff,
        6px 12px 0 #ffffff,
        12px 12px 0 #ffffff;
}

.catalog-logo {
    width: 112px;
    max-width: 100%;
    height: 34px;
    object-fit: contain;
    object-position: left center;
    display: block;
    user-select: none;
}

.search-input-wrap {
    height: 48px;
    border-radius: 15px;
    border: 2px solid #11a8ea;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
}

.search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    flex: 0 0 14px;
}

.search-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #7b828a;
}

.search-icon::after {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -2px;
    width: 2px;
    height: 6px;
    background: #7b828a;
    transform: rotate(-44deg);
    transform-origin: top;
}

.search-input {
    height: 100%;
    border: none;
    outline: none;
    width: 100%;
    padding: 0;
    font-size: 16px;
    color: #3d4450;
    background: transparent;
}

.search-input::placeholder {
    color: #7e848e;
}

.search-button {
    height: 48px;
    background: #11a8ea;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 15px;
}

.region-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #101010;
    font-size: 14px;
    white-space: nowrap;
}

.region-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    background: #111111;
    clip-path: polygon(0 52%, 100% 0, 60% 100%, 50% 64%);
}

.layout {
    display: grid;
    grid-template-columns: 1fr 332px;
    gap: 12px;
    padding: 18px 0 40px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-tile {
    flex: 0 0 auto;
    position: relative;
    background: #f0f0f1;
    border-radius: 12px;
    min-height: 88px;
    padding: 10px 12px;
    overflow: hidden;
}

.category-tile:nth-child(1) { width: 156px; }
.category-tile:nth-child(2) { width: 114px; }
.category-tile:nth-child(3) { width: 106px; }
.category-tile:nth-child(4) { width: 158px; }
.category-tile:nth-child(5) { width: 132px; }
.category-tile:nth-child(6) { width: 110px; }
.category-tile:nth-child(7) { width: 154px; }
.category-tile:nth-child(8) { width: 132px; }
.category-tile:nth-child(9) { width: 108px; }
.category-tile:nth-child(10) { width: 122px; }
.category-tile:nth-child(11) { width: 112px; }
.category-tile:nth-child(12) { width: 158px; }
.category-tile:nth-child(13) { width: 142px; }
.category-tile:nth-child(14) { width: 148px; }

.category-tile span {
    position: relative;
    z-index: 2;
    display: inline-block;
    max-width: 56%;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 500;
    color: #374151;
}

.category-tile img {
    position: absolute;
    right: 3px;
    bottom: -6px;
    width: auto;
    height: 92px;
    border-bottom-right-radius: 10px;
}

.hero-strip {
    height: 118px;
    border-radius: 16px;
    background: #f0f0f1;
    margin-bottom: 18px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

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

.product-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.product-image {
    height: 178px;
    border-radius: 10px;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-one { background-image: url('/static/1pic.png'); }
.image-two { background-image: url('/static/2pic.png'); }
.image-three { background-image: url('/static/3pic.png'); }
.image-four { background-image: url('/static/4pic.png'); }

.product-name {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.3;
}

.product-price {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.side-box {
    background: #f0f0f1;
    border-radius: 20px;
    padding: 18px 16px;
}

.business-box h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    color: #101010;
}

.business-subtitle {
    margin: 6px 0 0;
    max-width: 248px;
    font-size: 13px;
    line-height: 1.2;
    color: #101010;
}

.business-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
}

.business-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.business-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 16px;
    background: #dcdcdf;
}

.business-item span {
    margin-top: 4px;
    max-width: 90px;
    font-size: 13px;
    line-height: 1.05;
    color: #101010;
    word-break: normal;
    overflow-wrap: normal;
}

.side-button {
    width: 100%;
    margin-top: 14px;
    min-height: 44px;
    background: #f3f3f4;
    border: none;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 500;
    color: #101010;
}

.business-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.target-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #202020;
    position: relative;
    flex-shrink: 0;
}

.target-dot::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #202020;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.service-box {
    margin-top: 16px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.service-box h4 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 700;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
}

.service-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.icon-delivery {
    color: #ffb703;
    fill: #ffb703;
    stroke: #ffb703;
}

.icon-autoteka {
    color: #ff6b47;
    fill: none;
    stroke: #ff6b47;
}

.icon-travel {
    color: #8c5ce6;
    fill: none;
    stroke: #8c5ce6;
}

.icon-help {
    color: #16c768;
    fill: #16c768;
    stroke: #16c768;
}

.service-content h5 {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.12;
    font-weight: 700;
    color: #111111;
}

.service-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.34;
    color: #7a8087;
}

.service-divider {
    height: 1px;
    background: #dfdfdf;
    margin: 14px 0 12px;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-meta p {
    margin: 0;
    font-size: 13px;
    line-height: 1.28;
    color: #6f7680;
}

.service-meta a {
    font-size: 13px;
    line-height: 1.26;
    color: #111111;
    text-decoration: none;
}

.service-meta p a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lead-modal {
    position: fixed;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%) scale(0.5);
    transform-origin: center center;
    width: min(780px, calc(100% - 24px));
    min-height: 610px;
    background: #ffffff;
    border-radius: 28px;
    padding: 56px 56px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
    z-index: 1400;
    font-family: 'ModalManrope', 'Segoe UI', Arial, sans-serif;
}

.lead-title {
    margin: 0;
    text-align: left;
    font-size: clamp(40px, 4.2vw, 54px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    color: #111111;
}

.lead-form {
    margin-top: 34px;
}

.lead-row {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.phone-input {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    height: 86px;
    border: none;
    border-radius: 24px;
    background: #f3f3f4;
    padding: 0 26px;
    text-align: left;
    font-size: 42px;
    font-weight: 500;
    color: #1c1c1c;
}

.phone-input::placeholder {
    color: #2d2d2d;
    opacity: 0.7;
}

.phone-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #d9d9dc;
}

.lead-row .phone-input:not(:placeholder-shown) {
    font-size: 26px;
    letter-spacing: 0.2px;
    color: #121212;
    opacity: 1;
}

.lead-row .phone-input:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

.submit-btn {
    height: 86px;
    min-width: 220px;
    width: auto;
    border: none;
    border-radius: 28px;
    padding: 0 24px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: default;
}

.error-text {
    margin: 10px 0 0;
    min-height: 42px;
    font-size: 33px;
    color: #a00000;
}

.lead-consent {
    margin: auto 0 0;
    font-size: 26px;
    line-height: 1.32;
    text-align: left;
    color: #8f8f92;
}

.lead-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lead-consent a + a {
    margin-left: 6px;
}

body.overlay-active .site-shell,
body.overlay-active .lead-modal {
    display: none;
}

body.overlay-active::before {
    display: none;
}

.pre-overlay-loader {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(243, 244, 246, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.pre-overlay-loader.visible {
    display: flex;
}

.pre-overlay-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #d9d9d9;
    border-top-color: #111111;
    border-radius: 50%;
    animation: preSpin 0.8s linear infinite;
}

@keyframes preSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }

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

    .category-tile {
        width: auto !important;
    }

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

@media (max-width: 760px) {
    .topbar-inner {
        display: none;
    }

    .search-line {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 34px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-tile span {
        max-width: 62%;
        font-size: 13px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .lead-modal {
        top: 52%;
        width: min(780px, calc(100% - 12px));
        min-height: 520px;
        padding: 28px 18px 24px;
        border-radius: 18px;
    }

    .lead-title {
        font-size: 34px;
        line-height: 1;
        letter-spacing: -0.3px;
        white-space: normal;
    }

    .lead-form {
        margin-top: 22px;
    }

    .lead-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .phone-input {
        width: auto;
        max-width: 100%;
        height: 64px;
        border-radius: 10px;
        font-size: 28px;
    }

    .phone-input::placeholder {
        font-size: 28px;
    }

    .lead-row .phone-input:not(:placeholder-shown) {
        font-size: 20px;
    }

    .submit-btn {
        height: 64px;
        min-width: 176px;
        width: auto;
        border-radius: 18px;
        font-size: 24px;
    }

    .error-text {
        min-height: 38px;
        font-size: 30px;
    }

    .lead-consent {
        margin-top: 18px;
        font-size: 20px;
    }
}

/* Enhanced mobile optimization */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden;
    }

    .wrap {
        width: calc(100% - 18px);
    }

    .search-line {
        grid-template-columns: 92px 46px minmax(0, 1fr) 86px;
        gap: 8px;
    }

    .catalog-logo {
        width: 92px;
        height: 30px;
    }

    .search-spacer {
        display: none;
    }

    .region-link {
        grid-column: 1 / -1;
        margin-top: 2px;
        font-size: 13px;
    }

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

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

    .service-box {
        margin-top: 0;
        background: #f7f7f8;
        border-radius: 16px;
        padding: 14px;
    }

    .service-box h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .lead-modal {
        transform: translate(-50%, -50%) scale(0.72);
    }
}

@media (max-width: 760px) {
    .wrap {
        width: calc(100% - 12px);
    }

    .search-line {
        grid-template-columns: 78px 44px minmax(0, 1fr) 80px;
        gap: 6px;
        padding: 8px 0 10px;
    }

    .catalog-logo {
        width: 78px;
        height: 26px;
    }

    .catalog-button,
    .search-button,
    .search-input-wrap {
        height: 44px;
        border-radius: 12px;
    }

    .search-input-wrap {
        padding: 0 10px;
    }

    .search-input {
        font-size: 15px;
    }

    .search-button {
        font-size: 22px;
    }

    .region-link {
        margin-top: 0;
        font-size: 13px;
    }

    .layout {
        padding: 12px 0 24px;
        gap: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 12px;
    }

    .category-tile {
        min-height: 86px;
        padding: 8px 10px;
    }

    .category-tile span {
        max-width: 66%;
        font-size: 13px;
    }

    .category-tile img {
        right: 0;
        bottom: -7px;
        height: 84px;
    }

    .hero-strip {
        height: 94px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .section-title {
        margin-bottom: 10px;
        font-size: 32px;
        letter-spacing: -0.3px;
    }

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

    .product-card {
        padding: 6px;
        border-radius: 12px;
    }

    .product-image {
        height: 138px;
        margin-bottom: 6px;
        border-radius: 9px;
    }

    .product-name {
        font-size: 13px;
        line-height: 1.22;
        margin-bottom: 2px;
    }

    .product-price {
        font-size: 20px;
    }

    .side-column {
        display: block;
    }

    .side-box {
        border-radius: 16px;
        padding: 14px 12px;
    }

    .business-box h3 {
        font-size: 30px;
    }

    .business-grid {
        gap: 10px 8px;
    }

    .business-item img {
        width: 54px;
        height: 54px;
    }

    .service-box {
        margin-top: 12px;
    }

    .service-content h5 {
        font-size: 16px;
    }

    .service-content p,
    .service-meta p,
    .service-meta a {
        font-size: 14px;
    }

    .lead-modal {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
        width: min(96vw, 430px);
        min-height: 0;
        max-height: calc(100vh - 18px);
        padding: 18px 14px 14px;
        border-radius: 16px;
        overflow: auto;
    }

    .lead-title {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.05;
        letter-spacing: -0.2px;
    }

    .lead-form {
        margin-top: 14px;
    }

    .lead-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .phone-input {
        width: 100%;
        height: 58px;
        border-radius: 14px;
        padding: 0 16px;
        font-size: 28px;
    }

    .phone-input::placeholder {
        font-size: 27px;
    }

    .lead-row .phone-input:not(:placeholder-shown) {
        font-size: 19px;
    }

    .submit-btn {
        align-self: flex-start;
        height: 46px;
        min-width: 0;
        padding: 0 18px;
        border-radius: 12px;
        font-size: 21px;
    }

    .error-text {
        min-height: 20px;
        font-size: 17px;
        margin-top: 8px;
    }

    .lead-consent {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.28;
    }
}

@media (max-width: 420px) {
    .search-line {
        grid-template-columns: 64px 42px minmax(0, 1fr) 74px;
    }

    .catalog-logo {
        width: 64px;
        height: 22px;
    }

    .search-button {
        font-size: 19px;
    }

    .region-link {
        font-size: 12px;
    }

    .category-tile {
        min-height: 82px;
    }

    .category-tile span {
        font-size: 12px;
    }

    .category-tile img {
        height: 78px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 168px;
    }

    .lead-modal {
        width: calc(100% - 10px);
        padding: 14px 10px 12px;
        border-radius: 14px;
    }

    .lead-title {
        font-size: 30px;
    }

    .phone-input {
        height: 54px;
        font-size: 24px;
    }

    .submit-btn {
        height: 44px;
        font-size: 18px;
        border-radius: 10px;
    }
}



