﻿.advertising-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}

.advertising-header {
    max-width: 780px;
    margin: 0 auto 50px;
    text-align: center;
}

.advertising-header h1 {
    margin: 0 0 15px;
}

.advertising-header p {
    margin: 0;
    color: #5f6872;
    line-height: 1.65;
}


.advertising-section {
    margin-bottom: 45px;
}

.advertising-section-heading {
    margin-bottom: 25px;
    text-align: center;
}

.advertising-section-heading h2 {
    margin: 0 0 8px;
}

.advertising-section-heading p {
    margin: 0;
    color: #5f6872;
}


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

.advertising-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 22px 18px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    color: #252b32;
    font: inherit;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.advertising-option:hover {
    border-color: #0865e8;
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px
        rgba(0, 0, 0, 0.07);
}

.advertising-option.is-active {
    border-color: #0865e8;
    box-shadow:
        0 0 0 2px
        rgba(8, 101, 232, 0.1);
}

.advertising-option strong {
    color: #0865e8;
    font-size: 1.05rem;
}

.advertising-option > span:last-child {
    color: #68727c;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}


.ad-miniature {
    position: relative;
    display: block;
    width: 145px;
    height: 95px;
    margin-bottom: 8px;
    background: #f4f6f8;
    border: 1px solid #e0e5ea;
    border-radius: 5px;
    overflow: hidden;
}

.ad-miniature span {
    position: absolute;
    display: block;
    background: #d5d9dd;
}

.ad-miniature .mini-ad {
    background: #0865e8;
}

.mini-header {
    top: 8px;
    left: 8px;
    width: 129px;
    height: 10px;
}

.mini-content {
    top: 25px;
    left: 8px;
    width: 82px;
    height: 54px;
}

.mini-content-small {
    top: 25px;
    right: 8px;
    width: 39px;
    height: 25px;
}

.mini-side {
    right: 8px;
    bottom: 8px;
    width: 39px;
    height: 24px;
}


.ad-miniature-top .mini-ad {
    top: 22px;
    left: 8px;
    width: 129px;
    height: 17px;
}

.ad-miniature-top .mini-content {
    top: 46px;
    height: 33px;
}

.ad-miniature-top .mini-content-small {
    top: 46px;
}


.ad-miniature-billboard .mini-ad {
    top: 25px;
    left: 8px;
    width: 129px;
    height: 24px;
}

.ad-miniature-billboard .mini-content {
    top: 56px;
    height: 23px;
}

.ad-miniature-billboard .mini-content-small {
    top: 56px;
}


.ad-miniature-sidebar .mini-ad {
    top: 25px;
    right: 8px;
    width: 35px;
    height: 54px;
}

.ad-miniature-sidebar .mini-content {
    width: 86px;
}

.ad-miniature-sidebar .mini-content-small {
    display: none;
}


.ad-miniature-premium .mini-premium-ad {
    position: absolute;
    top: 14px;
    left: 8px;
    width: 129px;
    height: 50px;
    border-radius: 2px;
    background: #0865e8;
}

.ad-miniature-premium .mini-premium-search {
    position: absolute;
    z-index: 3;
    display: grid;
    grid-template-columns:
        1fr
        1fr
        18px;
    gap: 3px;
    left: 27px;
    bottom: 16px;
    width: 91px;
    height: 23px;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #d4dae0;
    border-radius: 3px;
    background: #ffffff;
    box-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.12);
}

.ad-miniature-premium
.mini-search-field,
.ad-miniature-premium
.mini-search-button {
    position: static;
    width: auto;
    height: auto;
    border-radius: 2px;
    background: #d5d9dd;
}

.advertising-details {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.8fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 55px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    box-shadow:
        0 5px 22px
        rgba(0, 0, 0, 0.05);
}


.preview-browser {
    overflow: hidden;
    border: 1px solid #ccd3da;
    border-radius: 10px;
    background: #ffffff;
}

.preview-browser-top {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: #edf0f3;
}

.preview-browser-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b6bdc5;
}

.preview-page {
    position: relative;
    min-height: 330px;
    padding: 20px;
    background: #f7f8fa;
}

.preview-logo {
    margin-bottom: 18px;
    color: #0865e8;
    font-weight: 700;
}

.preview-vehicle-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 12px;
    width: 100%;
}

.preview-vehicle-card {
    min-width: 0;
    padding-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8dee5;
    border-radius: 6px;
}

.preview-vehicle-image {
    width: 100%;
    height: 92px;
    background: #dce1e6;
}

.preview-vehicle-line {
    width: 72%;
    height: 9px;
    margin:
        12px 10px
        0;
    border-radius: 3px;
    background: #dce1e6;
}

.preview-vehicle-line.short {
    width: 48%;
    margin-top: 7px;
}

.preview-layout-search {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 12px;
    width: 100%;
}

.preview-layout-detail {
    display: grid;
    grid-template-columns:
        minmax(0, 2.2fr)
        minmax(100px, 0.8fr);
    gap: 12px;
    width: 100%;
    align-items: start;
}

.preview-detail-main {
    min-height: 230px;
    border-radius: 6px;
    background: #dce1e6;
}

.preview-detail-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-detail-side {
    min-height: 105px;
    border-radius: 6px;
    background: #dce1e6;
}

.preview-layout-neutral {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(90px, 0.8fr);
    gap: 12px;
    width: 100%;
}

.preview-neutral-main {
    min-height: 170px;
    border-radius: 6px;
    background: #dce1e6;
}

.preview-neutral-side {
    min-height: 105px;
    border-radius: 6px;
    background: #dce1e6;
}


.preview-content,
.preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-block {
    min-height: 55px;
    border-radius: 5px;
    background: #dde2e7;
}

.preview-block-large {
    min-height: 110px;
}


.preview-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: #0865e8;
    color: #ffffff;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.preview-ad-top {
    position: relative;
    width: 100%;
    height: 48px;
    margin-bottom: 15px;
}

.preview-ad-billboard {
    position: relative;
    width: 100%;
    height: 70px;
    margin-bottom: 15px;
}

.preview-ad-sidebar {
    position: absolute;
    top: 85px;
    right: 20px;
    width: 27%;
    height: 185px;
}

.preview-ad-premium {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 155px;
    margin-bottom: 0;
    border-radius: 7px;
    font-size: 0.95rem;
}

.preview-layout-premium {
    position: relative;
    width: 100%;
}

.preview-premium-search {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns:
        1fr
        1fr
        60px;
    gap: 7px;
    width: 72%;
    min-height: 58px;
    margin:
        -29px auto
        0;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #d4dae0;
    border-radius: 7px;
    background: #ffffff;
    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.12);
}

.preview-search-line {
    min-width: 0;
    border-radius: 4px;
    background: #dce1e6;
}

.preview-search-button {
    border-radius: 4px;
    background: #dce1e6;
}

.advertising-label {
    display: block;
    margin-bottom: 7px;
    color: #0865e8;
    font-size: 0.88rem;
    font-weight: 700;
}

.advertising-information h2 {
    margin: 0 0 12px;
}

.advertising-information > p {
    margin: 0 0 24px;
    color: #59636d;
    line-height: 1.6;
}


.advertising-data {
    margin: 0 0 25px;
}

.advertising-data div {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 11px 0;
    border-bottom: 1px solid #e5e9ed;
}

.advertising-data dt {
    color: #59636d;
}

.advertising-data dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}


.advertising-requirements {
    margin-bottom: 24px;
    padding: 18px;
    background: #f5f8fc;
    border-radius: 8px;
}

.advertising-requirements h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.advertising-requirements p {
    margin: 0;
    color: #59636d;
    line-height: 1.55;
}


.advertising-button {
    display: block;
    padding: 13px 18px;
    border-radius: 7px;
    background: #0865e8;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.advertising-button:hover {
    background: #0758c9;
    transform: translateY(-1px);
}


.advertising-note {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.advertising-note h2 {
    margin: 0 0 14px;
}

.advertising-note p {
    color: #5f6872;
    line-height: 1.65;
}

.ad-miniature-top .mini-vehicle {
    position: absolute;
    top: 46px;
    width: 37px;
    height: 39px;
    background: #d5d9dd;
    border-radius: 2px;
}

.ad-miniature-top .mini-vehicle-1 {
    left: 8px;
}

.ad-miniature-top .mini-vehicle-2 {
    left: 54px;
}

.ad-miniature-top .mini-vehicle-3 {
    right: 8px;
}

.preview-layout-sidebar {
    display: grid;
    grid-template-columns:
        minmax(0, 2.2fr)
        minmax(100px, 0.8fr);
    gap: 12px;
    width: 100%;
    align-items: start;
}

.preview-sidebar-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 115px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 6px;
    background: #0865e8;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}


@media (max-width: 950px) {

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

    .advertising-details {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .advertising-page {
        padding:
            35px 18px
            50px;
    }

    .advertising-options {
        grid-template-columns: 1fr;
    }

    .advertising-details {
        padding: 22px 18px;
    }

    .preview-page {
        min-height: 280px;
    }

    .advertising-data div {
        gap: 15px;
    }

}

