/* ============================================================
   ПЕРКОВ — Огонь и сталь
   Design System: Dark Premium + Bronze/Copper
   Fonts: Playfair Display + Inter + JetBrains Mono
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0A0A;
  --bg-surface: #1A1A1A;
  --bg-card: #141414;
  --bg-elevated: #222222;
  --accent: #C8873E;
  --accent-hover: #D4A853;
  --accent-dim: rgba(200, 135, 62, 0.15);
  --text: #F5F5F0;
  --text-muted: #999990;
  --text-dim: #666660;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(200, 135, 62, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Prevent any element from causing horizontal scroll */
section, footer, nav, .container, .hero, .map-fullwidth {
  max-width: 100%;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); max-width: 65ch; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.mono { font-family: 'JetBrains Mono', monospace; }
.accent { color: var(--accent); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 600; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { margin: 16px auto 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height); display: flex; align-items: center;
  transition: background var(--transition);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.nav-logo-mark {
  width: 40px; height: 40px; border: 2px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--accent); font-weight: 700;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.nav-logo-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-dim); display: block; margin-top: -2px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; transition: color var(--transition); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--accent); }
.nav-phone { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.nav-phone:hover { color: var(--accent-hover); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 99;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text); font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.mobile-menu a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; max-width: 100vw;
}
/* Hero Slider */
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.35);
}
.hero-slide.active { opacity: 1; }
/* Ken Burns subtle zoom on active slide */
.hero-slide.active {
  animation: kenburns 8s ease-in-out forwards;
}
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.3);
}
.hero-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a0f00 0%, #0A0A0A 40%, #1a1000 70%, #0A0A0A 100%);
}
/* Slider dots */
.hero-dots {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dot {
  width: 32px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.25); border: none; cursor: pointer;
  transition: all 0.4s ease; padding: 0;
}
.hero-dot.active {
  background: var(--accent); width: 48px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.6) 100%);
}
.hero-sparks {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  animation: spark-rise 3s ease-out infinite;
}
@keyframes spark-rise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-200px) translateX(40px) scale(0); }
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
}
.hero-badge {
  display: inline-block; padding: 8px 20px; border: 1px solid var(--border-accent);
  border-radius: 100px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); margin-bottom: 32px; background: var(--accent-dim);
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .line-thin { font-weight: 400; font-style: italic; display: block; font-size: 0.4em; letter-spacing: 0.1em; color: var(--accent); margin-top: 8px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin: 0 auto 40px; max-width: 500px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  display: none;
  color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  transition: all var(--transition); border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { background: var(--accent-hover); color: #0A0A0A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 135, 62, 0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* --- Cards --- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--transition);
}
.card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow); }

/* --- Styles Portfolio Grid --- */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.style-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  background: var(--surface);
}
.style-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.style-card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  transition: transform 0.6s ease;
  overflow: hidden;
}
.style-card:hover .style-card-img {
  transform: scale(1.04);
}
.style-card-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.style-card-tag {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
}
.style-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 600;
  color: var(--text); margin: 0;
}
.style-card-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 4px 0 8px;
}
.style-card-link {
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  letter-spacing: 0.05em; margin-top: auto;
  transition: opacity var(--transition);
}
.style-card:hover .style-card-link { opacity: 0.7; }

/* Placeholder images */
.img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.img-placeholder.warm { background: linear-gradient(135deg, #2a1a0a, #1a1000, #0f0a05); }
.img-placeholder.cool { background: linear-gradient(135deg, #0a1520, #0f0a15, #1a1510); }

/* --- Portfolio Grid (inner pages gallery) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-grid .portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
}
.portfolio-grid .portfolio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-grid .portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
}
.portfolio-grid .portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
  backdrop-filter: blur(2px);
}
.portfolio-grid .portfolio-item-overlay h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}
.portfolio-grid .portfolio-item-overlay span {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .portfolio-grid .portfolio-item-overlay { opacity: 1; padding: 10px; }
  .portfolio-grid .portfolio-item-overlay h4 { font-size: 0.75rem; }
  .portfolio-grid .portfolio-item-overlay span { font-size: 0.6rem; }
}
@media (max-width: 480px) {
  .portfolio-grid { gap: 6px; }
  .portfolio-grid .portfolio-item { border-radius: 6px; }
}

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.95); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: var(--text);
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 768px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox img { max-width: 95%; max-height: 75vh; }
}

/* --- Process Timeline --- */
.timeline { display: flex; gap: 0; justify-content: center; position: relative; padding: 40px 0; }
.timeline::before {
  content: ''; position: absolute; top: 60px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.timeline-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 1; position: relative; padding: 0 8px;
}
.timeline-num {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 700;
  color: var(--accent); background: var(--bg); position: relative; z-index: 2;
  margin-bottom: 16px;
}
.timeline-step h4 { font-size: 0.85rem; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 600; }
.timeline-step p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }

/* --- Trust Badges --- */
.trust-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { text-align: center; }
.trust-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; }
.trust-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.trust-item h4 { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 0.75rem; color: var(--text-dim); }

/* --- Testimonials --- */
.testimonials-section {
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('about/workshop-1.jpg') center/cover no-repeat;
  filter: brightness(0.3) blur(1px);
  z-index: 0;
}
.testimonials-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, rgba(26,26,26,0.4) 50%, rgba(10,10,10,0.7) 100%);
  z-index: 0;
}
.testimonials-section > .container {
  position: relative;
  z-index: 1;
}
.testimonial-card {
  background: rgba(20,20,20,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; position: relative;
}
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 16px; left: 24px;
  font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--accent); opacity: 0.3; line-height: 1;
}
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 16px; padding-top: 24px; line-height: 1.7; }
.testimonial-author { font-weight: 600; font-size: 0.85rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-dim); }
.testimonial-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 2px; }

/* --- FAQ Accordion --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; width: 100%; background: none; border: none;
  color: var(--text); font-size: 1rem; font-weight: 500; text-align: left;
  font-family: 'Inter', sans-serif; transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon { font-size: 1.5rem; color: var(--accent); transition: transform var(--transition); font-weight: 300; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 20px; color: var(--text-muted); line-height: 1.7; font-size: 0.9rem; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif;
  transition: border-color var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact-item h4 { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.contact-item p { font-size: 0.85rem; color: var(--text-muted); }
.contact-item a { color: var(--accent); }

.map-container { width: 100%; height: 300px; border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 100%; border: none; filter: grayscale(1) invert(1) contrast(0.9) brightness(0.6); }

/* Full-width map between contact and footer */
.map-fullwidth { position: relative; width: 100%; height: 320px; overflow: hidden; cursor: pointer; }
.map-click-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 60px;
  z-index: 2; cursor: pointer;
}
.map-fullwidth iframe { width: 100%; height: 100%; border: none; filter: grayscale(1) invert(1) contrast(0.9) brightness(0.6); }
.map-overlay-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,10,10,0.95) 40%);
  padding: 40px 0 20px;
}
@media (max-width: 768px) {
  .map-fullwidth { height: 240px; }
  .map-overlay-strip { padding: 24px 16px 12px; }
  .map-overlay-strip .container { flex-direction: column; align-items: flex-start; }
}

/* --- Footer --- */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 12px; max-width: 280px; }
.footer-links h4 { font-family: 'Inter', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed; bottom: 92px; right: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent); background: var(--accent-dim);
  transform: translateY(-2px);
}
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --- Nav Compact on Scroll --- */
.nav.compact { height: 52px; }
.nav.compact .nav-logo-img { width: 36px; height: 36px; }
.nav.compact .nav-logo-sub { display: none; }
.nav.compact .nav-logo-text { font-size: 0.95rem; }

@media (max-width: 768px) {
  .back-to-top { bottom: 88px; right: 16px; width: 40px; height: 40px; }
}

/* --- Floating Contact Button --- */
.floating-contact {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
}
.float-trigger {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent);
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(200, 135, 62, 0.2); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.float-trigger::before {
  content: '';
  position: absolute;
  top: -50%; left: -100%; width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: float-shimmer 3s ease-in-out infinite;
}
@keyframes float-shimmer {
  0%, 70%, 100% { left: -100%; }
  30%, 40% { left: 150%; }
}
.float-trigger:hover { background: var(--accent); box-shadow: 0 8px 32px rgba(200, 135, 62, 0.4); }
.float-trigger svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.5; transition: stroke var(--transition); position: relative; z-index: 1; }
.float-trigger:hover svg { stroke: #0A0A0A; }
.float-menu {
  position: absolute; bottom: 68px; right: 0;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
}
.floating-contact.open .float-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.float-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px;
  color: var(--text); font-size: 0.8rem; font-weight: 500; white-space: nowrap;
  text-decoration: none; transition: all var(--transition); cursor: pointer;
}
.float-option:hover { border-color: var(--accent); color: var(--accent); }
.float-option svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { flex-wrap: wrap; gap: 24px; }
  .timeline::before { display: none; }
  .timeline-step { flex: 0 0 calc(33% - 16px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .styles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-row { gap: 32px; }
  .timeline-step { flex: 0 0 calc(50% - 12px); }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
  .footer-brand p { max-width: 100%; }
  .footer-links {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .footer-links h4 { margin-bottom: 12px; }
  .footer-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-badge { font-size: 0.6rem; }
}

@media (max-width: 480px) {
  .styles-grid { grid-template-columns: 1fr; }
  .trust-row { flex-direction: column; align-items: center; }
  .timeline-step { flex: 0 0 100%; }
}

/* ============================================================
   ELITE PREMIUM DETAILS
   ============================================================ */

/* Luxury spacing — more whitespace = more expensive feel */
.section { padding: 120px 0; }
.section-header { margin-bottom: 80px; }
.section-header h2 { letter-spacing: -0.03em; }
.section-header p { font-size: 1.05rem; line-height: 1.8; }

/* Accent line under section subtitle */
.section-header p::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 24px auto 0;
  opacity: 0.5;
}

/* Hero — cinematic letter spacing */
.hero h1 { letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.hero .line-thin { letter-spacing: 0.02em; text-transform: none; font-weight: 400; font-style: italic; }
.hero-subtitle { letter-spacing: 0.04em; font-size: 1rem; }
.hero-badge { letter-spacing: 0.2em; border-color: var(--accent); color: var(--accent); }

/* Button — spring press effect */
.btn { transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease; }
.btn:active { transform: scale(0.96); }

/* Button primary — bronze gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #A06A2E 100%);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Portfolio cards — luxury hover */
.portfolio-item {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(200, 135, 62, 0.08), 0 8px 24px rgba(0,0,0,0.3);
}
.portfolio-item img { transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover img { transform: scale(1.04); }

/* Portfolio overlay — smooth reveal */
.portfolio-item-overlay {
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

/* Trust badges — subtle accent border on hover */
.trust-item {
  transition: border-color 0.4s ease, transform 0.3s ease;
  border: 1px solid transparent;
  padding: 24px;
  border-radius: var(--radius-lg);
  cursor: default;
}
.trust-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* Timeline steps — staggered reveal feel */
.timeline-step {
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.timeline-step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.timeline-num {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.timeline-step:hover .timeline-num {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(200, 135, 62, 0.3);
}

/* Testimonial cards — bronze accent on hover */
.testimonial-card {
  transition: border-color 0.4s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

/* Stars — bronze glow */
.testimonial-stars {
  text-shadow: 0 0 8px rgba(200, 135, 62, 0.4);
}

/* FAQ — smoother accordion */
.faq-item {
  transition: border-color 0.3s ease;
}
.faq-item:hover {
  border-color: var(--border-accent);
}
.faq-question {
  transition: color 0.3s ease;
}
.faq-item:hover .faq-question {
  color: var(--accent);
}

/* Compare grid — catalog vs custom */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Contact section */
.contact-section {
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}
.contact-section > .container {
  position: relative;
  z-index: 1;
}
.contact-sparks {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}

/* Service chips — premium selector */
.service-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.service-chip:hover {
  border-color: var(--accent); color: var(--accent);
}
.service-chip.selected {
  background: var(--accent-dim); border-color: var(--accent);
  color: var(--accent); box-shadow: 0 0 0 1px var(--accent);
}

/* Contact form inputs — luxury focus state */
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 20px rgba(200, 135, 62, 0.08);
  outline: none;
}

/* Scroll reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer — thin top accent line */
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* Nav — more refined */
.nav { backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }

/* Accent links — underline animation */
a[href^="#"]:not(.btn):not(.tab-btn):not(.nav-logo):not(.faq-question) {
  position: relative;
}

/* Selection color — bronze */
::selection { background: var(--accent); color: var(--bg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { animation: none; }
  .portfolio-item, .trust-item, .timeline-step, .testimonial-card { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Heritage timeline responsive */
@media (max-width: 768px) {
  .heritage-timeline { grid-template-columns: 1fr !important; gap: 32px !important; }
  .section { padding: 80px 0; }
}
