/* --- GLOBAL STYLES --- */
:root {
    --bg-color: #0b0b0c;
    --card-bg: #141416;
    --gold: #d4af37;
    --gold-hover: #f3e5ab;
    --gold-light: #f3e5ab;
    --text-light: #f5f2eb;
    --text-dim: #a0a0a0;
    --burgundy: #6b1212;
    --red: #e61010;
    /* Cinzel and Montserrat have no Armenian glyphs, so Armenian text falls through to Noto */
    --font-title: 'Cinzel', 'Noto Serif Armenian', serif;
    --font-body: 'Montserrat', 'Noto Sans Armenian', sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    /* menu anchors land right below the sticky header (--header-h is kept up to date from JS) */
    scroll-padding-top: var(--header-h, 130px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a:focus-visible,
button:focus-visible,
.card-3d:focus-visible {
    outline: 2px solid var(--gold-hover);
    outline-offset: 3px;
}

/* --- HEADER (presale banner + navbar) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- TOP PRESALE BANNER --- */
.top-banner {
    background: var(--red);
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 15px;
    box-shadow: 0 2px 10px rgba(230, 16, 16, 0.4);
}

.top-banner .banner-text {
    text-transform: uppercase;
}

.top-banner .timer-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* --- NAVBAR --- */
nav {
    /* 1fr | menu | 1fr keeps the menu exactly under the timer */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px 30px;
    padding: 15px 8%;
    background: rgba(11, 11, 12, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
    justify-self: start;
}

/* Section menu (smooth scroll to the blocks below) */
.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu a {
    position: relative;
    display: block;
    padding: 6px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-self: end;
}

/* Header phone with social icons below */
.phone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.phone-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
}

.phone-link:hover {
    color: var(--gold);
}

.phone-text {
    margin-left: 5px;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social-link {
    display: inline-block;
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: 0.3s;
}

.header-social-link:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--gold);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* --- HERO SECTION --- */
.hero {
    /* the header is in the flow (sticky), so subtract its height instead of padding under it */
    min-height: calc(90vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 60px 8%;
    background: radial-gradient(circle at center, #1a1a20 0%, var(--bg-color) 75%);
}

.hero-content {
    flex: 0 1 600px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    line-height: 1.25;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    font-weight: 300;
}

.nowrap {
    white-space: nowrap;
}

/* --- 3D BOOK (hero) --- */
.book3d {
    /* --k scales the whole book, see the media queries */
    --k: 1;
    --W: calc(280px * var(--k));
    --H: calc(432px * var(--k));
    --D: calc(49px * var(--k));
    position: relative;
    flex: 0 0 auto;
    width: calc(var(--W) + 40px);
    height: calc(var(--H) + 70px);
    perspective: 1600px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    /* horizontal drag rotates the book, vertical swipe still scrolls the page on phones */
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.book3d:active {
    cursor: grabbing;
}

.book3d-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    max-width: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 170, 60, 0.45), transparent 65%);
    opacity: 0;
    transition: opacity 0.6s;
    filter: blur(20px);
}

.book3d-floor {
    position: absolute;
    top: calc(50% + var(--H) / 2 - 6px);
    width: calc(300px * var(--k));
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 70%);
    transition: all 0.6s;
}

.book3d-rotator {
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book3d-rotator.is-dragging {
    transition: none;
}

.book3d-book {
    position: relative;
    width: var(--W);
    height: var(--H);
    transform-style: preserve-3d;
}

.book3d.is-floating .book3d-glow {
    opacity: 1;
}

.book3d.is-floating .book3d-book {
    animation: book3d-float 4s ease-in-out infinite;
}

.book3d.is-floating .book3d-floor {
    opacity: 0.5;
    transform: scale(0.7);
}

@keyframes book3d-float {
    50% { translate: 0 -18px; }
}

.book3d-face {
    position: absolute;
    backface-visibility: hidden;
    background-size: 100% 100%;
}

.book3d-front,
.book3d-back {
    width: var(--W);
    height: var(--H);
}

.book3d-front {
    background-image: url(../assets/img/book-front.jpg);
    transform: translateZ(calc(var(--D) / 2));
}

.book3d-back {
    background-image: url(../assets/img/book-back.jpg);
    transform: rotateY(180deg) translateZ(calc(var(--D) / 2));
}

.book3d-spine {
    width: var(--D);
    height: var(--H);
    left: calc((var(--W) - var(--D)) / 2);
    background-image: url(../assets/img/book-spine.jpg);
    transform: rotateY(-90deg) translateZ(calc(var(--W) / 2));
}

.book3d-pages {
    width: var(--D);
    height: calc(var(--H) - 6px);
    top: 3px;
    left: calc((var(--W) - var(--D)) / 2);
    background: repeating-linear-gradient(90deg, #efe2c4 0 2px, #cdbb94 2px 3px);
    transform: rotateY(90deg) translateZ(calc(var(--W) / 2 - 3px));
}

.book3d-top,
.book3d-bottom {
    width: calc(var(--W) - 6px);
    height: var(--D);
    left: 3px;
    top: calc((var(--H) - var(--D)) / 2);
}

.book3d-top {
    background: repeating-linear-gradient(0deg, #efe2c4 0 2px, #cdbb94 2px 3px);
    transform: rotateX(90deg) translateZ(calc(var(--H) / 2 - 3px));
}

.book3d-bottom {
    background: #b9a67d;
    transform: rotateX(-90deg) translateZ(calc(var(--H) / 2 - 3px));
}

.book3d-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 40%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .book3d.is-floating .book3d-book { animation: none; }
}

/* --- 3D VISUALS SHOWCASE (BOOK & BOX) --- */
.showcase-section {
    padding: 60px 8%;
    text-align: center;
}

.showcase-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card-container {
    perspective: 1000px;
    position: relative;
}

.card-3d {
    width: 290px;
    height: 390px;
    background: linear-gradient(135deg, #1c1c20, #0d0d0f);
    border: 1px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
}

.card-3d.book-card {
    border-color: rgba(212, 175, 55, 0.5);
}

/* cards that don't open the order form (merch without prices yet) */
.card-3d:not([data-order]) {
    cursor: default;
}

/* --- MERCH SECTION (showcase cards on a band like the story section) --- */
.merch-section {
    padding: 80px 8%;
    background: #0e0e10;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* --- RED CIRCLE PRESALE BADGE --- */
.presale-badge-circle {
    position: absolute;
    width: 82px;
    height: 82px;
    background: var(--red);
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(230, 16, 16, 0.6);
    transform: translateZ(45px);
    z-index: 20;
}

.presale-badge-circle.top-left {
    top: -20px;
    left: -20px;
}

.presale-badge-circle.top-right {
    top: -20px;
    right: -20px;
}

.presale-badge-circle .price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-bottom: 2px;
}

.presale-badge-circle .price-num {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.presale-badge-circle .currency {
    font-size: 0.55rem;
    font-weight: 800;
}

.presale-badge-circle .label {
    font-size: 0.45rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 5px;
    border-radius: 3px;
}

.card-3d h2 {
    font-family: var(--font-title);
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
    transform: translateZ(30px);
}

.card-3d p {
    font-size: 0.85rem;
    color: var(--text-dim);
    transform: translateZ(20px);
}

.card-badge {
    background: var(--burgundy);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 20px;
    letter-spacing: 1px;
    transform: translateZ(25px);
}

/* --- BUTTONS --- */
.cta-btn {
    background: linear-gradient(45deg, #d4af37, #f3e5ab);
    color: #000;
    border: none;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    margin-top: 30px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

.cta-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* --- SYNOPSIS / STORY SECTION --- */
.story-section {
    padding: 80px 8%;
    background: #0e0e10;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.story-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 20px;
}

.highlight-quote {
    font-family: var(--font-title);
    color: var(--gold);
    font-style: italic;
    margin: 30px 0;
    font-size: 1.2rem;
}

/* --- VIDEO / TEASER SECTION --- */
.video-section {
    padding: 80px 8%;
    text-align: center;
}

.video-box {
    max-width: 850px;
    aspect-ratio: 16 / 9;
    margin: 30px auto 0;
    background: #18181c;
    border: 1px solid var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.video-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    background: none;
    border: none;
    padding: 0 16px;
    font-family: inherit;
    color: var(--gold);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.video-placeholder i {
    font-size: 3rem;
    transition: 0.3s;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    color: var(--gold-hover);
}

/* --- INCLUDED SECTION --- */
.details-section {
    padding: 80px 8%;
    background-color: #0e0e10;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-item {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    transition: 0.3s;
}

.grid-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.grid-item h3 {
    font-family: var(--font-title);
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.grid-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --- MODAL ORDER FORM --- */
.modal {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    z-index: 2000;
    animation: modal-fade 0.2s ease-out;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    padding: 40px;
    width: 90%;
    max-width: 450px;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    outline: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    line-height: 1;
    font-family: inherit;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--gold);
}

.modal-content h3 {
    font-family: var(--font-title);
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: var(--bg-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    outline: none;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
}

.form-group input[type="file"] {
    padding: 7px;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: var(--gold);
    color: var(--bg-color);
}

/* honeypot field: off-screen for people, still in the form for bots */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-error a {
    color: inherit;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.order-success {
    text-align: center;
}

.order-success > i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.order-success p {
    color: var(--text-dim);
}

/* --- FOOTER & SOCIALS --- */
footer {
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    background: #080809;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    color: var(--text-dim);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.footer-phone {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-light);
}

.footer-phone a {
    color: var(--gold);
    text-decoration: none;
}

footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* --- SECTION SUBTITLES (one line under each section title) --- */
.section-subtitle {
    max-width: 700px;
    margin: -10px auto 30px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-align: center;
}

/* --- HERO TEXT BLOCK (gold italic line + grey description) --- */
.hero .hero-title-yellow {
    color: var(--gold-light);
    font-style: italic;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.hero .hero-desc-grey {
    color: var(--text-dim);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* --- MERCH CARD ORDER BUTTON (the click bubbles up to the card's data-order) --- */
.card-3d .card-btn {
    margin-top: 18px;
    background: transparent;
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    transform: translateZ(25px);
}

.card-3d .card-btn:hover {
    background: var(--gold-light);
    color: #000;
}

/* --- AUTHOR SECTION --- */
.author-section {
    padding: 60px 8% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px;
    max-width: 850px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.author-avatar-circle {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid var(--gold);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    /* fallback icon, visible until the photo is added */
    color: rgba(212, 175, 55, 0.45);
    font-size: 4rem;
}

.author-avatar-circle img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.author-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-name {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--gold);
}

.author-quote {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

.author-section .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* --- AUTHOR'S MESSAGE MODAL (wider, left-aligned text) --- */
.message-modal-content {
    max-width: 750px;
    text-align: left;
}

.message-modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.message-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 15px;
}

.message-body strong {
    font-weight: 600;
}

/* --- MOBILE RESPONSIVE --- */
/* Not enough room for the six menu items between logo and contacts: the menu gets its own row
   (the menu needs ~760px, logo + contacts + paddings take ~850px) */
@media (max-width: 1650px) {
    nav { grid-template-columns: auto auto; justify-content: space-between; padding-block: 12px; row-gap: 6px; }
    /* phone and socials side by side to keep the two-row header low */
    .phone-container { flex-direction: row; gap: 12px; }
    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 6px;
        border-top: 1px solid rgba(212, 175, 55, 0.12);
    }
    .nav-menu a { padding: 4px 0; }
    /* auto margins center the items but, unlike justify-content: center,
       don't cut off the first item if a narrow phone has to scroll the row */
    .nav-menu li:first-child { margin-left: auto; }
    .nav-menu li:last-child { margin-right: auto; }
}

@media (max-width: 1100px) {
    .hero { gap: 40px; }
    .book3d { --k: 0.85; }
}

/* Hero: text on top, book below */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; gap: 10px; padding: 50px 20px 30px; }
    .hero-content { flex: none; max-width: 650px; }
    .book3d { --k: 0.8; }
}

@media (max-width: 768px) {
    .top-banner { font-size: 0.75rem; padding: 6px 10px; column-gap: 8px; }
    .top-banner .timer-box { font-size: 0.8rem; }
    nav { padding: 10px 5%; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
    .hero .hero-title-yellow { font-size: 1.15rem; }
    .hero .hero-desc-grey { font-size: 0.95rem; }
    .author-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .author-avatar-circle { width: 130px; height: 130px; }
    .message-modal-content { padding: 40px 18px 25px; }
    .section-title { font-size: 1.5rem; }
    .showcase-grid { gap: 30px; }
    .card-3d { width: 250px; height: 340px; }
    .phone-link { font-size: 0.8rem; }
    .header-social-link { font-size: 0.85rem; }
    .nav-contacts { gap: 15px; }
    .modal-content { padding: 40px 22px 25px; }
    /* 16px stops iOS Safari from zooming into focused fields */
    .form-group input, .form-group select { font-size: 16px; }
}

/* Phones: the number and socials don't fit next to the logo, keep a round call button
   (the full number and socials are in the footer) */
@media (max-width: 560px) {
    nav { padding: 10px 16px; gap: 6px 10px; }
    .logo { font-size: 0.85rem; letter-spacing: 1px; }
    .header-socials, .phone-text { display: none; }
    .phone-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 50%;
        color: var(--gold);
    }
    .nav-contacts { gap: 10px; }
    .nav-btn { padding: 7px 12px; font-size: 0.72rem; }
    .nav-menu { gap: 10px; padding-top: 2px; }
    .nav-menu a { font-size: 0.68rem; letter-spacing: 0; }
    .hero .cta-btn { padding: 16px 24px; letter-spacing: 1px; }
    .book3d { --k: 0.7; }
}
