/*
  Aladar Site Enhanced Stylesheet
  Description: A modern, vibrant and highly sell-focused look for the lenticular printing website.
  Uses dark base with neon-like accents, oversized typography, gradient borders and subtle animations.
  The design is mobile-first and scales gracefully across devices.
*/

/* Root colour variables */
:root {
  --bg: #0a0f23;             /* Main page background */
  --surface: #11182e;         /* Card and section surfaces */
  --muted: #8c9aba;           /* Muted text colour */
  --text: #eaf1ff;            /* Primary text colour */
  --accent: #ff3976;          /* Primary accent (pink/coral) */
  --accent2: #38bdf8;         /* Secondary accent (turquoise) */
  --border: rgba(255,255,255,0.08); /* Subtle borders */
  --radius: 16px;             /* Global border radius */
  --max-width: 1180px;        /* Container max width */
  --transition: 0.3s ease;    /* Default transition */
}

/* Global base styles */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
}
a {
  color: var(--accent2);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent);
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 5vw, 64px);
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 24px;
}
h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

/* Reusable layout utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 64px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Gradient accent helper */
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 35, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.brand span {
  color: var(--accent);
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--accent);
}
.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--bg);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Mobile menu (simple toggle for demonstration) */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    background: rgba(10, 15, 35, 0.95);
    position: absolute;
    right: 20px;
    top: 60px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 24px;
  }
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  transform: translate(-50%, -50%);
  z-index: -1;
}
.hero::before {
  top: -80px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at top, var(--accent), transparent 70%);
}
.hero::after {
  bottom: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at bottom, var(--accent2), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.hero h1 {
  margin-bottom: 16px;
}
.hero .subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
}
.hero .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.btn,
.cta-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}
.cta-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--bg);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--accent);
}
.demo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* Pills for small hints */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  backdrop-filter: blur(8px);
  background: rgba(17,24,46,0.4);
}

/* Section headings with gradient underline */
.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

/* Card component */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.card .badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
  border-radius: 6px;
  margin-left: 6px;
}
.card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.card th, .card td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.card th {
  color: var(--accent);
  font-weight: 700;
}
.card tr:last-child td {
  border-bottom: none;
}
.note {
  color: var(--muted);
  font-size: 12px;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.step {
  padding: 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.callout {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Segments styles */
.seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.seg .card ul {
  padding-left: 20px;
  margin: 0;
  list-style-type: disc;
  color: var(--muted);
}
.seg .card ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* Facts list */
.facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 24px;
}
.fact {
  text-align: center;
}
.fact .value {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fact .label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.calc-grid .card {
  padding: 20px;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: #121a34;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.out {
  background: #121a34;
  border: 1px dashed var(--accent2);
  padding: 20px;
  border-radius: var(--radius);
  font-size: 14px;
}
.out div {
  margin-bottom: 8px;
}

/* Delivery & Payment */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-grid .card {
  padding: 24px;
}

/* Sticky actions on mobile */
.sticky-actions {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 999;
}
.sticky-actions a {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.sticky-actions .cta {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--bg);
}
.sticky-actions .btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Footer */
footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  background: #0a0f23;
}
footer .row {
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Media Queries */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .hero .buttons {
    justify-content: center;
  }
}

/* Hero features row */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 900px) {
  .hero-features { grid-template-columns: 1fr; }
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.facts-grid .fact-card {
  display: block;
  text-decoration: none;
}
.facts-grid .fact-card h3 {
  color: var(--text);
  font-size: 16px;
}
.facts-grid .fact-card:hover h3 {
  color: var(--accent);
}


@media (max-width: 520px) {
  .brand { padding-left: 10px; }
}
#how .steps .step-wide { grid-column: 1 / -1; }
.section { padding: 84px 0; }
.card, .step, .feature-card, { transition: transform var(--transition), box-shadow var(--transition); }
.card:active, .step:active, .feature-card:active, .media:active { transform: translateY(2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
#calc .cta { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: var(--bg); border: none; font-weight: 800; padding: 12px 18px; border-radius: var(--radius); }
#calc .cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.45); }
/* --- Header brand safe left padding on all widths --- */
header .container.nav { padding-left: 16px !important; padding-right: 16px !important; }
.brand { padding-left: 8px; }

/* --- Universal hover highlight (like in “Где работает лучше всего”) --- */
.card, .step, .feature-card, .fact-card, .pill {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.card:hover, .step:hover, .feature-card:hover, .fact-card:hover, .pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

/* --- Larger spacing between sections and headings --- */
main > section { padding: 110px 0; }
main > section h2 { margin: 0 0 28px; }

/* --- Catalog headings stronger & badges larger --- */
#catalog h3 { font-size: 24px; font-weight: 900; letter-spacing: .2px; }
#catalog .badge { font-size: 13px; padding: 5px 9px; }

/* --- Sticky actions order is handled in HTML; keep sizing uniform --- */
.sticky-actions a { min-width: 120px; }

/* --- Multi-layer pleasant gradient background (clearly non-flat) + soft hero glow --- */
.hero h1 { text-shadow: 0 12px 40px rgba(59,130,246,0.4); }


/* --- Safeguard header brand offset --- */
header .container.nav { padding-left: 18px !important; padding-right: 18px !important; }
.brand { padding-left: 10px; }

/* --- Universal hover highlight for ALL tiles --- */
.card, .step, .feature-card, .fact-card, .pill {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.card:hover, .step:hover, .feature-card:hover, .fact-card:hover, .pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

/* --- Breathing space between sections and headings --- */
main > section { padding: 110px 0; }
main > section h2 { margin: 0 0 28px; }

/* --- Catalog headings stronger --- */
#catalog h3 { font-size: 24px; font-weight: 900; letter-spacing: .2px; }
#catalog .badge { font-size: 13px; padding: 5px 9px; }

/* --- How: 4 columns on desktop; 5th tile spans all columns --- */
@media (min-width: 1024px) {
  #how .steps { grid-template-columns: repeat(4, 1fr) !important; }
}
#how .steps .step-wide { grid-column: 1 / -1; }

/* --- Composite gradient background (multi-radial + linear) and hero glow --- */
.hero h1 { text-shadow: 0 12px 40px rgba(59,130,246,0.4); }


body {
  background:
    /* top-right cool blue glow */
    radial-gradient(900px 520px at 85% -10%, rgba(59,130,246,0.30), rgba(59,130,246,0.06) 60%, transparent 75%),
    /* bottom-left cyan glow */
    radial-gradient(1000px 560px at -10% 110%, rgba(56,189,248,0.28), rgba(56,189,248,0.05) 60%, transparent 75%),
    /* mid-left magenta tint */
    radial-gradient(700px 420px at -10% 20%, rgba(236,72,153,0.10), transparent 60%),
    /* mid-right purple tint */
    radial-gradient(680px 380px at 110% 40%, rgba(168,85,247,0.10), transparent 60%),
    /* top-center subtle warm */
    radial-gradient(800px 300px at 50% -20%, rgba(250,204,21,0.06), transparent 70%),
    /* linear base */
    linear-gradient(180deg, #0b122e 0%, #0a0f23 55%, #0b122e 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
}
/* softer "PowerPoint-glow" on hero title */
.hero h1 {
  text-shadow: 0 14px 44px rgba(59,130,246,0.45);
}
.media img,
.media video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media img {
  border-radius: 16px;
  transition: transform .25s ease;
}

.hero .media img {
  max-width: 80%;
  transform-origin: center;
}


/* Гамбургер-кнопка */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* Скрываем обычное меню на мобильных */
    .nav .row {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        z-index: 999;
    }
    
    .nav .row.active {
        display: flex;
    }
    
    .nav .row a {
        padding: 12px 16px;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        text-align: center;
        font-size: 16px;
    }
    
    .nav .row a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Уменьшаем высоту шапки на мобильных */
    .nav {
        padding: 12px 0 !important;
    }
}
.media:hover,
.media img:hover {
  transform: none !important;
  box-shadow: none !important;
}
/* Скрываем WhatsApp на мобильных устройствах */
@media (max-width: 768px) {
  .sticky-actions .wa-btn {
    display: none;
  }
  
  /* Опционально: регулируем отступы между оставшимися кнопками */
  .sticky-actions {
    gap: 8px;
  }
  
  .sticky-actions a {
    min-width: 140px; /* Чуть увеличим кнопки для лучшего нажатия */
  }
}
