* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-gold: #c5a572;
    --accent-gold-soft: rgba(197, 165, 114, 0.15);
    --font-serif: 'Tektur', sans-serif;
    --font-sans: 'Tektur', sans-serif;
    --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

button {
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior: none;
}

body.modal-open {
    /* overflow: hidden is handled by JS fixed positioning now, but keeping it doesn't hurt */
    overflow: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
}

/* Background Elements */
.bg-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 10;
}

#app {
    width: 100%;
    max-width: 1500px;
    height: 90vh;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    position: relative;
    z-index: 20;
    align-items: center;
}

/* Sidebar / Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    padding-bottom: 40px;
    position: relative;
}

.top-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(197, 165, 114, 0.3) 0%,
            rgba(197, 165, 114, 0.1) 50%,
            transparent 100%);
}

.brand-info h2 {
    font-size: 0.6rem;
    letter-spacing: 0.6em;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
}

.brand-info h1 {
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 0.9;
    letter-spacing: -0.01em;
    color: var(--accent-gold);
    font-style: italic;
}

.step-info-global {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.step-info-global .step-number {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.step-info-global .step-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.1;
    max-width: 400px;
}

/* Main Content area */
/* Cleaned up quiz-container */
.quiz-container {
    display: flex;
    flex-direction: column;
}

.steps-viewport {
    width: 100%;
}

.step-card {
    display: none;
    width: 100%;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.step-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.option-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.price-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.option-item.selected .price-tag {
    color: var(--accent-gold);
    opacity: 1;
}

@media (hover: hover) {
    .option-item:hover {
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.05);
    }
}

.option-item.selected {
    background: rgba(197, 165, 114, 0.08);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(197, 165, 114, 0.05);
}

.option-item.selected::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    animation: shimmer 10s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.option-item.selected * {
    color: var(--text-primary);
}

.option-visual {
    width: 100%;
    max-height: 280px;
    background: #0b0b0b;
    margin-bottom: 16px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.option-visual img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.5s ease;
}

@media (hover: hover) {
    .option-item:hover .option-visual img {
        transform: scale(1.02);
        opacity: 1;
    }
}

.option-item.selected .option-visual {
    border-color: rgba(197, 165, 114, 0.4);
}

.option-item.selected .option-visual img {
    opacity: 1;
    transform: scale(1.02);
}

.option-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.option-benefit {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 4px;
}

.option-item.selected .option-benefit {
    color: var(--accent-gold);
    opacity: 1;
}

/* Summary / Result panel */
.summary-panel {
    border-left: 1px solid rgba(197, 165, 114, 0.15);
    padding: 20px 0 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 500px;
}

.summary-header {
    margin-bottom: 48px;
}

.summary-title {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Selections List */
.selections-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.selection-entry {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    position: relative;
    animation: slideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.selection-accent {
    width: 2px;
    height: 100%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(197, 165, 114, 0.3);
    border-radius: 2px;
    flex-shrink: 0;
}

.selection-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.selection-entry .step-name {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    font-weight: 500;
}

.selection-entry .choice-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 500;
}

.selection-entry .choice-price {
    font-size: 0.8rem;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-top: 2px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    overflow-y: auto;
    /* Enable scroll for overlay */
    padding: 40px 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    /* Don't exceed screen height */
    overflow-y: auto;
    /* Scroll inside modal if needed */
    padding: 60px 80px;
    position: relative;
    text-align: center;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    overscroll-behavior: contain;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 110;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}


.result-details {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    text-align: left;
}

.value-card {
    padding: 32px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    width: 100%;
}

.value-card.active {
    display: flex;
}

.value-card.highlighting {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.value-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 4px 8px;
    border: 1px solid var(--text-secondary);
    display: inline-block;
    align-self: flex-start;
    color: var(--text-secondary);
}

.value-card h4 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 0;
}

.benefit-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Detailed Breakdown */
.detailed-breakdown {
    margin: 40px auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.result-content {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(197, 165, 114, 0.3);
    width: 95%;
    max-width: 900px;
    padding: 80px 60px;
    border-radius: 2px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 50px 150px rgba(0, 0, 0, 0.9);
    overscroll-behavior: contain;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Removed body.modal-open .modal-overlay rule as it's no longer needed and might conflict */

.breakdown-intro {
    text-align: left;
    margin-bottom: 60px;
}

.cost-label-alt {
    display: block;
    font-size: 0.65rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    margin-bottom: 20px;
}

.breakdown-main-title {
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.title-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.total-value-display {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(197, 165, 114, 0.2);
}

#final-total {
    font-size: 5rem;
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.currency-label {
    font-size: 1rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 15px;
}

.breakdown-row-group {
    margin-bottom: 24px;
    border: 1px solid rgba(197, 165, 114, 0.1);
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.4s ease;
}

.breakdown-row-group:hover {
    border-color: rgba(197, 165, 114, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.breakdown-header.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    cursor: pointer;
    user-select: none;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 65%;
    /* Reduced to give more space for the price */
    flex-grow: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
    /* Prevents price from being squashed */
    margin-left: 20px;
}

.accordion-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 165, 114, 0.2);
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    background: var(--accent-gold);
    transition: all 0.4s ease;
}

/* Horizontal line */
.accordion-icon::before {
    top: 50%;
    left: 20%;
    width: 60%;
    height: 1px;
    transform: translateY(-50%);
}

/* Vertical line */
.accordion-icon::after {
    left: 50%;
    top: 20%;
    width: 1px;
    height: 60%;
    transform: translateX(-50%);
}

.breakdown-row-group.active .accordion-icon {
    transform: rotate(45deg);
    border-color: rgba(197, 165, 114, 0.5);
    background: rgba(197, 165, 114, 0.1);
}


.breakdown-title {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
}

.breakdown-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
    opacity: 0.8;
}

.breakdown-cost-total {
    font-weight: 500;
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.breakdown-row-group.active .accordion-content {
    max-height: 2000px;
    padding-bottom: 24px;
}

.production-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 0.85rem;
}

.production-table th {
    text-align: left;
    padding: 0 16px 16px 16px;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.65rem;
}

.production-table td {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    vertical-align: middle;
    transition: background 0.3s ease;
}

.production-table tr:hover td {
    background: rgba(197, 165, 114, 0.05);
}

.production-table td:first-child {
    border-radius: 4px 0 0 4px;
}

.production-table td:last-child {
    border-radius: 0 4px 4px 0;
    text-align: right;
    font-family: var(--font-sans);
    color: var(--text-primary);
}

.production-table td strong {
    color: var(--text-primary);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-family: var(--font-sans);
    font-weight: 500;
}

.production-table td small {
    display: block;
    line-height: 1.5;
    opacity: 0.7;
    max-width: 400px;
}

.modal-final-actions {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.btn-premium-contact {
    background: #c5a572 !important;
    border: none;
    color: #000000 !important;
    padding: 26px 80px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(197, 165, 114, 0.4);
    width: 100%;
    max-width: 550px;
    display: block;
    margin: 0 auto;
}

.btn-premium-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transform: skewX(-20deg);
    animation: premium-shine 4s infinite ease-in-out;
}

@keyframes premium-shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.btn-premium-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(197, 165, 114, 0.4);
    letter-spacing: 0.45em;
    background: #fff;
    /* White turns into a super-bright flash or stay gold? Let's keep it gold but brighter */
    background: #d4b47e;
}

.btn-premium-contact:active {
    transform: translateY(-2px);
}

.btn {
    padding: 14px 28px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-color);
}

.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

@media (hover: hover) {
    .btn:hover:not(:disabled) {
        background: var(--text-primary);
        color: var(--bg-color);
        border-color: var(--text-primary);
        transform: translateY(-2px);
    }
}

.btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

/* Progress bar */
.progress-container {
    margin-top: 32px;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.progress-bar {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    box-shadow: 0 0 10px rgba(197, 165, 114, 0.5);
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Responsive */
@media (max-width: 1200px) {
    #app {
        padding: 0 40px;
        gap: 40px;
    }
}

@media (max-width: 1000px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        display: block;
    }

    #app {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 800px;
        margin: 0 auto;
        padding: 60px 24px;
        align-items: flex-start;
    }

    .summary-panel {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
        border-top: 1px solid rgba(197, 165, 114, 0.2);
        padding-top: 30px;
        min-height: auto;
        /* Remove fixed height constraint */
    }

    .selections-list {
        flex-grow: 0;
        /* Don't push buttons to bottom */
        gap: 16px;
        margin-bottom: 30px;
    }

    .nav-buttons {
        margin-top: 20px;
    }

    .cost-value {
        font-size: 3.5rem;
    }

    .options-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    .step-info-global {
        text-align: left;
        align-items: flex-start;
    }

    .brand-info h1 {
        font-size: 1.5rem;
    }

    .step-info-global .step-title {
        font-size: 1.3rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-visual {
        max-height: 320px;
        margin-bottom: 24px;
    }

    .option-visual img {
        max-height: 320px;
    }

    .option-item {
        padding: 30px 40px;
        /* More horizontal padding to make content narrower */
        min-height: 480px;
        /* Making the card longer */
        justify-content: center;
    }

    .result-content {
        padding: 40px 20px;
        width: 96%;
        margin: auto;
        border-radius: 8px;
        max-height: 96vh;
        border: 1px solid rgba(197, 165, 114, 0.4);
    }

    .modal-overlay {
        padding: 10px 0;
    }

    .detailed-breakdown {
        max-width: 100%;
        margin: 30px auto;
    }

    .accordion-content {
        padding: 0 8px;
    }

    .breakdown-header.accordion-trigger {
        padding: 24px 16px;
    }

    .breakdown-main-title {
        font-size: 2rem;
    }

    #final-total {
        font-size: 3.5rem;
    }

    .production-table {
        display: block;
        width: 100%;
    }

    .production-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .production-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 8px;
        border-radius: 4px;
        border: 1px solid rgba(197, 165, 114, 0.1);
    }

    .production-table td {
        display: block;
        padding: 0 !important;
        background: transparent !important;
        height: auto;
    }

    .production-table td:first-child {
        grid-column: span 2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 8px !important;
        margin-bottom: 2px;
    }

    /* Add labels for hours and cost */
    .production-table td:nth-child(2)::before {
        content: "Час: ";
        font-size: 0.65rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-right: 4px;
    }

    .production-table td:nth-child(3)::before {
        content: "Вартість: ";
        font-size: 0.65rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-right: 4px;
    }

    .production-table td:last-child {
        text-align: right !important;
    }

    .btn-premium-contact {
        padding: 20px 40px;
        font-size: 0.85rem;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    #app {
        padding: 40px 16px;
    }

    .brand-info h1 {
        font-size: 1.3rem;
    }

    .step-info-global .step-title {
        font-size: 1.1rem;
    }

    .result-content {
        padding: 24px 12px;
        width: 98%;
        border-radius: 4px;
    }

    .breakdown-intro {
        margin-bottom: 20px;
    }

    .cost-label-alt {
        margin-bottom: 8px;
    }

    .breakdown-main-title {
        margin-bottom: 12px;
        font-size: 1.5rem;
    }

    .breakdown-row-group {
        margin-bottom: 8px;
    }

    .modal-overlay {
        padding: 5px 0;
    }

    .option-item {
        padding: 30px 24px;
        min-height: 520px;
    }

    .option-visual {
        max-height: 280px;
    }

    .option-visual img {
        max-height: 280px;
    }

    .option-title {
        font-size: 1rem;
    }

    .price-tag {
        font-size: 0.65rem;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .breakdown-header.accordion-trigger {
        padding: 16px 12px;
        flex-direction: row;
        /* Keep row layout on mobile for better space usage */
        align-items: center;
        gap: 12px;
    }

    .header-left {
        max-width: 65%;
    }

    .header-right {
        width: auto;
        gap: 12px;
        margin-left: auto;
    }

    .breakdown-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .breakdown-desc {
        font-size: 0.75rem;
        display: none;
        /* Hide description on mobile to save space, or keep short */
    }

    .breakdown-cost-total {
        font-size: 0.95rem;
    }

    .production-table td small {
        max-width: 100%;
        white-space: normal;
        font-size: 0.7rem;
        display: block;
        line-height: 1.3;
        opacity: 0.7;
    }
}