.promo-cabinet .ads-cabinet__body {
    overflow: visible;
}

.promo-cabinet .ads-cabinet__notice {
    margin-top: 1.5rem;
}

.promo-cabinet .btn._green._fill {
    border-color: #168058;
    background: #168058;
    color: #fff;
}

.promo-cabinet .btn:disabled {
    cursor: default;
    opacity: 0.72;
}

.promo-pricing {
    margin: 0;
    padding: 0;
    background: transparent;
}

.promo-pricing__title {
    margin: 0 0 1rem;
    color: #172033;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.25;
}

.promo-pricing__table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
}

.promo-pricing__table {
    width: 100%;
    border-collapse: collapse;
    color: #27364c;
    font-size: 1rem;
}

.promo-pricing__table th,
.promo-pricing__table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #e4ebf3;
    text-align: left;
    vertical-align: top;
}

.promo-pricing__table th {
    background: #eaf3ff;
    color: #536278;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.promo-pricing__table td:first-child {
    color: #172033;
    font-weight: 850;
}

.promo-pricing__table tbody tr:last-child td {
    border-bottom: 0;
}

.promo-pricing__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 1rem 0 0;
    padding: 0;
    color: #66758a;
    font-size: 0.95rem;
    line-height: 1.45;
    list-style: none;
}

.promo-pricing__list li {
    position: relative;
    padding: 0 1rem 0 1.1rem;
}

.promo-pricing__list li::before {
    position: absolute;
    top: 0.42rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #1670cc;
    content: "";
}

.my-ads {
    margin: 0;
}

.ads-form {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
}

.ads-form__heading {
    margin-bottom: 1.25rem;
}

.ads-form__heading h2 {
    margin: 0 0 0.3rem;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
}

.ads-form__heading p {
    max-width: 46rem;
    margin: 0;
    color: #66758a;
    font-size: 1rem;
    line-height: 1.5;
}

.ads-form__errors,
.ads-form__success {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.ads-form__errors {
    background: #fff0ef;
    color: #a3302a;
}

.ads-form__success {
    background: #e7f7ef;
    color: #176744;
}

.ads-form__errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.ads-form__errors--calc {
    margin: 0.9rem 0 0;
}

.ads-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ads-form__field {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    min-width: 0;
}

.ads-form__field--wide {
    grid-column: 1 / -1;
}

.ads-form__label {
    color: #27364c;
    font-size: 0.95rem;
    font-weight: 850;
}

.ads-form__input,
.ads-form__textarea,
.ads-form__select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid #d4dfeb;
    border-radius: 0.8rem;
    background: #f8fafc;
    color: #172033;
    font: inherit;
    font-size: 1rem;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ads-form__input:hover,
.ads-form__textarea:hover,
.ads-form__select:hover {
    border-color: #aebfd1;
}

.ads-form__input:focus,
.ads-form__textarea:focus,
.ads-form__select:focus {
    border-color: #2187ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 135, 255, 0.1);
}

.ads-form__input:disabled {
    background: #edf1f5;
    color: #738196;
    cursor: not-allowed;
}

.ads-form__textarea {
    min-height: 8.5rem;
    line-height: 1.5;
    resize: vertical;
}

.ads-form__hint {
    color: #66758a;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ads-form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.ads-form__check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.75rem;
    background: #f3f7fb;
    color: #27364c;
    font-size: 0.95rem;
    font-weight: 750;
    cursor: pointer;
}

.ads-form__check input,
.ads-rules__agree input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #1670cc;
}

.ads-form__submit {
    margin-top: 1.15rem;
}

.ads-preview {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
}

.ads-preview__title {
    margin: 0;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
}

.ads-preview__hint {
    margin: 0.35rem 0 0;
    color: #66758a;
    font-size: 0.95rem;
    line-height: 1.45;
}

.ads-preview__hint + .ads-preview__hint {
    margin-bottom: 1rem;
}

.camera-ads {
    overflow: hidden;
    border-radius: 0.9rem;
    background: #f6f9fd;
}

.camera-ads__label {
    padding: 0.5rem 0.8rem;
    background: #eaf3ff;
    color: #155ca8;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.camera-ads__list,
.camera-ads__phone-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.camera-ads__item {
    padding: 1rem;
}

.camera-ads__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.camera-ads__content {
    min-width: 0;
    flex: 1;
}

.camera-ads__text {
    color: #27364c;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.camera-ads__phones,
.camera-ads__details {
    margin-top: 0.65rem;
}

.camera-ads__phone-list,
.camera-ads__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.camera-ads__phone-list {
    margin-top: 0.35rem;
}

.camera-ads__details-label {
    color: #536278;
    font-size: 0.95rem;
    font-weight: 850;
}

.camera-ads__phone-link {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    color: #31516f;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.camera-ads__link {
    color: #1670cc;
    font-size: 0.95rem;
    font-weight: 750;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.camera-ads__phone-link:hover,
.camera-ads__link:hover {
    text-decoration: underline;
}

.camera-ads__thumb {
    display: block;
    overflow: hidden;
    width: 7.5rem;
    min-width: 7.5rem;
    border-radius: 0.75rem;
    background: #e9eff6;
}

.camera-ads__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.ads-preview__calc {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #f6f9fd;
}

.ads-preview__calc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.ads-preview__calc-grid--summary {
    margin-top: 1rem;
    padding-top: 1rem;
}

.ads-preview__recalculate {
    margin-top: 0.85rem;
}

.ads-preview__calc-value {
    margin-top: 0.12rem;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 900;
}

.ads-preview__breakdown {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
}

.ads-preview__breakdown-title {
    margin-bottom: 0.45rem;
    color: #536278;
    font-weight: 850;
}

.ads-preview__breakdown-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #526176;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ads-preview__breakdown-list li + li {
    margin-top: 0.3rem;
}

.ads-preview__before-discount {
    margin-top: 0.65rem;
}

.ads-preview__total {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    color: #1670cc;
    font-size: 1.25rem;
    font-weight: 900;
}

.ads-preview__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.promo-payment-form {
    display: grid;
    flex: 1 1 100%;
    gap: 0.75rem;
}

.promo-payment-form__primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #eaf3ff;
}

.ads-rules__agree {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.55rem;
    color: #27415f;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.4;
    cursor: pointer;
}

.ads-rules__agree input {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.ads-rules {
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    background: #f6f9fd;
}

.ads-rules__title {
    color: #31516f;
    font-size: 0.95rem;
    font-weight: 850;
    cursor: pointer;
}

.ads-rules__title:hover {
    color: #1670cc;
}

.ads-rules__list {
    margin: 0.8rem 0 0;
    padding-left: 1.35rem;
    color: #66758a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ads-rules__list li + li {
    margin-top: 0.35rem;
}

.ads-rules__alert {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: #fff4dd;
    color: #754415;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
}

.my-ads__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.7rem;
    padding-top: 1.6rem;
}

.my-ads__title {
    margin: 0;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
}

.my-ads__subtitle {
    max-width: 32rem;
    margin: 0;
    color: #66758a;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: right;
}

.my-ads__empty {
    margin-top: 1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #66758a;
    font-size: 1rem;
}

.my-ads__list {
    display: grid;
    gap: 0;
    margin-top: 1rem;
}

.my-ads__card {
    padding: 1.15rem 0;
    border-radius: 0;
    background: transparent;
}

.my-ads__card + .my-ads__card {
    border-top: 1px solid #e4ebf3;
}

.my-ads__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.my-ads__header-main {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.my-ads__id {
    color: #738196;
    font-size: 0.9rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.my-ads__resort {
    color: #172033;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
}

.my-ads__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.my-ads__badge {
    display: inline-flex;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.my-ads__badge--active {
    background: #dff5e9;
    color: #15724a;
}

.my-ads__badge--inactive {
    background: #ffe5e3;
    color: #a3302a;
}

.my-ads__badge--dev {
    background: #fff0d8;
    color: #8a4d12;
}

.my-ads__camera {
    background: #f6f9fd;
}

.my-ads__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: #66758a;
    font-size: 0.9rem;
    line-height: 1.4;
}

.my-ads__meta-separator {
    color: #a3adba;
}

.my-ads__link {
    color: #1670cc;
    font-weight: 800;
    text-decoration: none;
}

.my-ads__link:hover {
    text-decoration: underline;
}

.my-ads__stats {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.my-ads__stats-toggle {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e7f1fc;
    color: #31516f;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.my-ads__stats-toggle:hover {
    background: #d5e7fc;
    transform: translateY(-1px);
}

.my-ads__stats-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(15rem, calc(100vw - 2rem));
    padding: 0.75rem;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 16px 36px rgba(28, 51, 84, 0.18);
}

.my-ads__stats-menu[hidden] {
    display: none;
}

.my-ads__stats-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.22rem 0;
    color: #536278;
    font-size: 0.9rem;
}

.my-ads__stats-value {
    color: #172033;
    font-weight: 900;
}

.my-ads__stats-total {
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    font-weight: 850;
}

body.dark .ads-preview__calc {
    background: #29323d;
}

body.dark .promo-pricing__title,
body.dark .ads-form__heading h2,
body.dark .ads-preview__title,
body.dark .ads-preview__calc-value,
body.dark .my-ads__title,
body.dark .my-ads__resort {
    color: #f1f6fd;
}

body.dark .promo-cabinet .ads-form__heading,
body.dark .promo-cabinet .my-ads__header,
body.dark .promo-cabinet .my-ads__card-header {
    background: transparent;
}

body.dark .my-ads__stats-menu {
    background: #313b47;
}

body.dark .promo-pricing__table {
    color: #dce6f2;
}

body.dark .promo-pricing__table th {
    background: #354150;
    color: #b9c7d8;
}

body.dark .promo-pricing__table td {
    border-color: #414d5c;
}

body.dark .promo-pricing__table td:first-child {
    color: #eef4fc;
}

body.dark .promo-pricing__list,
body.dark .ads-form__heading p,
body.dark .ads-form__hint,
body.dark .ads-preview__hint,
body.dark .ads-preview__breakdown-list,
body.dark .my-ads__subtitle,
body.dark .my-ads__empty,
body.dark .my-ads__id,
body.dark .my-ads__meta {
    color: #aab7c8;
}

body.dark .ads-rules {
    background: #29323d;
}

body.dark .ads-form__label,
body.dark .ads-form__check {
    color: #eef4fc;
}

body.dark .ads-form__check {
    background: #29323d;
}

body.dark .ads-form__input,
body.dark .ads-form__textarea,
body.dark .ads-form__select {
    border-color: #465466;
    background: #29323d;
    color: #eef4fc;
}

body.dark .ads-form__input:focus,
body.dark .ads-form__textarea:focus,
body.dark .ads-form__select:focus {
    border-color: #539fff;
    background: #303b48;
}

body.dark .ads-form__input:disabled {
    background: #343e4a;
    color: #91a0b2;
}

body.dark .ads-form__errors {
    background: rgba(224, 96, 89, 0.15);
    color: #ffb5b0;
}

body.dark .ads-form__success {
    background: rgba(62, 187, 126, 0.14);
    color: #a9eacb;
}

body.dark .camera-ads {
    background: #313b47;
}

body.dark .my-ads__card + .my-ads__card {
    border-color: #394553;
}

body.dark .camera-ads__label {
    background: rgba(83, 159, 255, 0.16);
    color: #9dcbff;
}

body.dark .camera-ads__text {
    color: #e4edf7;
}

body.dark .camera-ads__details-label {
    color: #aab7c8;
}

body.dark .camera-ads__phone-link {
    background: #3a4654;
    color: #dce8f5;
}

body.dark .camera-ads__link,
body.dark .my-ads__link {
    color: #8bc3ff;
}

body.dark .camera-ads__thumb {
    background: #3a4654;
}

body.dark .ads-preview__breakdown-title {
    color: #b9c7d8;
}

body.dark .ads-preview__total {
    color: #9dcbff;
}

body.dark .promo-payment-form__primary {
    background: rgba(83, 159, 255, 0.14);
}

body.dark .ads-rules__agree {
    color: #d9e7f6;
}

body.dark .ads-rules__title {
    color: #b8d9ff;
}

body.dark .ads-rules__title:hover {
    color: #e0efff;
}

body.dark .ads-rules__list {
    color: #aab7c8;
}

body.dark .ads-rules__alert {
    background: #354150;
    color: #f5d9a8;
}

body.dark .my-ads__stats-toggle {
    background: rgba(83, 159, 255, 0.16);
    color: #b8d9ff;
}

body.dark .my-ads__stats-row {
    color: #b9c7d8;
}

body.dark .my-ads__stats-value {
    color: #f1f6fd;
}

@media (max-width: 768px) {
    .promo-pricing__table {
        min-width: 34rem;
    }

    .promo-pricing__list {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .promo-pricing__list li {
        padding-right: 0;
    }

    .ads-form__grid,
    .ads-preview__calc-grid {
        grid-template-columns: 1fr;
    }

    .ads-form__field--wide {
        grid-column: auto;
    }

    .promo-payment-form__primary {
        grid-template-columns: 1fr;
    }

    .promo-payment-form__primary .btn {
        width: 100%;
    }

    .my-ads__header,
    .my-ads__card-header {
        display: block;
    }

    .my-ads__subtitle {
        margin-top: 0.35rem;
        text-align: left;
    }

    .my-ads__badges {
        justify-content: flex-start;
        margin-top: 0.65rem;
    }
}

@media (max-width: 520px) {
    .promo-pricing,
    .ads-preview__calc {
        padding: 0.85rem;
    }

    .my-ads__card {
        padding: 0.85rem 0;
    }

    .camera-ads__row {
        display: grid;
    }

    .camera-ads__thumb {
        width: min(100%, 16rem);
        min-width: 0;
    }

    .ads-form__submit,
    .ads-preview__actions > .btn {
        width: 100%;
    }

    .my-ads__meta-separator {
        display: none;
    }

    .my-ads__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
