/* ============================================================
   PRIBYTOK LANDING THEME
   Black + Gold style matching the trading PDF design
   ============================================================ */

/* === 1. FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* === 2. ROOT VARIABLES === */
:root {
  --font-main: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* Background tones */
  --color-bg: #0a0a0a;
  --color-bg-light: #111111;
  --color-bg-card: #161616;
  --color-bg-card-hover: #1c1c1c;
  --color-surface: #1a1a1a;

  /* Gold palette */
  --color-gold: #d4a843;
  --color-gold-light: #e8c56d;
  --color-gold-dark: #b8922e;
  --color-gold-glow: rgba(212, 168, 67, 0.25);
  --color-gold-subtle: rgba(212, 168, 67, 0.08);

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-light: rgba(255, 255, 255, 0.1);
  --color-border-gold: rgba(212, 168, 67, 0.3);

  /* Text */
  --color-text: #ffffff;
  --color-text-secondary: #e0e0e0;
  --color-text-muted: #999999;
  --color-text-dim: #666666;

  /* Status */
  --color-green: #2ecc71;
  --color-red: #e74c3c;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px var(--color-gold-glow);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* === 3. GLOBAL === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before, body::after { display: none !important; }

a { color: var(--color-gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-gold-light); }

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 80px 0; }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 17px;
  max-width: 60ch;
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: var(--color-text);
  font-weight: 700;
}

/* === 4. BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  min-height: 48px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-accent {
  background: var(--color-gold);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
  background: var(--color-gold-light);
  box-shadow: 0 6px 28px var(--color-gold-glow);
  transform: translateY(-2px);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border-light);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-sm { padding: 10px 22px; min-height: 40px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-link {
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { color: var(--color-gold-light); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === 5. HEADER === */
body { padding-top: 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: #fff;
}

.brand-logo__svg {
  display: block;
  height: 28px;
  width: auto;
}

.brand-logo__tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a {
  color: var(--color-text-muted) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: none !important;
  background: transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--color-gold) !important;
  background: transparent !important;
}

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

.header-phone {
  color: var(--color-text-secondary) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.header-phone:hover { color: var(--color-gold) !important; }

.header-telegram {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.header-telegram:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.header-telegram svg { width: 20px; height: 20px; fill: currentColor; }

.header-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background: transparent;
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.header-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-menu-open .header-menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .header-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === 6. HERO === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 168, 67, 0.06), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 168, 67, 0.04), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 50%, #111111 100%);
  overflow: hidden;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255, 255, 255, 0.03) 1px,
    rgba(255, 255, 255, 0.03) 2px
  );
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-section__badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border-gold);
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-section__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-section__subtitle {
  margin: 0 0 36px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-muted);
  max-width: 54ch;
  line-height: 1.55;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-section__stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

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

.hero-stat__number {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-gold);
}

.hero-stat__label {
  font-size: 13px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === 7. SERVICES === */
.services-section { background: var(--color-bg); }

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.service-item__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-border-gold);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--color-gold);
}

.service-item__icon svg { width: 28px; height: 28px; }

.service-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-item p {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

/* === 8. FOR WHOM === */
.for-whom-section {
  background: var(--color-bg-light);
}

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.for-whom-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: border-color 0.2s ease;
}

.for-whom-item:hover { border-color: var(--color-border-gold); }

.for-whom-item__marker {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold-glow);
}

.for-whom-item p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* === 9. BENEFITS === */
.benefits-section { background: var(--color-bg); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-2px);
}

.benefit-card__number {
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.4;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.benefit-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* === 10. ABOUT === */
.about-section { background: var(--color-bg-light); }

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
}

.about-divider {
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  margin-bottom: 28px;
  border-radius: 999px;
}

.about-lead {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--color-text);
}

.about-lead strong { color: var(--color-gold); }

.about-content > p {
  color: var(--color-text-muted);
  margin: 0 0 20px;
  line-height: 1.65;
}

.about-facts-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-facts-list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.about-facts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 6px var(--color-gold-glow);
}

.about-quote {
  border-left: 3px solid var(--color-gold);
  padding: 16px 20px;
  background: var(--color-gold-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-quote p {
  margin: 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 15px;
}

.about-photo { display: flex; justify-content: center; }

.about-photo__frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-gold);
}

.about-photo__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-photo__portrait {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  z-index: 1;
}

.about-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(10, 10, 10, 0.6) 85%,
    rgba(10, 10, 10, 0.9) 100%
  );
  pointer-events: none;
}

/* === 11. PORTFOLIO === */
.portfolio-section { background: var(--color-bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.portfolio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portfolio-card__preview {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.portfolio-card__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-card__preview img,
.portfolio-card.is-hovered .portfolio-card__preview img {
  transform: scale(1.06);
}

.portfolio-card__preview span {
  position: relative;
  z-index: 1;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border-gold);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-card__info { padding: 24px; }

.portfolio-card__info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.portfolio-card__info p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* === 12. PROCESS === */
.process-section { background: var(--color-bg-light); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.process-step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-2px);
}

.process-step__number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-gold);
  color: #000;
  font-weight: 900;
  font-size: 18px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.process-step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* === 13. PRICING === */
.pricing-section { background: var(--color-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.pricing-card--featured:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 40px var(--color-gold-glow);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--color-gold);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: 16px; }

.pricing-card__header h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.pricing-card__price {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.pricing-card__features {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}

.pricing-card__features li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* === 14. CTA === */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 168, 67, 0.05), transparent 60%),
    var(--color-bg-light);
}

.cta-layout {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
}

.cta-content > p {
  color: var(--color-text-muted);
  margin: 0 0 28px;
  font-size: 17px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.cta-contacts-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact-list li { color: var(--color-text-muted); font-size: 15px; }
.contact-list strong { color: var(--color-text); }
.contact-list a { color: var(--color-gold); }
.contact-list a:hover { color: var(--color-gold-light); }

/* === 15. FOOTER === */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 0;
  color: var(--color-text-dim);
  font-size: 13px;
  white-space: nowrap;
}

.footer-logo {
  display: flex;
  justify-content: center;
  flex: 1;
}

.footer-logo__svg {
  display: block;
  height: 48px;
  width: auto;
}

.footer-links { display: flex; gap: 16px; white-space: nowrap; }

.footer-links a {
  color: var(--color-text-muted);
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

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

/* === 16. MODALS === */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: var(--radius-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

.modal-dialog h2 {
  margin: 0 0 8px;
  font-size: 24px;
  text-transform: uppercase;
}

.modal-dialog > p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.modal-close:hover { color: var(--color-gold); }

body.modal-open { overflow: hidden; }

/* === 17. FORMS === */
.lead-form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }

.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea { min-height: 80px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

input::placeholder, textarea::placeholder { color: var(--color-text-dim); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-text-muted);
}

.consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.consent a { color: var(--color-gold); }

.form-status {
  min-height: 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: all 0.2s ease;
}

.form-status:not(:empty) { padding: 10px 12px; }

.form-status.is-success { color: var(--color-green); background: rgba(46, 204, 113, 0.1); }
.form-status.is-error { color: var(--color-red); background: rgba(231, 76, 60, 0.1); }

.form-trust {
  margin: 2px 0 0;
  color: var(--color-text-dim);
  font-size: 13px;
}

/* === 18. COOKIE BANNER === */
.cookie-banner[hidden] { display: none; }

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
}

.cookie-banner__inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.cookie-banner__inner p { margin: 0; font-size: 14px; }

/* === 19. FLOATING CONTACT === */
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 92;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.floating-contact__panel {
  min-width: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-gold);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-contact.is-open .floating-contact__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-contact__action {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg-light);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.floating-contact__action:hover { background: var(--color-surface); color: var(--color-gold); }

.floating-contact__action.is-call {
  background: var(--color-gold);
  color: #000;
  border-color: transparent;
  font-weight: 700;
}

.floating-contact__action.is-tg {
  background: var(--color-gold-subtle);
  color: var(--color-gold);
  border-color: var(--color-border-gold);
}

.floating-contact__toggle {
  position: relative;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.floating-contact__toggle:hover {
  background: var(--color-gold-light);
  box-shadow: 0 8px 32px var(--color-gold-glow);
  transform: translateY(-2px);
}

.floating-contact__icon { font-size: 16px; }

.floating-contact__pulse {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid var(--color-gold);
  pointer-events: none;
  animation: pulse-gold 2.2s ease-out infinite;
}

.floating-contact.is-open .floating-contact__pulse { display: none; }

@keyframes pulse-gold {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.modal-open .floating-contact { opacity: 0; pointer-events: none; }

/* === 20. SCROLL REVEAL === */
.reveal-init {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-init.reveal-up { transform: translateY(40px); }
.reveal-init.reveal-down { transform: translateY(-40px); }
.reveal-init.reveal-left { transform: translateX(-50px); }
.reveal-init.reveal-right { transform: translateX(50px); }
.reveal-init.reveal-scale { transform: scale(0.85); }
.reveal-init.reveal-rotate { transform: perspective(800px) rotateY(8deg) translateY(30px); }

.reveal-init:not(.reveal-up):not(.reveal-down):not(.reveal-left):not(.reveal-right):not(.reveal-scale):not(.reveal-rotate) {
  transform: translateY(32px);
}

.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

/* === 20b. HERO ENTRANCE ANIMATIONS === */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-badge-in {
  0% { opacity: 0; transform: translateY(16px) scale(0.9); }
  100% { opacity: 1; transform: none; }
}

@keyframes hero-title-in {
  0% { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes hero-subtitle-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}

@keyframes hero-stats-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-section__badge {
  animation: hero-badge-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-section__title {
  animation: hero-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-section__subtitle {
  animation: hero-subtitle-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-section__actions {
  animation: hero-fade-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.hero-section__stats {
  animation: hero-fade-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
  transform-origin: left;
}

/* === 20c. GOLD GRADIENT TEXT SHIMMER === */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.section-head h2 {
  background: linear-gradient(
    90deg,
    var(--color-text) 0%,
    var(--color-text) 35%,
    var(--color-gold-light) 50%,
    var(--color-text) 65%,
    var(--color-text) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2.is-visible {
  animation: gold-shimmer 2.5s ease 0.3s 1 forwards;
}

/* === 20d. HERO PARTICLES === */
.hero-section__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  border-radius: 999px;
  background: var(--color-gold);
  opacity: 0;
  animation: particle-float var(--p-dur, 8s) ease-in-out var(--p-delay, 0s) infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  15% { opacity: var(--p-opacity, 0.3); transform: translateY(-30px) scale(1); }
  85% { opacity: var(--p-opacity, 0.3); transform: translateY(calc(var(--p-travel, -120px))) scale(1); }
  100% { opacity: 0; transform: translateY(calc(var(--p-travel, -120px) - 30px)) scale(0); }
}

/* === 20e. ENHANCED CARD HOVERS === */
.service-item,
.benefit-card,
.portfolio-card,
.process-step,
.pricing-card,
.for-whom-item {
  position: relative;
  overflow: hidden;
}

.service-item::after,
.benefit-card::after,
.portfolio-card::after,
.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--color-gold-glow),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-item:hover::after,
.benefit-card:hover::after,
.portfolio-card:hover::after,
.pricing-card:hover::after {
  opacity: 1;
}

.service-item > *,
.benefit-card > *,
.portfolio-card > *,
.pricing-card > * {
  position: relative;
  z-index: 1;
}

@keyframes border-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--color-gold-glow); }
  50% { box-shadow: 0 0 20px var(--color-gold-glow), 0 0 40px rgba(212, 168, 67, 0.1); }
}

.pricing-card--featured {
  animation: border-glow-pulse 3s ease-in-out infinite;
}

/* === 20f. PROCESS STEP CONNECTOR LINE === */
.process-steps { position: relative; }

/* === 20g. ANIMATED COUNTER === */
.hero-stat__number {
  display: inline-block;
}

/* === 20h. SMOOTH SECTION TRANSITIONS === */
.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-gold), transparent);
  opacity: 0.4;
}

.hero-section::before { display: none; }

/* === 20i. FLOATING ICON ANIMATION === */
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.service-item:hover .service-item__icon {
  animation: icon-float 1.5s ease-in-out infinite;
  border-color: var(--color-gold);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

/* === 20j. MODAL ENTER / EXIT === */
@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.modal:not([hidden]) .modal-backdrop {
  animation: modal-backdrop-in 0.3s ease both;
}

.modal:not([hidden]) .modal-dialog {
  animation: modal-dialog-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* === 20k. TYPED EFFECT === */
.typed-wrapper {
  display: inline;
}

.typed-text {
  color: var(--color-gold);
  border-right: none;
}

.typed-cursor {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 300;
  animation: typed-blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes typed-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === 20l. SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
  z-index: 110;
  pointer-events: none;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px var(--color-gold-glow);
}

/* === 20m. PROCESS CONNECTOR LINE === */
.process-steps {
  position: relative;
}

.process-line {
  position: absolute;
  top: 38px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
  border-radius: 999px;
  overflow: hidden;
}

.process-line__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 999px;
  transition: width 0.15s ease;
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.process-step {
  position: relative;
  z-index: 1;
}

/* === 20n. PORTFOLIO CARD HOVER REVEAL === */
.portfolio-card {
  cursor: pointer;
}

.portfolio-card__preview {
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s ease;
  overflow: hidden;
}

.portfolio-card__info {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card.is-hovered .portfolio-card__preview {
  height: 160px;
}

.portfolio-card.is-hovered .portfolio-card__preview span {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-gold-glow);
  background: var(--color-gold-subtle);
}

.portfolio-card__preview span {
  transition: all 0.3s ease;
}

.portfolio-card.is-hovered .portfolio-card__info {
  background: var(--color-bg-card-hover);
  padding: 28px 24px;
}

.portfolio-card.is-hovered .portfolio-card__info h3 {
  color: var(--color-gold);
}

/* === 20o. 3D TILT TRANSITION RESET === */
.service-item,
.benefit-card,
.pricing-card {
  transition: transform 0.15s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init, .reveal-init.is-visible,
  .hero-section__badge,
  .hero-section__title,
  .hero-section__subtitle,
  .hero-section__actions,
  .hero-section__stats,
  .section-head h2,
  .hero-particle,
  .pricing-card--featured,
  .typed-cursor,
  .process-line__fill {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .scroll-progress { display: none; }
}

/* === 21. RESPONSIVE === */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-menu-toggle { display: inline-flex; }

  .site-header .header-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 130;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: rgba(16, 16, 16, 0.96);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
  }

  .site-header.is-menu-open .header-nav { display: grid; gap: 4px; }

  .site-header .header-nav a {
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .services-cards { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { order: -1; }
  .portfolio-grid, .portfolio-grid--3 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-line { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero-section { padding: 100px 0 60px; }
  .hero-section__stats { flex-wrap: wrap; gap: 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }

  .hero-section__title { font-size: clamp(26px, 8vw, 34px); }
  .hero-section__actions { flex-direction: column; }
  .hero-section__actions .btn { width: 100%; }

  .process-steps { grid-template-columns: 1fr; }

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-logo { order: -1; }
  .footer-logo__svg { height: 40px; }
  .footer-links { justify-content: center; flex-wrap: wrap; }

  .floating-contact { right: 10px; bottom: 10px; }
  .floating-contact__toggle { min-height: 46px; padding: 8px 16px; font-size: 12px; }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}

.cursor-ring.is-hovering {
  width: 56px;
  height: 56px;
  border-color: var(--color-gold-light);
  background: var(--color-gold-subtle);
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== GRAIN / NOISE ===== */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 80px;
  line-height: 1;
  color: var(--color-gold-subtle);
  font-family: Georgia, serif;
  pointer-events: none;
}

.review-card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.review-card__stars {
  color: var(--color-gold);
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card__text {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #0a0f1a;
  flex-shrink: 0;
}

.review-card__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.review-card__role {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

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

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: var(--color-border-gold);
}

.faq-item__question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-item__question {
  color: var(--color-gold-light);
}

.faq-item__answer {
  padding: 0 24px 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* MAX в плавающей кнопке */
.floating-contact__action.is-max {
  background: linear-gradient(135deg, #0066ff, #00aaff);
}

@media (max-width: 900px) {
  .faq-item__question { font-size: 15px; padding: 16px 18px; }
  .faq-item__answer { padding: 0 18px 16px; }
}
