.epc-car-detail-page {
    max-width: var(--epc-detail-max-width, 1000px);
    margin: 0 auto 40px;
    padding: 0 14px 18px;
    box-sizing: border-box;
}

.epc-car-detail-hero--topline {
    padding: 18px 6px 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e8edf5;
}

.epc-car-detail-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.epc-car-detail-hero-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.epc-car-detail-headline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 0;
    align-items: center;
    font-weight: 600;
}

.epc-car-detail-headline span + span::before {
    content: "•";
    color: #c2cad6;
    margin-right: 10px;
}

.epc-car-detail-topline-price {
    flex: 0 0 auto;
    font-size: 13px;
    color: #475569;
    white-space: nowrap;
    background: linear-gradient(145deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px 14px;
}

.epc-car-detail-topline-price span,
.epc-car-detail-topline-price em {
    vertical-align: baseline;
    font-style: normal;
}

.epc-installment-term {
    border: 1px solid #c9d8ee;
    background: #fff;
    border-radius: 8px;
    height: 34px;
    padding: 0 28px 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    vertical-align: middle;
    margin: 0 4px;
}

.epc-car-detail-topline-price strong {
    font-size: 20px;
    color: #1d4ed8;
    margin: 0 3px;
}

.epc-car-detail-topline-price b {
    font-size: 40px;
    color: #0369a1;
    margin: 0 3px;
    letter-spacing: -0.04em;
}

.epc-car-detail-topline-price--lease {
    white-space: nowrap;
}

.epc-modern-lease-headline__prefix,
.epc-modern-lease-headline__suffix {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
}

.epc-modern-lease-headline__amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--epc-site-price, var(--maincolor, #0369a1));
    letter-spacing: -0.04em;
    margin: 0 4px;
}

.epc-car-detail-mainimg-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.epc-car-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 12px;
    margin-bottom: 16px;
    align-items: start;
}

.epc-car-detail-mo-actions {
    display: none;
}

.epc-car-detail-gallery {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.epc-car-detail-mainimg {
    width: 100%;
    height: 530px;
    object-fit: cover;
    display: block;
}

.epc-car-detail-mainimg--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f3f4f6;
}

.epc-car-detail-side-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    align-content: start;
}

.epc-car-detail-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    appearance: none;
}

.epc-car-detail-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #d5deea;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.epc-car-detail-thumb:hover img {
    transform: translateY(-1px);
    border-color: #7dd3fc;
}

.epc-car-detail-thumb.is-on img {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9 inset;
}

.epc-car-detail-info3 {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr 0.85fr;
    gap: 14px;
    margin-bottom: 16px;
    align-items: stretch;
}

.epc-car-detail-info-col {
    min-width: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    padding: 14px;
}

.epc-car-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.epc-car-detail-table th,
.epc-car-detail-table td {
    border: 0;
    padding: 10px 8px;
    border-bottom: 1px solid #e9eff7;
}

.epc-car-detail-table tr:last-child th,
.epc-car-detail-table tr:last-child td {
    border-bottom: 0;
}

.epc-car-detail-table th {
    width: 88px;
    color: #6b7280;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    word-break: keep-all;
}

.epc-car-detail-table td {
    color: #0f172a;
    font-weight: 700;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.epc-car-detail-table tr:last-child td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.epc-car-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.epc-car-detail-fact {
    border: 1px solid #e6edf7;
    border-radius: 12px;
    background: #f8fbff;
    padding: 8px 10px;
    min-width: 0;
}

.epc-car-detail-fact > span {
    display: block;
    font-size: 11px;
    color: #667085;
    margin-bottom: 3px;
}

.epc-car-detail-fact strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.epc-car-detail-fact strong.epc-sale-method {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
}

.epc-car-detail-fact.is-wide {
    grid-column: 1 / -1;
}

.epc-car-detail-fact.is-wide strong {
    font-size: 18px;
}

.epc-car-detail-seller {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.epc-car-detail-seller__layout {
    display: grid;
    grid-template-columns: minmax(200px, 228px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.epc-car-detail-seller__layout--no-photo {
    grid-template-columns: 1fr;
}

.epc-car-detail-seller-photo {
    min-width: 0;
}

.epc-car-detail-seller-photo-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.epc-car-detail-seller-photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
}

.epc-car-detail-seller-photo-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.epc-car-detail-dealer-detail {
    margin: 0 0 14px;
    background: #fff;
}

.epc-car-detail-dealer-detail img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.epc-car-detail-seller-info {
    margin: 0;
    display: grid;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.epc-car-detail-seller-info > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    font-size: 14px;
    line-height: 1.5;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.epc-car-detail-seller-info > div:nth-child(even) {
    background: #fafcff;
}

.epc-car-detail-seller-info > div:last-child {
    border-bottom: 0;
}

.epc-car-detail-seller-info > div.is-tel {
    background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 100%);
}

.epc-car-detail-seller-info dt {
    color: #64748b;
    white-space: nowrap;
    word-break: keep-all;
    font-weight: 600;
    font-size: 13px;
}

.epc-car-detail-seller-info dd {
    margin: 0;
    color: #111827;
    overflow-wrap: anywhere;
    word-break: keep-all;
    font-weight: 600;
}

.epc-car-detail-seller .tel {
    color: #1e40af;
    font-size: 18px;
    line-height: 1.24;
    letter-spacing: -0.01em;
    font-weight: 700;
    word-break: keep-all;
    white-space: nowrap;
}

.epc-car-detail-seller .tel a {
    color: inherit;
    text-decoration: none;
}

.epc-car-detail-seller-intro {
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    word-break: keep-all;
}

.epc-dealer-intro-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 16px 0 0;
    padding: 0;
    text-align: left;
}

.epc-dealer-intro-box {
    position: relative;
    border: 2px solid var(--epc-dealer-intro-accent, var(--epc-site-main, var(--maincolor, #147dc2)));
    border-radius: 10px;
    background: #f7fbff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.epc-dealer-intro-box__head {
    display: block;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: -13px auto 0;
    padding: 5px 18px;
    border: 2px solid var(--epc-dealer-intro-accent, var(--epc-site-main, var(--maincolor, #147dc2)));
    border-radius: 999px;
    background: var(--epc-dealer-intro-accent, var(--epc-site-main, var(--maincolor, #147dc2)));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.epc-dealer-intro-box__body {
    padding: 18px 16px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.72;
    color: #111827;
    word-break: keep-all;
    text-align: center;
}

.epc-car-detail-seller-intro-wrap .epc-dealer-intro-panel {
    margin-top: 18px;
}

.epc-sale-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.epc-section-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    line-height: 1.25;
    vertical-align: middle;
}

.epc-section-title-row .epc-section-help {
    align-self: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.epc-section-title-row .epc-section-help__btn {
    position: relative;
    top: 1px;
    padding-top: 1px;
}

.epc-section-help,
.epc-sale-method-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.epc-section-help__btn,
.epc-sale-method-help__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.epc-section-help__tip,
.epc-sale-method-help__tip {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    min-width: 120px;
    max-width: 260px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: normal;
    word-break: keep-all;
    text-align: left;
}

.epc-section-help__tip::after,
.epc-sale-method-help__tip::after {
    content: '';
    position: absolute;
    left: 14px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    transform: rotate(45deg);
}

.epc-section-help.is-open .epc-section-help__tip,
.epc-sale-method-help.is-open .epc-sale-method-help__tip {
    display: block;
}

.epc-section-help--wide .epc-section-help__tip {
    min-width: 280px;
    max-width: min(420px, 94vw);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.epc-section-help--below .epc-section-help__tip {
    bottom: auto;
    top: calc(100% + 8px);
}

.epc-section-help--below .epc-section-help__tip::after {
    bottom: auto;
    top: -6px;
    border-right: 1px solid #cbd5e1;
    border-bottom: none;
    border-top: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
}

.epc-section-title-row .epc-section-help--below .epc-section-help__tip {
    left: 50%;
    transform: translateX(-50%);
}

.epc-section-title-row .epc-section-help--below .epc-section-help__tip::after {
    left: 50%;
    margin-left: -5px;
}

.epc-dealer-tel-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 13px;
    vertical-align: 1px;
    opacity: 0.9;
}

.epc-car-detail-inquiry {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
}

.epc-car-detail-inquiry-icon {
    width: 100%;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    margin: 10px 0 10px;
    font-weight: 400;
}

.epc-car-detail-inquiry-icon svg {
    width: 34px;
    height: 34px;
    stroke: #9aa4b2;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epc-car-detail-inquiry textarea,
.epc-car-detail-inquiry input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5dfeb;
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 8px;
    font-size: 13px;
    background: #fff;
}

.epc-car-detail-inquiry textarea::placeholder,
.epc-car-detail-inquiry input::placeholder {
    color: #9aa4b2;
}

.epc-car-detail-inquiry textarea {
    min-height: 80px;
    resize: vertical;
}

.epc-car-detail-inquiry button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    color: #fff;
    height: 38px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.epc-car-detail-tabs {
    margin-bottom: 10px;
}

.epc-car-detail-tabs nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dce6f3;
    border-radius: 14px;
    padding: 7px;
    backdrop-filter: blur(8px);
}

.epc-car-detail-tabs a {
    color: #334155;
    text-decoration: none;
    text-align: center;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.epc-car-detail-tabs a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.epc-car-detail-tabs a.is-on {
    background: #e8f1ff;
    color: #1d4ed8;
}

.epc-car-detail-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    padding: 18px;
    margin-bottom: 12px;
    scroll-margin-top: 140px;
}

.epc-car-detail-block h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #0f172a;
}

.epc-car-detail-content {
    color: #334155;
    line-height: 1.8;
    font-size: 15px;
}

.epc-car-detail-option-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.epc-car-detail-option-table th,
.epc-car-detail-option-table td {
    border-bottom: 1px solid #e9eff7;
    vertical-align: top;
}

.epc-car-detail-option-table tr:last-child th,
.epc-car-detail-option-table tr:last-child td {
    border-bottom: 0;
}

.epc-car-detail-option-table th {
    width: 88px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 10px;
    text-align: center;
    letter-spacing: -0.01em;
}

.epc-car-detail-option-table td {
    background: #fff;
    padding: 9px 10px;
}

.epc-car-detail-option-table tr:nth-child(even) td {
    background: #fcfdff;
}

.epc-car-detail-option-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px 10px;
}

.epc-car-detail-option-list li {
    font-size: 13px;
    color: #8a94a6;
    line-height: 1.45;
    word-break: keep-all;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    box-sizing: border-box;
    min-height: 28px;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    min-width: 0;
}

.epc-car-detail-option-list li.is-on {
    color: #1e40af;
    font-weight: 700;
    background: #eff6ff;
    border-color: transparent;
}

.epc-car-detail-option-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    line-height: 1.55;
}

.epc-car-detail-option-tabs-mo {
    display: none;
}

.epc-car-detail-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.epc-car-detail-photo-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}

.epc-car-detail-photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.epc-car-detail-photo-item:hover img {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.16);
}

body.epc-photo-lightbox-open {
    overflow: hidden;
}

.epc-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.epc-photo-lightbox[hidden] {
    display: none !important;
}

.epc-photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.epc-photo-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 20px 24px;
    box-sizing: border-box;
}

.epc-photo-lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.epc-photo-lightbox__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.epc-photo-lightbox__header {
    flex: 0 0 auto;
    padding-right: 48px;
    margin-bottom: 12px;
}

.epc-photo-lightbox__title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.epc-photo-lightbox__main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epc-photo-lightbox__stage {
    width: min(100%, 980px);
    max-height: calc(100vh - 220px);
}

.epc-photo-lightbox__stage img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 10px;
}

.epc-photo-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.epc-photo-lightbox__nav--prev {
    left: 0;
}

.epc-photo-lightbox__nav--next {
    right: 0;
}

.epc-photo-lightbox__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epc-photo-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: -8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.epc-photo-lightbox__grid {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 18px;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.epc-photo-lightbox__grid::-webkit-scrollbar {
    height: 6px;
}

.epc-photo-lightbox__grid::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
}

.epc-photo-lightbox__grid-item {
    flex: 0 0 auto;
    width: 88px;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #1e293b;
    cursor: pointer;
    box-sizing: border-box;
}

.epc-photo-lightbox__grid-item.is-on {
    border-color: #fff;
}

.epc-photo-lightbox__grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epc-car-detail-empty {
    color: #64748b;
}

.epc-car-detail-perf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid #3b82f6;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.epc-car-detail-perf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.34);
    filter: saturate(1.05);
}

.epc-car-detail-perf-link:active {
    transform: translateY(0);
}

.epc-car-detail-perf-link__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.epc-car-detail-perf-link__icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epc-car-detail-block--perf {
    text-align: center;
    padding-top: 36px;
    padding-bottom: 28px;
}

.epc-car-detail-block--perf h2 {
    margin-bottom: 20px;
}

@media screen and (max-width: 999px) {
    .epc-car-detail-page {
        padding: 0 8px 14px;
        margin-top: calc(var(--epc-mo-header-h, 60px) + 8px);
    }

    .epc-car-detail-hero--topline {
        padding: 12px 2px 10px;
        margin-bottom: 10px;
    }

    .epc-car-detail-hero-sub {
        display: block;
        margin-top: 8px;
    }

    .epc-car-detail-topline-price {
        margin-top: 8px;
        border-radius: 12px;
        padding: 10px 12px;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        line-height: 1.35;
    }

    .epc-installment-term {
        height: 28px;
        font-size: 15px;
        padding: 0 20px 0 8px;
        margin: 0 2px;
    }

    .epc-car-detail-topline-price strong {
        font-size: 16px;
    }

    .epc-car-detail-main {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .epc-car-detail-title {
        font-size: 25px;
    }

    .epc-car-detail-headline {
        font-size: 14px;
    }

    .epc-car-detail-topline-price b {
        font-size: 24px;
    }

    .epc-car-detail-mainimg {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .epc-car-detail-mo-actions {
        display: grid;
        gap: 10px;
        margin: 8px 0 12px;
    }

    .epc-car-detail-mo-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 52px;
        border-radius: 14px;
        text-decoration: none;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    .epc-car-detail-mo-action__icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .epc-car-detail-mo-action__icon svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
        stroke-width: 1.9;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .epc-car-detail-mo-action--call {
        color: #fff;
        background: linear-gradient(135deg, #c2410c 0%, #7c2d12 100%);
    }

    .epc-car-detail-mo-action--perf {
        color: #fff;
        background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
    }

    .epc-car-detail-tabs nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 12px;
        gap: 6px;
        padding: 6px;
    }

    .epc-car-detail-tabs a {
        font-size: 14px;
        padding: 9px 6px;
    }

    .epc-car-detail-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .epc-car-detail-option-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
    }

    .epc-car-detail-option-table {
        display: none;
    }

    .epc-car-detail-option-tabs-mo {
        display: block;
    }

    .epc-car-detail-option-tab-buttons {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 10px;
    }

    .epc-car-detail-option-tab-btn {
        border: 1px solid #dbe5f1;
        background: #fff;
        color: #475569;
        border-radius: 10px;
        min-height: 34px;
        padding: 0 6px;
        font-size: 12px;
        font-weight: 700;
    }

    .epc-car-detail-option-tab-btn.is-on {
        background: #1d4ed8;
        border-color: #1d4ed8;
        color: #fff;
    }

    .epc-car-detail-option-tab-panel {
        display: none;
        border: 1px solid #e6edf7;
        border-radius: 12px;
        background: #f8fbff;
        padding: 8px;
    }

    .epc-car-detail-option-tab-panel.is-on {
        display: block;
    }

    .epc-car-detail-side-thumbs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .epc-car-detail-thumb {
        flex: 0 0 68px;
    }

    .epc-car-detail-side-thumbs::-webkit-scrollbar {
        height: 4px;
    }

    .epc-car-detail-side-thumbs::-webkit-scrollbar-thumb {
        background: #d1d9e6;
        border-radius: 999px;
    }

    .epc-car-detail-info3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .epc-car-detail-info-col {
        padding: 10px;
    }

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

    .epc-car-detail-fact strong {
        font-size: 14px;
    }

    .epc-car-detail-fact.is-wide strong {
        font-size: 16px;
    }

    .epc-car-detail-seller__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .epc-car-detail-seller-photo {
        max-width: 220px;
        margin: 0 auto;
        width: 100%;
    }

    .epc-car-detail-seller-info > div {
        grid-template-columns: 84px minmax(0, 1fr);
        padding: 10px 12px;
    }

    .epc-car-detail-seller .tel {
        font-size: 15px;
        white-space: nowrap;
    }

    .epc-car-detail-block {
        padding: 14px;
        scroll-margin-top: calc(var(--epc-mo-header-h, 60px) + 66px);
    }
}

.epc-car-detail-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.epc-car-detail-block--lease h2 {
    margin-bottom: 14px;
}

.epc-lease-table-wrap {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.epc-lease-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    background: transparent;
    border: 0;
}

.epc-lease-table__col-term {
    width: 42%;
}

.epc-lease-table__col-amount {
    width: 58%;
}

.epc-lease-table thead th {
    padding: 12px 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: -0.01em;
}

.epc-lease-table thead th:first-child,
.epc-lease-table tbody th {
    text-align: center;
    width: 42%;
}

.epc-lease-table thead th:last-child,
.epc-lease-table tbody td {
    text-align: right;
    width: 58%;
    padding-right: 24px;
}

.epc-lease-table tbody th,
.epc-lease-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.epc-lease-table tbody tr:last-child th,
.epc-lease-table tbody tr:last-child td {
    border-bottom: 0;
}

.epc-lease-table tbody th {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    background: #fff;
    padding-left: 16px;
    padding-right: 16px;
}

.epc-lease-table tbody td {
    background: #fff;
}

.epc-lease-table__amount {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.epc-lease-table__unit {
    margin-left: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.epc-lease-table tbody tr.is-default {
    background: linear-gradient(90deg, #fff7ed 0%, #fff 55%);
}

.epc-lease-table tbody tr.is-default th {
    color: #c2410c;
    font-weight: 800;
}

.epc-lease-table tbody tr.is-default td {
    background: transparent;
}

.epc-lease-table tbody tr.is-default .epc-lease-table__amount {
    color: #dc2626;
}

.epc-lease-table tbody tr:not(.is-default):hover th,
.epc-lease-table tbody tr:not(.is-default):hover td {
    background: #fafcff;
}
