/* --- Brand Design System & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d19251;
    --primary-glow: rgba(209, 146, 81, 0.35);
    --primary-soft: rgba(209, 146, 81, 0.12);
    --navy-dark: #0a0e12;
    --navy-card: #12181f;
    --text-light: #f5f7fa;
    --text-muted: #8fa0b0;
    --border-color: #1e2630;
    --border-glow: #2a3745;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-flash: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--navy-dark);
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    padding-top: 90px;
    overflow-x: hidden;
}

body.page-loading * {
    animation-play-state: paused !important;
}

h1, h2, h3, h4, th, .logo-text, .lang-switch, .nav-link {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
}

/* --- Flash sweep overlay on page load --- */
.flash-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(209, 146, 81, 0.18) 50%, transparent 60%);
    z-index: 9999;
    pointer-events: none;
    transform: translateX(-120%);
    animation: flashSweep 1.1s var(--ease-flash) forwards;
}

@keyframes flashSweep {
    0% { transform: translateX(-120%); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* --- Navigation --- */
header {
    background-color: rgba(10, 14, 18, 0.92);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth);
}

header.scrolled {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    gap: 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease-smooth);
}

.logo-area:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--primary-soft));
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 4px;
    position: relative;
    transition: color 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.35s var(--ease-smooth), left 0.35s var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    background: var(--primary-soft);
    border: 1px solid var(--primary);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s var(--ease-smooth);
    letter-spacing: 1px;
    font-size: 0.78rem;
}

.lang-switch:hover {
    background-color: var(--primary);
    color: var(--navy-dark);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* --- Hero --- */
.hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(rgba(10, 14, 18, 0.7), rgba(10, 14, 18, 0.94)),
                url('../banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--primary-soft) 0%, transparent 55%);
    pointer-events: none;
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
    animation: heroReveal 1s var(--ease-flash) 0.15s both;
}

.hero-content h1 span {
    color: var(--primary);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 12px var(--primary-glow); }
    50% { text-shadow: 0 0 28px rgba(209, 146, 81, 0.6); }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--text-light);
    margin-bottom: 1.8rem;
    animation: heroReveal 1s var(--ease-flash) 0.35s both;
}

.hero-subtext {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.8;
    border-top: 1px solid rgba(209, 146, 81, 0.2);
    padding-top: 1.5rem;
    animation: heroReveal 1s var(--ease-flash) 0.55s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    animation: heroReveal 1s var(--ease-flash) 0.75s both;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s var(--ease-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--navy-dark);
    box-shadow: 0 4px 20px var(--primary-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-soft);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--primary-soft);
}

/* --- Page hero (inner pages) --- */
.page-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(209, 146, 81, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
}

.page-hero h1 span {
    color: var(--primary);
}

.page-hero p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-flash), transform 0.7s var(--ease-flash);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background-color: var(--navy-card);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
    transition: all 0.4s var(--ease-smooth);
}

.card.hpa-card {
    grid-column: 2;
}

.card:hover {
    border-color: var(--primary);
    border-bottom-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 20px var(--primary-soft);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--primary);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(209, 146, 81, 0.15);
    padding-bottom: 0.5rem;
}

.card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.card ul li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.card ul li::before {
    content: "▪";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: -1px;
}

/* --- Stats strip --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0 4rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.stat-number {
    font-family: 'Oxanium', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-soft);
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

/* --- Info blocks --- */
.info-block {
    background-color: var(--navy-card);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

.info-block:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-soft);
}

.info-block h2 {
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.info-block > p {
    color: var(--text-light);
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    background: rgba(10, 14, 18, 0.6);
    padding: 1.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.details-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 1px;
}

.details-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Pricing --- */
.price-category-title {
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin: 3rem 0 1rem;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2rem;
    background-color: var(--navy-card);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: rgba(209, 146, 81, 0.05);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.1rem 1.3rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9rem;
}

.pricing-table td {
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    vertical-align: middle;
    transition: background 0.25s ease;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover td {
    background-color: rgba(209, 146, 81, 0.03);
}

.pricing-table .price-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    white-space: nowrap;
    font-family: 'Oxanium', sans-serif;
    width: 22%;
}

.price-disclaimer-box {
    background-color: rgba(209, 146, 81, 0.03);
    border: 1px dashed rgba(209, 146, 81, 0.3);
    padding: 2rem;
    border-radius: 6px;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.price-disclaimer-box strong {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- CTA banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-card), #141b24);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(209, 146, 81, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-soft), transparent 30%);
    animation: ctaRotate 8s linear infinite;
    opacity: 0.4;
}

@keyframes ctaRotate {
    to { transform: rotate(360deg); }
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-form-panel {
    background: var(--navy-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form-panel h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.contact-form-panel .desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-family: 'Oxanium', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(10, 14, 18, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-box {
    background: linear-gradient(135deg, var(--navy-card), #141b24);
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 3rem;
}

.contact-box.centered-cta {
    display: flex;
    grid-template-columns: none;
}

.contact-info-panel {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-panel h3 span {
    color: var(--primary);
}

.contact-info-panel p.desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-meta-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-method h4 {
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.contact-method p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: bold;
}

.contact-method a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-method a:hover {
    color: var(--primary);
}

.map-panel {
    min-height: 420px;
    border-left: 1px solid var(--border-color);
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hours-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hours-item strong {
    color: var(--text-light);
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
    background-color: #070a0d;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Modal --- */
#termsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 18, 0.93);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.modal-content {
    background: var(--navy-card);
    border: 1px solid var(--primary);
    max-width: 850px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: modalIn 0.4s var(--ease-flash);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    font-family: 'Oxanium', sans-serif;
    font-weight: bold;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-light);
}

/* --- Language Visibility Rules --- */
/* By default (English active): show English, hide Czech completely */
.lang-en {
    display: block;
}
span.lang-en, a.lang-en, button.lang-en {
    display: inline-block;
}
.lang-cs {
    display: none !important;
}

/* When Czech is active: hide English completely, show Czech */
body.cs-active .lang-en {
    display: none !important;
}
body.cs-active .lang-cs {
    display: block !important;
}
body.cs-active span.lang-cs,
body.cs-active a.lang-cs,
body.cs-active button.lang-cs {
    display: inline-block !important;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .card.hpa-card { grid-column: auto; }
    .contact-box,
    .contact-layout { grid-template-columns: 1fr; }
    .map-panel {
        height: 350px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 18, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--primary);
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .grid,
    .grid-2 { grid-template-columns: 1fr; }
    .info-block { padding: 2rem; }
    .contact-info-panel { padding: 2rem 1.5rem; }
    .pricing-table th,
    .pricing-table td { padding: 0.75rem; font-size: 0.85rem; }
    .pricing-table .price-tag { width: 35%; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* --- Photos / MGS Tactical Gallery --- */
body.photos-page {
    padding-top: 90px;
}

.photos-stage {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photos-hud-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.photos-hud-header .hud-tag {
    font-family: 'Oxanium', monospace;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: #4ade80;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    animation: hudBlink 2.5s ease-in-out infinite;
}

@keyframes hudBlink {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.45; }
}

.photos-hud-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.photos-hud-header h1 span {
    color: var(--primary);
}

.photos-hud-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Audio controls */
.photos-audio-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    width: 100%;
}

.audio-btn {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.55rem 1.1rem;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
}

.audio-btn:hover,
.audio-btn.active {
    background: rgba(74, 222, 128, 0.15);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    transform: translateY(-1px);
}

.audio-btn.muted {
    border-color: var(--border-color);
    color: var(--text-muted);
    background: transparent;
}

/* Split layout: photo left, codec briefing right */
.gallery-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 1180px;
    align-items: stretch;
}

/* Main viewer */
.gallery-viewer {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 5;
    max-height: 62vh;
    margin: 0;
    background: #050809;
    border: 2px solid rgba(74, 222, 128, 0.25);
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(209, 146, 81, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 0 80px rgba(0, 0, 0, 0.5);
}

/* MGS codec briefing panel */
.briefing-terminal {
    background:
        linear-gradient(180deg, rgba(0, 12, 6, 0.95) 0%, rgba(0, 6, 3, 0.98) 100%);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 4px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: 62vh;
    box-shadow:
        inset 0 0 40px rgba(74, 222, 128, 0.04),
        0 0 25px rgba(74, 222, 128, 0.08);
    position: relative;
    overflow: hidden;
}

.briefing-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(74, 222, 128, 0.025) 3px,
        rgba(74, 222, 128, 0.025) 4px
    );
    pointer-events: none;
}

.briefing-terminal > * {
    position: relative;
    z-index: 1;
}

.briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.briefing-tag {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: #4ade80;
    text-transform: uppercase;
}

.briefing-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #4ade80;
    animation: hudBlink 1.8s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.briefing-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: rgba(74, 222, 128, 0.75);
    line-height: 1.7;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.briefing-meta .meta-key {
    color: #86efac;
    font-weight: 600;
}

.briefing-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 222, 128, 0.4) transparent;
}

.briefing-prompt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: rgba(74, 222, 128, 0.55);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.briefing-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.78rem, 1.35vw, 0.88rem);
    color: #4ade80;
    line-height: 1.75;
    letter-spacing: 0.3px;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
    min-height: 8em;
}

.briefing-cursor {
    display: inline-block;
    color: #86efac;
    animation: cursorBlink 0.85s step-end infinite;
    margin-left: 1px;
    font-weight: 600;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.briefing-signature {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(74, 222, 128, 0.2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: rgba(74, 222, 128, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.briefing-terminal.typing .briefing-cursor {
    animation: cursorBlink 0.5s step-end infinite;
}

.gallery-viewer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 4;
}

.gallery-viewer::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    pointer-events: none;
    z-index: 3;
}

/* HUD corners */
.hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #4ade80;
    border-style: solid;
    z-index: 5;
    opacity: 0.7;
}

.hud-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.55s var(--ease-flash), transform 6s linear;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.gallery-slide.exiting {
    opacity: 0;
    z-index: 2;
    animation: photoGlitch 0.45s var(--ease-flash) forwards;
}

@keyframes photoGlitch {
    0% { opacity: 1; filter: none; transform: scale(1); }
    15% { opacity: 0.9; filter: hue-rotate(90deg) brightness(1.3); transform: translateX(-4px) scale(1.01); }
    30% { opacity: 0.7; filter: none; transform: translateX(4px); }
    45% { opacity: 0.5; filter: contrast(1.5) saturate(0); transform: translateX(-2px); }
    100% { opacity: 0; filter: none; transform: scale(1.02); }
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Scan line sweep on change */
.scan-sweep {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4ade80, transparent);
    box-shadow: 0 0 20px #4ade80;
    z-index: 6;
    pointer-events: none;
    animation: scanDown 0.5s var(--ease-flash) forwards;
}

@keyframes scanDown {
    from { top: 0; opacity: 1; }
    to { top: 100%; opacity: 0; }
}

.gallery-counter {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 5;
    font-family: 'Oxanium', monospace;
    font-size: 0.85rem;
    color: #4ade80;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.gallery-label {
    position: absolute;
    bottom: 16px;
    left: 20px;
    z-index: 5;
    font-family: 'Oxanium', monospace;
    font-size: 0.72rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.35rem 0.75rem;
    border-left: 3px solid var(--primary);
}

/* Nav arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-smooth);
    border-radius: 2px;
}

.gallery-nav:hover {
    background: rgba(74, 222, 128, 0.15);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

/* Thumbnail strip */
.gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.75rem;
    width: 100%;
    max-width: 1180px;
    overflow-x: auto;
    background: var(--navy-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--navy-dark);
}

.gallery-thumb {
    flex: 0 0 90px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.45;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 222, 128, 0);
    transition: background 0.25s;
}

.gallery-thumb:hover {
    opacity: 0.8;
    border-color: rgba(74, 222, 128, 0.4);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.35);
    transform: scale(1.05);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.gallery-controls .hint {
    font-family: 'Oxanium', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.autoplay-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 6px;
    animation: hudBlink 1.2s ease-in-out infinite;
}

.autoplay-dot.paused {
    background: var(--text-muted);
    animation: none;
}

@media (max-width: 968px) {
    .gallery-split {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .gallery-viewer {
        aspect-ratio: 16 / 10;
        max-height: 48vh;
    }

    .briefing-terminal {
        max-height: none;
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .gallery-viewer {
        width: 100%;
        aspect-ratio: 4 / 3;
        max-height: 50vh;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .gallery-thumb {
        flex: 0 0 70px;
        height: 48px;
    }
}