/* ===== CSS Variables — Literary Club ===== */
:root {
    --primary: #d4a574;
    --primary-dark: #c08a50;
    --primary-light: #e6c9a8;
    --primary-bg: rgba(212, 165, 116, 0.1);
    --accent: #722f37;
    --accent-light: #9a4a54;
    --green: #4a7c59;
    --green-light: #6a9c73;
    --green-bg: rgba(74, 124, 89, 0.08);
    --text: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-light: #8a8a9e;
    --bg: #faf8f5;
    --bg-alt: #f4f0eb;
    --bg-warm: #f7f3ee;
    --bg-dark: #1a1a2e;
    --bg-dark-light: #252540;
    --border: #e8e0d6;
    --border-light: #f0ebe4;
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow: 0 4px 12px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 10px 30px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 165, 116, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--primary-bg);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

/* ===== Decorative Elements ===== */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--primary);
    opacity: 0.5;
}

.ornament::before,
.ornament::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--primary);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.logo-dot {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.06) 50%, rgba(114, 47, 55, 0.04) 100%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: textReveal 0.8s ease-out 0.4s forwards;
}

.hero-name-highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out 0.8s forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: cardReveal 1s ease-out 0.6s forwards;
}

@keyframes cardReveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 380px;
    position: relative;
    border: 1px solid var(--border);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--accent));
    z-index: -1;
    opacity: 0.15;
}

.hero-card::after {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--primary);
    opacity: 0.12;
    line-height: 1;
}

.hero-icon {
    margin-bottom: 24px;
}

.hero-icon svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.hero-quote p {
    font-family: var(--font-display);
    font-size: 20px;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
}

.hero-quote cite {
    font-style: normal;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 0.5; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: var(--primary-bg);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-warm);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.about-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 48px;
    height: 48px;
    color: var(--green);
    margin-bottom: 20px;
}

.about-card-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.about-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Stats Section ===== */
.stats {
    background: var(--bg-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stats::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-weight: 500;
}

/* ===== Services Section ===== */
.services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.service-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
    transition: color var(--transition);
}

.service-card:hover .service-number {
    color: var(--primary-light);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: var(--bg-warm);
}

.cta-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.08) 0%, transparent 70%);
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.cta-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    position: relative;
    z-index: 1;
}

.cta-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
}

/* ===== Page Header ===== */
.page-header {
    padding: 160px 0 60px;
    background: var(--bg);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== Articles Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.article-card.hidden {
    display: none;
}

.article-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-alt), rgba(212, 165, 116, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.article-placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.article-placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.article-card-body {
    padding: 24px;
}

.article-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.tag-vpr {
    background: rgba(26, 26, 46, 0.06);
    color: var(--text);
}

.tag-methods {
    background: var(--green-bg);
    color: var(--green);
}

.tag-other {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.article-card-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text);
}

.article-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

/* Articles Empty */
.articles-empty {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin: 0 auto 16px;
}

.articles-empty p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===== Contacts ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: var(--green);
}

.contact-card-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-link {
    font-size: 15px;
    color: var(--accent);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-note {
    font-size: 13px !important;
    color: var(--text-light) !important;
    margin-top: 2px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-wrapper h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234a4a5e' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--green);
    margin: 0 auto 16px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 16px;
    line-height: 1.6;
}

.footer .logo-text {
    color: #fff;
}

.footer .logo-dot {
    color: var(--primary);
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Text Animations ===== */
.text-animate {
    overflow: hidden;
}

.text-animate .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotate(5deg);
    animation: charReveal 0.5s ease-out forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.text-animate .word {
    display: inline-block;
    overflow: hidden;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.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; }

/* Fade in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Cursor glow ===== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: left, top;
}

/* ===== Hero Photo Frame ===== */
.hero-photo-frame {
    max-width: 360px;
    margin: 0 auto;
    opacity: 0;
    animation: cardReveal 1s ease-out 0.6s forwards;
}

.photo-frame-border {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(212, 165, 116, 0.1);
}

.photo-frame-border::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events: none;
    z-index: 1;
}

.hero-photo {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    background: var(--bg-alt);
}

.hero-quote-bar {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
}

.hero-quote-bar::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--primary);
    line-height: 1;
    background: var(--bg);
    padding: 0 8px;
}

.hero-quote-bar p {
    font-family: var(--font-display);
    font-size: 16px;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 6px;
}

.hero-quote-bar cite {
    font-style: normal;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Quiz Promo Section ===== */
.quiz-promo {
    background: var(--bg);
    padding: 80px 0;
}

.quiz-promo-card {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-light));
    border-radius: var(--radius-lg);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.quiz-promo-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.quiz-promo-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.quiz-promo-letters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 10px;
    background: rgba(212, 165, 116, 0.05);
}

.quiz-promo-content h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.quiz-promo-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.quiz-promo-decoration {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.quiz-promo-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quiz-promo-circle::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.quiz-promo-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.quiz-promo-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* ===== Quiz Page ===== */
.quiz {
    padding: 60px 0 100px;
}

/* Quiz Start */
.quiz-start-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
}

.quiz-start-letters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.quiz-start-letters span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: var(--primary-bg);
}

.quiz-start-card h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.quiz-start-card > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.quiz-start-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
}

.quiz-info-item {
    text-align: center;
}

.quiz-info-number {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.quiz-info-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Quiz Progress */
.quiz-progress {
    margin-bottom: 32px;
}

.quiz-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 5%;
}

.quiz-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.quiz-level-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.quiz-level-badge.medium {
    background: rgba(74, 124, 89, 0.08);
    color: var(--green);
    border-color: rgba(74, 124, 89, 0.2);
}

.quiz-level-badge.hard {
    background: rgba(114, 47, 55, 0.08);
    color: var(--accent);
    border-color: rgba(114, 47, 55, 0.2);
}

/* Quiz Question */
.quiz-question-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
    animation: questionIn 0.4s ease-out;
}

@keyframes questionIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.quiz-question-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    background: var(--bg);
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.quiz-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.quiz-option.selected .quiz-option-letter {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.quiz-option-text {
    padding-top: 4px;
}

/* Quiz Nav */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    max-width: 720px;
    margin: 24px auto 0;
}

/* Quiz Results */
.quiz-results-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    animation: resultIn 0.6s ease-out;
}

@keyframes resultIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.result-circle-wrap {
    margin-bottom: 32px;
}

.result-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.result-circle svg {
    width: 100%;
    height: 100%;
}

.result-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-score {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.result-total {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 4px;
}

.result-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.result-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cursor-glow {
        display: none;
    }

    .quiz-promo-card {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 40px;
    }

    .quiz-promo-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .quiz-promo-letters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .hero-photo-frame {
        max-width: 280px;
    }

    .hero-scroll {
        display: none;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .quiz-question-card {
        padding: 24px;
    }

    .quiz-start-card {
        padding: 40px 24px;
    }

    .quiz-results-card {
        padding: 40px 24px;
    }

    .quiz-promo-card {
        padding: 32px 24px;
    }

    .quiz-promo-circle {
        width: 120px;
        height: 120px;
    }

    .quiz-promo-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 12px;
    }
}
