:root {
  --bg: #0a0a0a;
  --bg-alt: #0f0e0c;
  --card: #151412;
  --card-border: rgba(201, 169, 110, 0.15);
  --gold: #c9a96e;
  --gold-light: #e3c894;
  --gold-dim: rgba(201, 169, 110, 0.35);
  --text: #f0ece4;
  --text-muted: #a8a196;
  --text-dim: #6f695f;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 4px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

/* ===== Cookie-баннер (аналитика + ретаргетинг) ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.cookie-banner-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-text {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 760px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-banner .btn-small { padding: 9px 20px; font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) {
  .cookie-banner { padding: 16px; flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: flex-end; }
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17140d;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(201, 169, 110, 0.55); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(240, 236, 228, 0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-small { padding: 10px 22px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 236, 228, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.logo-accent { color: var(--gold-light); font-style: italic; }
.nav { display: flex; gap: 34px; margin-right: auto; margin-left: 48px; }
.nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--text); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 20%, #1a1712 0%, #0a0a0a 55%, #060605 100%);
  padding-top: 82px;
}
#threeCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 { width: 480px; height: 480px; top: -120px; right: -80px; background: rgba(201, 169, 110, 0.14); }
.hero-glow-2 { width: 360px; height: 360px; bottom: -100px; left: -60px; background: rgba(201, 169, 110, 0.07); }

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 30px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 26px;
}
.accent-italic { color: var(--gold-light); font-style: italic; font-weight: 600; }
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 18px; margin-bottom: 64px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold-light); }
.stat-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-hint span { width: 1px; height: 30px; background: linear-gradient(var(--gold-dim), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== Sections ===== */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

/* ===== Effects grid ===== */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240, 236, 228, 0.06);
  border: 1px solid rgba(240, 236, 228, 0.06);
}
.effect-card {
  background: var(--bg);
  padding: 40px 34px;
  transition: background 0.3s ease;
  opacity: 0; transform: translateY(24px);
}
.effect-card.in-view { animation: fadeUp 0.7s ease forwards; }
.effect-card:hover { background: #121110; }
.effect-icon { font-size: 26px; color: var(--gold); margin-bottom: 20px; }
.effect-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.effect-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-card {
  display: block;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  opacity: 0; transform: translateY(24px);
  text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s;
}
.portfolio-card:hover { border-color: rgba(212,175,55,0.45); transform: translateY(-4px); }
.portfolio-card.in-view { animation: fadeUp 0.7s ease forwards; }
.portfolio-media {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: top center;
  background-color: #0e0d0b;
}
.portfolio-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0) 55%, rgba(10,9,8,0.55) 100%);
}
.portfolio-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); border: 1px solid rgba(240,236,228,0.12); padding: 6px 14px; border-radius: 20px; }
.portfolio-body { padding: 28px; }
.portfolio-tag { font-size: 12px; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; }
.portfolio-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 12px 0 10px; }
.portfolio-body p { font-size: 14px; color: var(--text-muted); }
.portfolio-link { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--gold); letter-spacing: 0.03em; }
.portfolio-card:hover .portfolio-link { text-decoration: underline; }
.portfolio-note { margin-top: 40px; font-size: 14px; color: var(--text-dim); text-align: center; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 40px 34px;
  display: flex; flex-direction: column;
  position: relative;
  opacity: 0; transform: translateY(24px);
}
.price-card.in-view { animation: fadeUp 0.7s ease forwards; }
.price-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, #1a1710, var(--card) 40%);
  transform: scale(1.02);
}
.price-badge {
  position: absolute; top: -13px; left: 34px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17140d;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em;
  padding: 5px 14px; border-radius: 20px;
}
.price-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.price-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; min-height: 42px; }
.price-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--gold-light); margin-bottom: 26px; }
.price-list { margin-bottom: 30px; flex-grow: 1; }
.price-list li {
  font-size: 14px; color: var(--text-muted);
  padding: 10px 0 10px 24px;
  position: relative;
  border-top: 1px solid rgba(240,236,228,0.06);
}
.price-list li:first-child { border-top: none; }
.price-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.pricing-note { margin-top: 36px; text-align: center; font-size: 13.5px; color: var(--text-dim); }

/* ===== Process ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process-step { opacity: 0; transform: translateY(24px); }
.process-step.in-view { animation: fadeUp 0.7s ease forwards; }
.process-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold-dim); margin-bottom: 16px; }
.process-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--text-muted); }

/* ===== Contact ===== */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 56px;
}
.contact-info .section-title { margin: 14px 0 16px; }
.contact-text { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; max-width: 420px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); margin-bottom: 14px; }
.contact-icon { color: var(--gold); font-size: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: #0d0c0a;
  border: 1px solid rgba(240, 236, 228, 0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.form-status { font-size: 13.5px; color: var(--gold-light); min-height: 18px; text-align: center; }

/* ===== Footer ===== */
.footer { padding: 44px 0; border-top: 1px solid rgba(240, 236, 228, 0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.logo-footer { font-size: 18px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ===== Animations ===== */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .effects-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
}
@media (max-width: 768px) {
  #threeCanvas { opacity: 0.45; }
  .nav {
    position: fixed;
    top: 82px; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(240,236,228,0.06);
  }
  .nav.nav-open { max-height: 320px; padding: 8px 0; }
  .nav a { padding: 16px 32px; border-top: 1px solid rgba(240,236,228,0.05); }
  .burger { display: flex; }
  .burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-open span:nth-child(2) { opacity: 0; }
  .burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner .btn-small { display: none; }
  .effects-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .pricing-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .contact-box { padding: 32px; }
  .section { padding: 80px 0; }
}

/* ===== многостраничная версия ===== */
.nav a.active { color: #e3c894; }
.nav a.active::after { content: ''; display: block; height: 1px; margin-top: 4px; background: #c9a96e; }

.page-hero { position: relative; padding: 148px 0 54px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.12; margin: 14px 0 16px; color: #f4f1ea; }
.page-lead { max-width: 680px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; color: #a9a6a1; }
.crumbs { font-size: 13px; letter-spacing: .04em; color: #6f6d69; margin-bottom: 18px; }
.crumbs a { color: #6f6d69; text-decoration: none; }
.crumbs a:hover { color: #c9a96e; }
.crumb-sep { margin: 0 6px; }

.cta-box { text-align: center; padding: 46px 32px; border: 1px solid rgba(201,169,110,.22);
  border-radius: 20px; background: linear-gradient(180deg, rgba(201,169,110,.06), rgba(0,0,0,0)); }
.cta-box .section-title { max-width: 720px; margin: 0 auto 24px; }
.cta-box .hero-actions { justify-content: center; }

.faq-list { max-width: 820px; display: grid; gap: 14px; }
.faq-item { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px 24px; background: rgba(255,255,255,.02); }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; color: #f0ece4; }
.faq-item p { color: #a9a6a1; line-height: 1.6; margin: 0; }

.feature-list { display: grid; gap: 12px; max-width: 760px; }
.feature-list li { list-style: none; display: flex; gap: 12px; color: #b9b6b1; line-height: 1.55; }
.feature-list li::before { content: '◈'; color: #c9a96e; }

.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; padding: 46px 0 26px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #84817c; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: #a9a6a1; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #e3c894; }
.footer-note { font-size: 14px; line-height: 1.6; color: #8d8a85; max-width: 380px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0 34px; border-top: 1px solid rgba(255,255,255,.07); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 38px 0 20px; }
  .page-hero { padding: 118px 0 40px; }
}

/* ===== виджет рейтинга Яндекса в подвале (справа) ===== */
.footer-legal { display: flex; flex-direction: column; gap: 5px; }
.footer-rating { display: flex; align-items: center; margin-left: auto; }
.footer-rating iframe { display: block; width: 150px; height: 50px; border: 0; border-radius: 10px; }

/* ===== блог ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.02);
  text-decoration: none; transition: border-color .25s, transform .25s, background .25s; }
.post-card:hover { border-color: rgba(201,169,110,.45); transform: translateY(-3px); background: rgba(201,169,110,.05); }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.post-tag { color: #c9a96e; }
.post-date { color: #6f6d69; }
.post-title { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; line-height: 1.28; color: #f2efe8; margin: 0; }
.post-lead { font-size: 14px; line-height: 1.6; color: #a9a6a1; margin: 0; }
.post-more { margin-top: auto; font-size: 13px; color: #e3c894; }
.post-empty { color: #8d8a85; }

.post-hero { padding-bottom: 34px; }
.post-h1 { max-width: 860px; }
.post-info { margin-top: 18px; font-size: 13px; color: #8d8a85; letter-spacing: .04em; }

.post-body { max-width: 780px; font-size: 16.5px; line-height: 1.78; color: #c8c5c0; }
.post-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.22; color: #f2efe8; margin: 44px 0 16px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 19px; color: #efece5; margin: 30px 0 12px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 22px; }
.post-body li { margin-bottom: 9px; }
.post-body ul li::marker { color: #c9a96e; }
.post-body a { color: #e3c894; text-decoration: none; border-bottom: 1px solid rgba(227,200,148,.35); }
.post-body a:hover { border-bottom-color: #e3c894; }
.post-body strong { color: #f0ece4; }
.post-body blockquote { margin: 26px 0; padding: 18px 24px; border-left: 3px solid #c9a96e;
  background: rgba(201,169,110,.06); border-radius: 0 12px 12px 0; color: #b9b6b1; font-style: italic; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.09); text-align: left; }
.post-body th { color: #f0ece4; font-weight: 600; background: rgba(255,255,255,.03); }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0 20px; }
.post-body code { background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; font-size: 15px; }
