.ad-showcase-carousel,
.ad-showcase-carousel * {
    box-sizing: border-box;
}

.ad-showcase-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ad-showcase-viewport {
    width: 100%;
    overflow: hidden;
}

.ad-showcase-track {
    display: flex;
    width: 100%;
    transition: transform .45s ease;
    will-change: transform;
}

.ad-showcase-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
}

.ad-showcase-slide-inner {
    display: grid;
    grid-template-columns: minmax(0, var(--ad-text-fr, 33fr)) minmax(0, var(--ad-image-fr, 67fr));
    gap: var(--ad-column-gap, 48px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.ad-showcase-slide-inner.ad-image-left {
    grid-template-columns: minmax(0, var(--ad-image-fr, 67fr)) minmax(0, var(--ad-text-fr, 33fr));
}

.ad-showcase-slide-inner.ad-image-left .ad-showcase-image {
    order: 1;
}

.ad-showcase-slide-inner.ad-image-left .ad-showcase-content {
    order: 2;
}

.ad-showcase-slide-inner.ad-image-right .ad-showcase-content {
    order: 1;
}

.ad-showcase-slide-inner.ad-image-right .ad-showcase-image {
    order: 2;
}

.ad-showcase-content {
    min-width: 0;
    max-width: 100%;
    padding: 24px 0;
    overflow-wrap: break-word;
}

.ad-showcase-image {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.ad-showcase-image a,
.ad-showcase-image img {
    display: block;
    width: 100%;
}

.ad-showcase-image img {
    height: auto;
    max-width: 100%;
}

.ad-showcase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 14px;
    border: 1px solid currentColor;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-showcase-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 16px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 600;
}

.ad-showcase-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
}

.ad-showcase-subtitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
}

.ad-showcase-description {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
    opacity: .82;
}

.ad-showcase-description p {
    margin: 0 0 12px;
}

.ad-showcase-description p:last-child {
    margin-bottom: 0;
}

.ad-showcase-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.ad-showcase-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, .18);
    border-radius: 0;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.ad-showcase-arrow:hover {
    color: #fff;
}

.ad-showcase-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 12px;
    color: #111827;
}

.ad-showcase-counter .ad-sep {
    display: block;
    width: 52px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.ad-showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.ad-showcase-dot {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, .25);
    cursor: pointer;
}

.ad-showcase-dot.is-active {
    width: 24px;
}

.ad-project-nav,
.ad-project-nav * {
    box-sizing: border-box;
}

.ad-project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.ad-project-nav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 130px;
    padding: 28px 32px;
    border: 1px solid rgba(17, 24, 39, .12);
    background: #fff;
    text-decoration: none !important;
    transition: .2s ease;
}

.ad-project-nav-card:hover {
    transform: translateY(-2px);
}

.ad-project-nav-next {
    text-align: right;
}

.ad-project-nav-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-project-nav-title {
    display: block;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
}

.ad-project-nav-arrow {
    font-size: 28px;
    line-height: 1;
    color: #111827;
    opacity: .65;
}

@media (max-width: 767px) {
    .ad-showcase-slide-inner,
    .ad-showcase-slide-inner.ad-image-left,
    .ad-showcase-slide-inner.ad-image-right {
        flex-direction: column;
        min-height: 0 !important;
    }

    .ad-showcase-content,
    .ad-showcase-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ad-showcase-content {
        order: 2;
        padding: 22px 0 0;
    }

    .ad-showcase-image {
        order: 1;
    }

    .ad-showcase-title {
        font-size: 26px;
    }

    .ad-showcase-subtitle {
        font-size: 16px;
    }

    .ad-showcase-controls {
        top: 12px;
        right: 12px;
    }

    .ad-showcase-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .ad-project-nav {
        grid-template-columns: 1fr;
    }

    .ad-project-nav-card {
        min-height: 110px;
        padding: 22px;
    }

    .ad-project-nav-title {
        font-size: 20px;
    }
}

.ad-project-nav-empty {
    padding: 18px 22px;
    border: 1px dashed rgba(17, 24, 39, .18);
    background: rgba(165, 145, 96, .06);
    color: #111827;
    font-size: 14px;
}

.ad-project-nav-card:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .ad-showcase-slide-inner,
    .ad-showcase-slide-inner.ad-image-left,
    .ad-showcase-slide-inner.ad-image-right {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ad-showcase-slide-inner.ad-image-left .ad-showcase-image,
    .ad-showcase-slide-inner.ad-image-right .ad-showcase-image {
        order: 1;
    }

    .ad-showcase-slide-inner.ad-image-left .ad-showcase-content,
    .ad-showcase-slide-inner.ad-image-right .ad-showcase-content {
        order: 2;
    }
}

@media (max-width: 767px) {
    .ad-showcase-controls {
        top: 14px;
        right: 14px;
    }

    .ad-showcase-arrow {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }

    .ad-showcase-title {
        font-size: 28px;
    }

    .ad-showcase-subtitle {
        font-size: 17px;
    }
}

/* AD Masonry Gallery */
.ad-masonry-gallery,
.ad-masonry-gallery * {
    box-sizing: border-box;
}

.ad-masonry-gallery {
    width: 100%;
    columns: 3;
    column-gap: 18px;
}

.ad-masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.ad-masonry-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .08);
}

.ad-masonry-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    transition: transform .45s ease, filter .45s ease;
}

.ad-masonry-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 26px;
    background: rgba(17, 24, 39, .78);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .32s ease, transform .32s ease;
    pointer-events: none;
}

.ad-masonry-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.02);
}

.ad-masonry-card:hover .ad-masonry-overlay,
.ad-masonry-card:focus .ad-masonry-overlay,
.ad-masonry-card:focus-visible .ad-masonry-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ad-masonry-badge {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #a59160;
}

.ad-masonry-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.ad-masonry-desc {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
}

@media (max-width: 1024px) {
    .ad-masonry-gallery { columns: 2; }
}

@media (max-width: 767px) {
    .ad-masonry-gallery { columns: 1; }
    .ad-masonry-overlay {
        position: relative;
        opacity: 1;
        transform: none;
        background: #111827;
        padding: 18px;
    }
}

.ad-project-nav-prev span {
    text-align: end;
}

.ad-project-nav-next span {
    text-align: start;
}

/* AD Career Timeline Modal */
.ad-career-widget,
.ad-career-widget * {
    box-sizing: border-box;
}

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

.ad-career-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 182px;
    padding: 22px;
    border: 1px solid #dedbd4;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ad-career-card:hover,
.ad-career-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(165, 145, 96, .7);
    outline: none;
}

.ad-career-year {
    margin-bottom: 12px;
    color: #a59160;
    font-size: 20px;
    line-height: 1.1;
}

.ad-career-milestone {
    margin: 0 0 12px;
    color: #111;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 600;
    text-transform: uppercase;
}

.ad-career-role {
    margin-bottom: 14px;
    color: #a59160;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
}

.ad-career-company,
.ad-career-location {
    color: #77736f;
    font-size: 15px;
    line-height: 1.4;
}

.ad-career-company {
    margin-bottom: 10px;
}

.ad-career-location-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
}

.ad-career-more {
    color: #a59160;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: .84;
}

.ad-career-card:hover .ad-career-more,
.ad-career-card:focus-visible .ad-career-more {
    opacity: 1;
}

.ad-career-modal[hidden] {
    display: none !important;
}

.ad-career-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .22s ease;
}

.ad-career-modal.is-open {
    opacity: 1;
}


.ad-career-more {
    right: 5px;
    position: absolute;
    bottom: 14px;
    padding: 5px 10px;
}

.ad-career-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 26, .70);
    backdrop-filter: blur(5px);
}

.ad-career-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 880px);
    max-height: min(70vh, 750px);
    overflow: auto;
    border: 1px solid rgba(165, 145, 96, .24);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
    transform: translateY(18px) scale(.985);
    transition: transform .22s ease;
    outline: none;
}

.ad-career-modal.is-open .ad-career-dialog {
    transform: translateY(0) scale(1);
}

.ad-career-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #a38400;
    border-radius: 50%;
    background: #fff;
    color: #a38400 !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ad-career-close:hover,
.ad-career-close:focus-visible {
    border-color: #a59160;
    color: #a59160;
    outline: none;
}

.ad-career-modal-header {
    padding: 42px 58px 34px;
    border-bottom: 1px solid rgba(17, 24, 39, .09);
    background: linear-gradient(135deg, rgba(165, 145, 96, .10), rgba(255,255,255,0) 70%);
}

.ad-career-modal-year {
    margin-bottom: 10px;
    color: #a59160;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ad-career-modal-title {
    margin: 0 56px 12px 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 700;
}

.ad-career-modal-role {
    margin-bottom: 18px;
    color: #a59160;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

.ad-career-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #77736f;
    font-size: 15px;
}

.ad-career-modal-meta span + span::before {
    content: "•";
    margin-right: 18px;
    color: #a59160;
}

.ad-career-modal-body {
    display: grid;
    gap: 0;
    padding: 10px 58px 48px;
}

.ad-career-section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(17, 24, 39, .09);
}

.ad-career-section h3 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ad-career-overview,
.ad-career-overview p,
.ad-career-responsibilities {
    color: #454545;
    font-size: 16px;
    line-height: 1.75;
}

.ad-career-overview p {
    margin: 0 0 12px;
}

.ad-career-overview p:last-child {
    margin-bottom: 0;
}

.ad-career-responsibilities {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad-career-responsibilities li {
    position: relative;
    padding-left: 23px;
}

.ad-career-responsibilities li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #a59160;
    font-weight: 800;
}

.ad-career-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ad-career-tech {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #a59160;
    border-radius: 999px;
    color: #a59160;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.ad-career-reference {
    margin-top: 30px;
    padding: 22px 24px;
    border-radius: 12px;
    background: #f7f2e8;
}

.ad-career-reference p {
    margin: 0 0 8px;
    color: #4e4638;
    font-size: 14px;
    line-height: 1.6;
}

.ad-career-reference a {
    color: #8d6f25;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ad-career-reference a:hover,
.ad-career-reference a:focus-visible {
    text-decoration: underline;
}

html.ad-career-modal-open,
body.ad-career-modal-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .ad-career-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ad-career-grid {
        grid-template-columns: 1fr;
    }

    .ad-career-card {
        min-height: 0;
    }

    .ad-career-modal {
        align-items: end;
        padding: 10px;
    }

    .ad-career-dialog {
        max-height: 92vh;
        border-radius: 16px 16px 8px 8px;
    }

    .ad-career-modal-header {
        padding: 34px 24px 26px;
    }

    .ad-career-modal-title {
        margin-right: 44px;
        font-size: 30px;
    }

    .ad-career-modal-body {
        padding: 6px 24px 32px;
    }

    .ad-career-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .ad-career-modal-meta {
        display: grid;
        gap: 5px;
    }

    .ad-career-modal-meta span + span::before {
        content: none;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-career-card,
    .ad-career-modal,
    .ad-career-dialog {
        transition: none;
    }
}

/* Product Showcase Modal */
.ad-product-widget,
.ad-product-widget * {
    box-sizing: border-box;
}

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

.ad-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 360px;
    padding: 0px !important;
    border: 0px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    outline: none;
}

.ad-product-card:hover,
.ad-product-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(165,145,96,.6);
}

.ad-product-logo-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dedbd4;
    border-radius: 9px;
    background: #fff;
}

.ad-product-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-product-name {
    margin: 0 0 10px;
    color: #111;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.ad-product-tagline {
    margin-bottom: 15px;
    color: #77736f;
    font-size: 16px;
    line-height: 1.45;
}

.ad-product-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 13px;
    margin-top: auto;
    font-size: 13px;
    line-height: 1.3;
}

.ad-product-status {
    color: #a59160;
    font-weight: 700;
}

.ad-product-category {
    color: #77736f;
}

.ad-product-category::before {
    content: "•";
    margin-right: 13px;
    color: #a59160;
}

.ad-product-view {
    color: #a59160 !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: .84;
}


.ad-product-view-more {
    margin-bottom: 0px !important;
    margin-top: 10px !important;
}

.ad-product-card:hover .ad-product-view,
.ad-product-card:focus-visible .ad-product-view {
    opacity: 1;
}

.ad-product-modal[hidden] {
    display: none !important;
}

.ad-product-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .22s ease;
}

.ad-product-modal.is-open {
    opacity: 1;
}

.ad-product-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12,18,26,.70);
    backdrop-filter: blur(5px);
}

.ad-product-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
    max-height: min(70vh, 750px);
    overflow: auto;
    border: 1px solid rgba(165,145,96,.24);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    transform: translateY(18px) scale(.985);
    transition: transform .22s ease;
    outline: none;
}

.ad-product-modal.is-open .ad-product-dialog {
    transform: translateY(0) scale(1);
}

.ad-product-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #a38400;
    border-radius: 50%;
    background: #fff;
    color: #a38400 !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ad-product-close:hover,
.ad-product-close:focus-visible {
    border-color: #a59160;
    color: #a59160;
    outline: none;
}

.ad-product-modal-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    padding: 38px 58px 32px;
    border-bottom: 1px solid rgba(17,24,39,.09);
    background: linear-gradient(135deg, rgba(165,145,96,.10), rgba(255,255,255,0) 70%);
}

.ad-product-modal-logo-wrap {
    display: grid;
    place-items: center;
    width: 180px;
    height: 130px;
    padding: 16px;
    border: 1px solid rgba(165,145,96,.24);
    border-radius: 10px;
    background: #fff;
}

.ad-product-modal-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-product-modal-status {
    margin-bottom: 8px;
    color: #a59160;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ad-product-modal-title {
    margin: 0 56px 10px 0;
    color: #111827;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 700;
}

.ad-product-modal-tagline {
    margin-bottom: 10px;
    color: #3f3f3f;
    font-size: 19px;
    line-height: 1.45;
}

.ad-product-modal-category {
    color: #77736f;
    font-size: 14px;
}

.ad-product-modal-body {
    padding: 8px 58px 48px;
}

.ad-product-section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(17,24,39,.09);
}

.ad-product-section h3 {
    margin: 0 0 15px;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ad-product-richtext,
.ad-product-richtext p,
.ad-product-list {
    color: #454545;
    font-size: 16px;
    line-height: 1.75;
}

.ad-product-richtext p {
    margin: 0 0 12px;
}

.ad-product-richtext p:last-child {
    margin-bottom: 0;
}

.ad-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad-product-list li {
    position: relative;
    padding-left: 23px;
}

.ad-product-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #a59160;
    font-weight: 800;
}

.ad-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ad-product-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #a59160;
    border-radius: 999px;
    color: #a59160;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.ad-product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 30px;
}

.ad-product-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid #a59160;
    border-radius: 999px;
    color: #a59160;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.ad-product-link:hover,
.ad-product-link:focus-visible {
    background: rgba(165,145,96,.08);
}

html.ad-product-modal-open,
body.ad-product-modal-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .ad-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ad-product-grid {
        grid-template-columns: 1fr;
    }

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

    .ad-product-modal {
        align-items: end;
        padding: 10px;
    }

    .ad-product-dialog {
        max-height: 92vh;
        border-radius: 16px 16px 8px 8px;
    }

    .ad-product-modal-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 24px 26px;
    }

    .ad-product-modal-logo-wrap {
        width: 150px;
        height: 105px;
    }

    .ad-product-modal-title {
        margin-right: 44px;
        font-size: 30px;
    }

    .ad-product-modal-body {
        padding: 4px 24px 32px;
    }

    .ad-product-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .ad-product-card,
    .ad-product-modal,
    .ad-product-dialog {
        transition: none;
    }
}
