/* ============================================
   ВЕЛЕС — Premium Materials Site
   Dark industrial-luxe aesthetic
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;

    --text-primary: #e8e6e1;
    --text-secondary: #8a8894;
    --text-muted: #55535e;

    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dark: #a68835;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --gold-glow-strong: rgba(201, 168, 76, 0.3);

    --copper: #b87333;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* ---- Particle Canvas ---- */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px clamp(20px, 4vw, 60px);
    transition: all 0.6s var(--ease-out-expo);
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 16px clamp(20px, 4vw, 60px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__logo-icon {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    color: var(--gold);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    position: relative;
}

.nav__logo-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.nav__logo-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--text-primary);
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover {
    color: var(--gold-light);
}

.nav__link:hover::after {
    width: 100%;
}

/* ---- Hero Section ---- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    z-index: 1;
    overflow: hidden;
}

.hero__bg-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__overline {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.hero__title span {
    display: block;
}

.hero__title-accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.hero__subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn--primary {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.btn--primary:hover::before {
    transform: translateX(100%);
}

.btn--primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 24px var(--gold-glow);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---- Section Common ---- */

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 40px;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 60px;
}

.text-accent {
    color: var(--gold);
    font-style: italic;
}

/* ---- About Section ---- */

.about {
    position: relative;
    z-index: 1;
    padding: 140px 0;
}

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

.about__description {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: grid;
    gap: 24px;
    padding-top: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 32px 36px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.6s var(--ease-out-expo);
}

.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.15);
    transform: translateX(8px);
    background: var(--bg-card-hover);
}

.stat-card:hover::before {
    height: 100%;
}

.stat-card__number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.stat-card__suffix {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    color: var(--gold);
}

.stat-card__label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    width: 100%;
    margin-top: 8px;
    line-height: 1.5;
}

/* ---- Catalog Section ---- */

.catalog {
    position: relative;
    z-index: 1;
    padding: 140px 0;
    background: var(--bg-secondary);
}

.catalog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-glow-strong), transparent);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 36px 28px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.catalog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--copper));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}

.catalog-card:hover {
    border-color: rgba(201, 168, 76, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--gold-glow);
    background: var(--bg-card-hover);
}

.catalog-card:hover::after {
    transform: scaleX(1);
}

.catalog-card__icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.catalog-card:hover .catalog-card__icon {
    opacity: 1;
}

.catalog-card__icon svg {
    width: 100%;
    height: 100%;
}

.catalog-card__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.3;
}

.catalog-card__desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
}

.catalog-card__line {
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: rgba(255,255,255,0.04);
}

/* ---- Expertise Section ---- */

.expertise {
    position: relative;
    z-index: 1;
    padding: 140px 0;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
}

.article-card:first-child {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.article-card::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.article-card:hover {
    padding-left: 20px;
}

.article-card:hover::before {
    transform: scaleY(1);
    left: -40px;
}

.article-card__number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    padding-top: 4px;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-card__number {
    opacity: 0.7;
}

.article-card__title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card:hover .article-card__title {
    color: var(--gold-light);
}

.article-card__text {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-card__tags span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.5;
    padding: 4px 12px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    transition: all 0.3s ease;
}

.article-card:hover .article-card__tags span {
    opacity: 0.8;
    border-color: rgba(201, 168, 76, 0.3);
}

/* ---- Geography Section ---- */

.geography {
    position: relative;
    z-index: 1;
    padding: 140px 0;
    background: var(--bg-secondary);
}

.geography::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-glow-strong), transparent);
}

.geography__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.geography__map {
    position: relative;
}

.map-svg {
    width: 100%;
    height: auto;
}

.map-dot {
    animation: dotPulse 3s ease-in-out infinite;
    animation-delay: var(--dot-delay, 0s);
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; r: 3; }
    50% { opacity: 1; r: 5; }
}

.geography__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.geo-fact {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.4s var(--ease-out-expo);
}

.geo-fact:hover {
    border-color: rgba(201, 168, 76, 0.12);
    transform: translateX(8px);
}

.geo-fact__icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    flex-shrink: 0;
    opacity: 0.6;
}

.geo-fact__icon svg {
    width: 100%;
    height: 100%;
}

.geo-fact h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.geo-fact p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Contact Section ---- */

.contact {
    position: relative;
    z-index: 1;
    padding: 140px 0;
}

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

.contact__description {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact__item-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__item-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Contact Form */

.contact__form-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.4s ease;
    resize: none;
}

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

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -16px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--gold);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.6s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

/* ---- Footer ---- */

.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer__tagline {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 12px;
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Reveal Animations ---- */

.reveal-up,
.reveal-left {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-up.revealed,
.reveal-left.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---- Magnetic Cursor Glow (applied via JS) ---- */

.catalog-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.catalog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        var(--gold-glow) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.catalog-card:hover::before {
    opacity: 1;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .catalog__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .geography__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .nav__links {
        display: none;
    }

    .article-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card__number {
        font-size: 32px;
    }

    .footer__grid {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .catalog__grid {
        grid-template-columns: 1fr;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .contact__form-wrapper {
        padding: 32px 24px;
    }
}

/* ---- Smooth section transitions ---- */

section {
    position: relative;
}

section + section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 0;
}

.catalog + .expertise::after,
.geography + .contact::after {
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.about + .catalog::after,
.expertise + .geography::after {
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}
