/*
Theme Name: VK Logistik
Theme URI: https://vklogistik.tilda.ws/
Author: VK Logistik
Author URI: https://vklogistik.tilda.ws/
Description: Custom WordPress theme for VK Logistik — transport company by Vadim Tsagaraev
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vklogistik
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #1a1a1a;
  --color-primary: #e8c547;
  --color-primary-dark: #c9a832;
  --color-text: #f0f0f0;
  --color-text-muted: #999999;
  --color-text-dim: #666666;
  --color-border: #2a2a2a;
  --color-white: #ffffff;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 18px 0; transition: background 0.4s, box-shadow 0.4s; }
.site-header.scrolled { background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(12px); box-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-white); }
.main-nav ul { display: flex; list-style: none; gap: 36px; }
.main-nav a { color: var(--color-text-muted); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; position: relative; padding: 4px 0; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s ease; }
.main-nav a:hover { color: var(--color-white); }
.main-nav a:hover::after { width: 100%; }
.burger-menu { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger-menu span { width: 28px; height: 2px; background: var(--color-white); transition: var(--transition); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(232,197,71,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(232,197,71,0.05) 0%, transparent 50%), linear-gradient(180deg, rgba(0,0,0,0.3) 0%, var(--color-bg) 100%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.3) contrast(1.1); }
.hero-content { position: relative; z-index: 2; animation: heroFadeIn 1.2s ease-out; }
.hero-label { display: inline-block; font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 20px; position: relative; padding: 0 20px; }
.hero-label::before, .hero-label::after { content: ''; position: absolute; top: 50%; width: 40px; height: 1px; background: var(--color-primary); opacity: 0.5; }
.hero-label::before { right: 100%; }
.hero-label::after { left: 100%; }
.hero h1 { font-size: clamp(3.5rem, 8vw, 7rem); color: var(--color-white); margin-bottom: 12px; text-shadow: 0 4px 40px rgba(0,0,0,0.5); }
.hero-subtitle { font-family: var(--font-body); font-size: 1.15rem; color: var(--color-text-muted); max-width: 500px; margin: 0 auto 40px; font-weight: 300; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; background: var(--color-primary); color: var(--color-bg); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 16px 40px; border: none; cursor: pointer; transition: var(--transition); }
.hero-cta:hover { background: var(--color-primary-dark); color: var(--color-bg); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232, 197, 71, 0.3); }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; animation: scrollBounce 2s infinite; }
.hero-scroll span { display: block; width: 24px; height: 38px; border: 2px solid var(--color-text-dim); border-radius: 12px; position: relative; }
.hero-scroll span::after { content: ''; width: 4px; height: 8px; background: var(--color-primary); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollDot 2s infinite; }

/* ABOUT */
.section-about { padding: var(--section-padding); position: relative; }
.section-about::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-border), transparent); }
.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--color-white); margin-bottom: 8px; }
.section-heading .underline { display: block; width: 60px; height: 3px; background: var(--color-primary); margin: 16px auto 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-image { position: relative; overflow: hidden; }
.about-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(20%); transition: filter 0.5s; }
.about-image:hover img { filter: grayscale(0%); }
.about-image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(transparent, var(--color-bg)); pointer-events: none; }
.about-text { padding-top: 20px; }
.about-text p { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 20px; line-height: 1.8; }
.timeline { margin-top: 50px; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 28px; position: relative; padding-left: 20px; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--color-primary); border-radius: 50%; }
.timeline-item::after { content: ''; position: absolute; left: 3px; top: 20px; width: 2px; height: calc(100% + 8px); background: var(--color-border); }
.timeline-item:last-child::after { display: none; }
.timeline-year { font-family: var(--font-heading); font-size: 0.85rem; color: var(--color-primary); font-weight: 700; min-width: 50px; letter-spacing: 0.05em; }
.timeline-desc { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* PROJECTS */
.section-projects { padding: var(--section-padding); background: var(--color-bg-alt); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { background: var(--color-bg-card); border: 1px solid var(--color-border); padding: 40px 32px; transition: var(--transition); position: relative; overflow: hidden; }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--color-primary); transform: scaleX(0); transition: transform 0.4s ease; }
.project-card:hover { transform: translateY(-6px); border-color: var(--color-primary); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.project-card:hover::before { transform: scaleX(1); }
.project-card-icon { width: 48px; height: 48px; background: rgba(232, 197, 71, 0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--color-primary); font-size: 1.4rem; }
.project-card h3 { font-size: 1.3rem; color: var(--color-white); margin-bottom: 14px; }
.project-card p { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.7; }

/* CONTACT */
.section-contact { padding: var(--section-padding); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; color: var(--color-white); margin-bottom: 30px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-item-icon { width: 44px; height: 44px; background: rgba(232, 197, 71, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary); font-size: 1.1rem; }
.contact-item-label { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 4px; }
.contact-item-value { color: var(--color-text); font-size: 1rem; }
.contact-item-value a { color: var(--color-text); }
.contact-item-value a:hover { color: var(--color-primary); }
.social-links { display: flex; gap: 12px; margin-top: 36px; }
.social-link { width: 44px; height: 44px; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: var(--transition); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.social-link:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg); }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 8px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; background: var(--color-bg-card); border: 1px solid var(--color-border); color: var(--color-text); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.15); }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form .btn-submit { display: inline-flex; align-items: center; gap: 10px; background: var(--color-primary); color: var(--color-bg); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 36px; border: none; cursor: pointer; transition: var(--transition); }
.contact-form .btn-submit:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* FOOTER */
.site-footer { padding: 40px 0; border-top: 1px solid var(--color-border); text-align: center; }
.footer-text { color: var(--color-text-dim); font-size: 0.85rem; }
.footer-text a { color: var(--color-text-muted); }

/* ANIMATIONS */
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scrollDot { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 22px; } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(10,10,10,0.98); backdrop-filter: blur(20px); z-index: 999; flex-direction: column; align-items: center; justify-content: center; }
  .main-nav.active { display: flex; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .main-nav a { font-size: 1.2rem; }
  .burger-menu { display: flex; z-index: 1001; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
}
