:root {
    --bg: #fffaf6;
    --bg-soft: #fff3ea;
    --surface: #ffffff;
    --surface-alt: #fff8f2;
    --text: #1f2940;
    --muted: #657089;
    --primary: #ff7d4d;
    --primary-dark: #f0642f;
    --secondary: #f1f4fb;
    --border: #ebedf5;
    --success: #e8fff4;
    --danger: #fff1f1;
    --shadow: 0 18px 50px rgba(39, 56, 92, 0.08);
    --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(255, 209, 186, 0.45), transparent 22%),
        linear-gradient(180deg, #fffdfa 0%, #fff9f4 45%, #fffdfa 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
textarea { resize: vertical; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow { width: min(560px, calc(100% - 32px)); }
.hidden { display: none !important; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 253, 250, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(235, 237, 245, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff9f76, #ff6d41);
    box-shadow: 0 12px 25px rgba(255, 109, 65, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-weight: 600;
}

.flash {
    padding: 14px 0;
    font-weight: 600;
}

.flash-success { background: var(--success); }
.flash-error { background: var(--danger); }

.hero {
    padding: 72px 0 46px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.hero-intro-festive {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 207, 179, 0.9);
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 247, 240, 0.9) 100%),
        url('/assets/img/hero-festive-bg.svg') center/cover no-repeat;
}

.hero-intro-festive::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 60%);
    pointer-events: none;
}

.hero-intro-festive > * {
    position: relative;
    z-index: 1;
}

.hero-intro-highlight {
    position: relative;
    overflow: hidden;
    margin: -4px -4px 22px;
    padding: 24px 24px 20px;
    border-radius: 20px;
    background:
        linear-gradient(100deg, rgba(12, 18, 34, 0.42) 0%, rgba(12, 18, 34, 0.30) 28%, rgba(12, 18, 34, 0.12) 52%, rgba(12, 18, 34, 0.04) 72%, rgba(12, 18, 34, 0) 95%),
        url('/assets/img/festive_robot_song_square.webp') center 42%/cover no-repeat;
    box-shadow: 0 14px 34px rgba(17, 27, 49, 0.24);
}

.hero-intro-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.hero-intro-highlight > * {
    position: relative;
    z-index: 1;
}

.hero-intro-highlight .eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.hero-intro-highlight h1 {
    color: #ffffff;
    text-shadow: 0 6px 26px rgba(3, 8, 18, 0.58);
}

.hero-intro-highlight .hero-text {
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1,
.section-heading h2,
.admin-card h1,
.admin-topbar h1 {
    margin: 0 0 16px;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 60px);
    max-width: 760px;
}

.section-heading h2,
.admin-card h1,
.admin-topbar h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.hero-text,
.section-heading p,
.info-card p,
.tariff-card p,
.preview-placeholder p,
.admin-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.result-actions,
.modal-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-benefits {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-benefits li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.hero-benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--primary-dark);
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.examples-video-card,
.examples-audio-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(235, 237, 245, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.examples-video-card {
    padding: 22px;
}

.examples-audio-list {
    display: grid;
    gap: 14px;
}

.examples-audio-list-title {
    margin: 0 0 2px;
    font-size: 28px;
    line-height: 1.2;
}

.examples-audio-card {
    padding: 16px 16px 14px;
}

.examples-video-card h3,
.examples-audio-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.examples-video-card p,
.examples-audio-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.lazy-media-box {
    padding: 12px;
    border-radius: 16px;
    border: 1px dashed rgba(141, 155, 185, 0.45);
    background: rgba(245, 249, 255, 0.55);
}

.examples-video-card .lazy-media-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
}

.lazy-media-status {
    min-height: 20px;
    margin: 0 0 8px;
    font-size: 14px;
    color: #46536f;
}

.lazy-media-player {
    width: 100%;
}

.lazy-video-player {
    display: block;
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 14px;
    background: #0f1728;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.lazy-audio-player {
    margin-top: 6px;
}

.hero-card,
.info-card,
.tariff-card,
.generator-box,
.admin-card,
.result-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(235, 237, 245, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #fff4eb 100%);
}

.hero-card-badge,
.tariff-badge,
.pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff0e8;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.stats-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.stat-item {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 224, 212, 0.95);
}

.stat-item strong {
    display: block;
    font-size: 30px;
    margin-bottom: 8px;
}

.stat-item span { color: var(--muted); }

.section {
    padding: 34px 0 70px;
}

.section-soft {
    background: rgba(255, 243, 234, 0.45);
}

.section-heading {
    margin-bottom: 28px;
}

.cards-grid {
    display: grid;
    gap: 18px;
}

.cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.info-card,
.tariff-card {
    padding: 24px;
}

.info-card h3,
.tariff-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.big-number {
    font-size: 40px;
    font-weight: 800;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 16px 0;
}

.price-box strong {
    font-size: 42px;
    line-height: 1;
}

.price-box span {
    color: var(--muted);
    font-weight: 600;
}

.price-old {
    text-decoration: line-through;
    color: var(--muted);
    font-weight: 700;
    font-size: 24px;
}

.tariff-discount-note {
    margin: -6px 0 8px;
    color: #1a6c45;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.partner-offer-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #c9f0dd;
    background: #e8fff4;
    color: #1a6c45;
    font-weight: 700;
}

.partner-offer-banner strong {
    font-weight: 800;
}

.tariff-key-note {
    margin: -6px 0 16px;
    color: #8f3a1e;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
    border: 1px solid rgba(255, 214, 197, 0.95);
    box-shadow:
        0 18px 40px rgba(39, 56, 92, 0.08),
        0 8px 18px rgba(255, 109, 65, 0.06);
    overflow: hidden;
}

.tariff-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 223, 209, 0.9);
    border-radius: 18px;
    pointer-events: none;
}

.tariff-card > * {
    position: relative;
    z-index: 1;
}

.tariff-card .tariff-badge {
    margin-bottom: 14px;
}

.tariff-card p {
    margin-bottom: 20px;
}

.tariff-card .btn {
    margin-top: auto;
}

.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 24px 50px rgba(39, 56, 92, 0.11),
        0 12px 26px rgba(255, 109, 65, 0.10);
}

.generator-box,
.result-box,
.admin-card {
    padding: 28px;
}

.generator-section + .generator-section {
    margin-top: 26px;
}

.generator-label-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.generator-label-row strong {
    color: #ff6d41;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 109, 65, 0.22);
}

.generator-label-row span {
    color: var(--muted);
    font-size: 14px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.choice-card,
.choice-pill,
.btn,
.tariff-card,
.occasion-card {
    transition: all .18s ease;
}

.choice-card {
    text-align: left;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
}

.choice-card:hover,
.choice-pill:hover {
    transform: translateY(-2px);
    border-color: #ffd7c5;
    box-shadow: 0 12px 30px rgba(255, 109, 65, 0.12);
}

.choice-card.is-active,
.choice-pill.is-active {
    border-color: rgba(255, 109, 65, 0.85);
    background: linear-gradient(180deg, #fff7f2, #fff1e8);
    box-shadow: 0 14px 28px rgba(255, 109, 65, 0.16);
}

.choice-title {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.choice-text {
    display: block;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.choice-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.choice-pill {
    border: 1px solid var(--border);
    background: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.textarea,
.input {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 16px 18px;
    outline: none;
    color: var(--text);
}

.textarea:focus,
.input:focus {
    border-color: #ffb08b;
    box-shadow: 0 0 0 4px rgba(255, 125, 77, 0.12);
}

.form-label {
    display: grid;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.btn {
    border: 0;
    border-radius: 16px;
    padding: 15px 22px;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff8d63, #ff6d41);
    box-shadow: 0 15px 30px rgba(255, 109, 65, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #fff7f2;
}

.btn-block { width: 100%; }
.btn-lg { padding: 18px 26px; }

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.result-header h3 {
    margin: 0;
    font-size: 28px;
}

.result-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lyrics-output {
    margin: 0 0 20px;
    white-space: pre-wrap;
    line-height: 1.85;
    padding: 22px;
    border-radius: 20px;
    background: #fffaf7;
    border: 1px solid #ffe6d8;
    font-family: 'Inter', Arial, sans-serif;
}

.preview-placeholder {
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 243, 234, 0.55);
    border: 1px dashed #ffc5ae;
}

.preview-placeholder h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.reviews-section {
    padding-top: 52px;
    padding-bottom: 24px;
    background: rgba(255, 246, 239, 0.45);
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 18px;
    align-items: start;
}

.reviews-carousel,
.review-form-wrap {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(235, 237, 245, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.reviews-header h2 {
    margin: 0 0 10px;
}

.reviews-header p {
    margin: 0;
    color: var(--muted);
}

.reviews-controls {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.reviews-nav {
    padding: 10px 14px;
}

.reviews-slides {
    margin-top: 16px;
}

.testimonial-card {
    display: none;
    border: 1px solid #ffe3d5;
    border-radius: 20px;
    background: #fffaf7;
    padding: 20px;
}

.testimonial-card.is-active {
    display: block;
    animation: testimonialFade .25s ease;
}

@keyframes testimonialFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-stars {
    color: #ff7d4d;
    letter-spacing: 2px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.testimonial-text {
    margin: 0 0 14px;
    line-height: 1.7;
}

.testimonial-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 14px;
}

.review-form-wrap h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.review-form-wrap p {
    margin-top: 0;
    color: var(--muted);
}

.review-form {
    display: grid;
    gap: 12px;
}

.review-rating-row {
    display: grid;
    gap: 8px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-star-btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: #cfd6e4;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.review-star-btn:hover {
    transform: translateY(-1px);
}

.review-star-btn.is-active {
    color: #ff7d4d;
}

.review-star-btn:focus-visible {
    outline: 2px solid #ff9b72;
    outline-offset: 2px;
    border-radius: 4px;
}

.review-rating-text {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.site-footer {
    padding: 32px 0 50px;
    border-top: 1px solid rgba(235, 237, 245, 0.9);
    background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p { color: var(--muted); }

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 600;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.admin-card h2 {
    margin: 10px 0;
    font-size: 36px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.admin-table th {
    font-size: 14px;
    color: var(--muted);
}

.alert {
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--danger);
    color: #9b2c2c;
}

.alert-success {
    background: var(--success);
    color: #1f6b47;
}

.admin-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-sidebar,
.admin-content {
    display: grid;
    gap: 18px;
}

.admin-card-spaced h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 30px;
}

.admin-table-compact th,
.admin-table-compact td {
    padding: 10px 10px;
    font-size: 13px;
}

.admin-cell-value {
    max-width: 320px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.admin-pagination {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.admin-pagination-wrap {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.admin-pagination-summary {
    color: var(--muted);
    font-weight: 600;
}

.admin-pagination-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.admin-pagination-jump .form-label {
    min-width: 220px;
    margin: 0;
}

.admin-pagination-jump .input {
    max-width: 160px;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.admin-edit-grid small {
    color: var(--muted);
    font-weight: 600;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 26, 44, 0.44);
}

.modal-dialog {
    position: relative;
    width: min(680px, calc(100% - 24px));
    margin: 40px auto;
    background: #fff;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(17, 30, 59, 0.2);
    z-index: 1;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-small {
    width: min(440px, calc(100% - 24px));
    text-align: center;
    padding: 34px 26px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #f7f7fb;
    font-size: 24px;
    cursor: pointer;
}

.modal-open {
    overflow: hidden;
}

.modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 14px;
    margin-top: 18px;
}

.loader {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 6px solid #ffe1d3;
    border-top-color: #ff7d4d;
    animation: spin 1s linear infinite;
}

.loading-hint {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7385;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 10px;
    z-index: 90;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #243047;
    box-shadow: var(--shadow);
    transform: translateY(12px);
    opacity: 0;
    transition: all .25s ease;
}

.toast-visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { background: #e8fff4; }
.toast-error { background: #fff1f1; }
.toast-info { background: #eef5ff; }

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 18px;
    color: var(--muted);
}

.consent-row a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.occasion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.occasion-card {
    text-align: left;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.occasion-card:hover {
    transform: translateY(-3px);
    border-color: #ffd7c5;
    box-shadow: 0 12px 30px rgba(255, 109, 65, 0.12);
}

.occasion-title {
    display: block;
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 8px;
}

.occasion-text {
    display: block;
    color: var(--muted);
    line-height: 1.65;
}

.music-stage-box {
    margin-top: 24px;
}

.music-stage-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.music-cover {
    width: 100%;
    border-radius: 22px;
    background: #fff7f2;
    border: 1px solid #ffe6d8;
    min-height: 280px;
    object-fit: cover;
}

.music-cover-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    padding: 20px;
}

.audio-player {
    width: 100%;
    margin-top: 10px;
}

.cards-grid-payment {
    margin-top: 16px;
}

.tariff-card-compact h3 {
    font-size: 20px;
}

.muted-text {
    color: var(--muted);
    line-height: 1.7;
}

.form-feedback {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.form-feedback.is-success {
    background: #e8fff4;
    color: #1f6b47;
}

.form-feedback.is-error {
    background: #fff1f1;
    color: #a33a3a;
}

.access-key-panel {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #ffd8c7;
    background: linear-gradient(180deg, #fffaf6 0%, #fff5ee 100%);
}

.access-key-head h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.access-key-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

#access-key-title {
    scroll-margin-top: 92px;
}

.access-key-current,
.access-key-new {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.access-key-current {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #bfe9cf;
    background: #e9f9ef;
    color: #1f6b47;
    font-weight: 600;
}

.access-key-new code {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #ffd5c2;
    background: #fff;
    font-weight: 700;
}

.access-key-email-block {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d7e6ff;
    background: #f4f8ff;
}

.access-key-email-note {
    margin: 0 0 8px;
    color: #274472;
    font-weight: 600;
}

.access-key-email-form {
    display: grid;
    gap: 10px;
}

.full-access-key-box {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #bfe9cf;
    background: #e9f9ef;
}

.full-access-key-note {
    margin: 0 0 10px;
    color: #1f6b47;
    font-weight: 600;
}

.full-access-key-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 10px;
}

.full-access-key-row code {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #b9dcca;
    background: #fff;
    font-weight: 700;
}

.access-key-form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.btn-small {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

body.embed-mode {
    background: #fff;
}

body.embed-mode .site-header {
    display: none;
}

body.embed-mode #hero,
body.embed-mode #song-examples,
body.embed-mode #occasions {
    display: none !important;
}

body.embed-mode .hero {
    padding: 24px 0 16px;
}

body.embed-mode .section {
    padding: 20px 0 28px;
}

body.embed-mode .section-soft {
    background: transparent;
}

body.embed-mode .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

body.embed-mode .reviews-section,
body.embed-mode .site-footer {
    display: none !important;
}

body.embed-mode .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.embed-mode .section,
body.embed-mode #generator {
    padding-left: 0;
    padding-right: 0;
}

body.embed-mode #generator {
    padding-top: 22px;
}

@media (max-width: 980px) {
    .hero-grid,
    .examples-grid,
    .cards-grid-3,
    .choice-grid,
    .form-grid,
    .occasion-grid,
    .music-stage-grid,
    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .result-header,
    .header-inner,
    .footer-inner,
    .admin-topbar {
        flex-direction: column;
    }

    .admin-layout,
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .hero {
        padding-top: 42px;
    }

    .hero-intro-festive {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .hero-intro-highlight {
        margin: 0 0 18px;
        padding: 18px 16px;
        border-radius: 16px;
        background-position: center 40%;
        background-size: cover;
    }

    .examples-video-card,
    .examples-audio-card {
        padding: 16px;
        border-radius: 18px;
    }

    .examples-video-card h3,
    .examples-audio-card h3 {
        font-size: 20px;
    }

    .examples-audio-list-title {
        font-size: 23px;
    }

    .lazy-video-player {
        width: min(100%, 360px);
        aspect-ratio: 9 / 16;
    }

    .generator-box,
    .result-box,
    .admin-card,
    .modal-dialog {
        padding: 20px;
        border-radius: 20px;
    }

    .btn {
        width: 100%;
    }

    .modal {
        padding: 8px 0;
    }

    .modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-top: 12px;
        padding-bottom: 2px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 1400;
    padding: 0 14px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent__panel {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #d3d9e8;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(14, 25, 53, 0.22);
}

.cookie-consent__text {
    margin: 0;
    color: #243047;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-consent__actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-consent__actions a {
    color: #3055d8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent__actions .btn {
    width: auto;
    min-width: 220px;
}

.cookie-consent__note {
    margin: 10px 0 0;
    color: #51617f;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .cookie-consent {
        bottom: 8px;
        padding: 0 8px;
    }

    .cookie-consent__panel {
        padding: 14px;
        border-radius: 14px;
    }

    .cookie-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__actions .btn {
        width: 100%;
        min-width: 0;
    }
}
