/* assets/css/main.css — КарикатураАРТ public styles */

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

:root {
  --orange: #FF6B35;
  --yellow: #FFD93D;
  --pink:   #FF6B9D;
  --purple: #C77DFF;
  --teal:   #06D6A0;
  --dark:   #1A1A2E;
  --dark2:  #16213E;
  --card:   #0F3460;
  --text:   #ffffff;
  --muted:  #9aa0b0;
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(26,26,46,0.96); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--orange);
  padding: .9rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Fredoka One', cursive; font-size: 1.7rem;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-links a { color: #ccc; text-decoration: none; font-weight: 600; transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.btn-nav { background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white !important; padding: .45rem 1.2rem; border-radius: 25px; font-weight: 700; }
.nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--text); }
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--dark2); flex-direction: column; padding: 1.5rem;
    border-bottom: 2px solid var(--orange); gap: 1rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white; border: none; padding: .9rem 2.2rem; border-radius: 30px;
  font-weight: 800; font-size: 1rem; cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: transform .25s, box-shadow .25s; text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,53,.5); }
.btn-primary.btn-large { padding: 1.1rem 3rem; font-size: 1.15rem; }
.btn-outline {
  display: inline-block; background: transparent;
  border: 2px solid var(--purple); color: var(--purple);
  padding: .9rem 2.2rem; border-radius: 30px; font-weight: 800;
  font-size: 1rem; cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: all .25s; text-decoration: none;
}
.btn-outline:hover { background: var(--purple); color: white; transform: translateY(-3px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 6rem 0 4rem; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 50%, rgba(199,125,255,.12) 0%, transparent 70%);
}
.hero-content { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .hero-content { grid-template-columns: 1fr; } }
.hero h1 { font-family: 'Fredoka One', cursive; font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.2; margin-bottom: 1rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--yellow), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-badges { display: flex; gap: .8rem; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: .35rem .9rem; border-radius: 20px; font-size: .85rem; color: #ccc; }
.hero-illustration { }
.hero-card {
  background: linear-gradient(135deg, var(--card), #1a3a6e);
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  padding: 2rem 2.5rem; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hc-emoji { font-size: 4rem; margin-bottom: .8rem; }
.hero-card p { color: var(--muted); font-size: .9rem; }
.hero-card strong { font-size: 1.1rem; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-family: 'Fredoka One', cursive; font-size: clamp(1.8rem,4vw,2.5rem); margin-bottom: .5rem; }
.section-title p { color: var(--muted); font-size: 1.05rem; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; }
.step-card {
  background: var(--card); border-radius: 16px; padding: 1.8rem 1.5rem;
  text-align: center; border: 1px solid rgba(255,255,255,.06);
  transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Fredoka One', cursive; font-size: 1.1rem; margin-bottom: 1rem;
}
.step-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.step-card h4 { font-weight: 800; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .9rem; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-section { background: rgba(15,52,96,.3); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.price-card {
  background: var(--card); border-radius: 20px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.06); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.price-card.featured { border-color: var(--orange); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.popular-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--orange); color: white; font-size: .72rem;
  font-weight: 800; padding: .3rem .7rem; border-radius: 20px;
}
.price-top { padding: 1.5rem; text-align: center; }
.price-top.teal   { background: linear-gradient(135deg, rgba(6,214,160,.25), rgba(0,180,216,.15)); }
.price-top.orange { background: linear-gradient(135deg, rgba(255,107,53,.25), rgba(255,217,61,.15)); }
.price-top.pink   { background: linear-gradient(135deg, rgba(255,107,157,.25), rgba(199,125,255,.15)); }
.price-top.purple { background: linear-gradient(135deg, rgba(199,125,255,.25), rgba(123,45,139,.15)); }
.price-emoji { font-size: 2.5rem; margin-bottom: .5rem; }
.price-top h3 { font-family: 'Fredoka One', cursive; font-size: 1.3rem; }
.price-body { padding: 1.5rem; }
.price-amount { font-size: 2.4rem; font-weight: 900; color: var(--yellow); margin-bottom: 1rem; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-features { list-style: none; margin-bottom: 1.5rem; }
.price-features li { padding: .35rem 0; font-size: .9rem; color: #ccc; border-bottom: 1px solid rgba(255,255,255,.05); }
.price-features li:last-child { border: none; }
.price-btn { display: block; text-align: center; padding: .8rem; border-radius: 12px; font-weight: 800; text-decoration: none; transition: .25s; font-size: .95rem; }
.teal-btn   { background: linear-gradient(135deg, var(--teal), #00b4d8); color: white; }
.orange-btn { background: linear-gradient(135deg, var(--orange), var(--yellow)); color: white; }
.pink-btn   { background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; }
.purple-btn { background: linear-gradient(135deg, var(--purple), #7b2d8b); color: white; }
.price-btn:hover { transform: scale(1.03); box-shadow: 0 5px 15px rgba(0,0,0,.3); }

/* ── Calculator ─────────────────────────────────────────── */
.calculator {
  background: var(--card); border-radius: 20px; padding: 2rem; max-width: 480px;
  margin: 0 auto; border: 1px solid rgba(255,255,255,.08);
}
.calculator h3 { font-family: 'Fredoka One', cursive; font-size: 1.5rem; text-align: center; margin-bottom: 1.5rem; color: var(--yellow); }
.calc-body {}
.calc-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.calc-row label { color: var(--muted); font-weight: 600; }
.calc-counter { display: flex; align-items: center; gap: .8rem; }
.cnt {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--orange);
  background: transparent; color: var(--orange); font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s; font-family: 'Nunito',sans-serif;
}
.cnt:hover { background: var(--orange); color: white; }
#cnt-num { font-size: 1.6rem; font-weight: 800; min-width: 32px; text-align: center; }
.calc-result {
  background: linear-gradient(135deg, rgba(255,107,53,.15), rgba(255,107,157,.1));
  border: 2px solid var(--orange); border-radius: 14px;
  padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
}
.calc-label { color: var(--muted); font-size: .9rem; }
.calc-price { font-size: 2rem; font-weight: 900; color: var(--yellow); }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; }
.gallery-item {
  border-radius: 14px; aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 3.5rem;
  cursor: pointer; transition: transform .25s; position: relative; overflow: hidden;
}
.gallery-item span {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7); font-size: .8rem; font-weight: 700;
  padding: .4rem; text-align: center; transform: translateY(100%); transition: .25s;
}
.gallery-item:hover { transform: scale(1.05); }
.gallery-item:hover span { transform: translateY(0); }
.g1 { background: linear-gradient(135deg,#1a1a3e,#0d47a1); }
.g2 { background: linear-gradient(135deg,#1a0a2e,#4a0072); }
.g3 { background: linear-gradient(135deg,#0a2a1a,#00695c); }
.g4 { background: linear-gradient(135deg,#2a0a0a,#b71c1c); }
.g5 { background: linear-gradient(135deg,#2a1a0a,#e65100); }
.g6 { background: linear-gradient(135deg,#0a0a2a,#1565c0); }

/* ── CTA strip ───────────────────────────────────────────── */
.cta-strip { background: linear-gradient(135deg,rgba(255,107,53,.15),rgba(199,125,255,.15)); padding: 4rem 0; }
.cta-strip h2 { font-family: 'Fredoka One', cursive; font-size: 2rem; margin-bottom: .8rem; }
.cta-strip p { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0d1117; padding: 3rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding-bottom: 2rem; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { font-size: 1.5rem; display: inline-block; margin-bottom: .5rem; }
.footer-brand p { color: #666; font-size: .9rem; }
.footer-links h4 { font-weight: 800; margin-bottom .8rem; color: var(--yellow); }
.footer-links a { display: block; color: #888; text-decoration: none; margin-bottom: .4rem; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-contact h4 { font-weight: 800; margin-bottom: .8rem; color: var(--yellow); }
.footer-contact p { color: #888; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 1.2rem 0; text-align: center; }
.footer-bottom p { color: #555; font-size: .85rem; }
.mini-footer { padding: 1.5rem 0; text-align: center; }
.mini-footer p { color: #555; font-size: .85rem; }
.mini-footer a { color: var(--muted); text-decoration: none; }

/* ── Page header ─────────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, var(--dark2), var(--card)); padding: 3rem 0; text-align: center; }
.page-header h1 { font-family: 'Fredoka One', cursive; font-size: 2.2rem; margin-bottom: .4rem; }
.page-header p { color: var(--muted); }

/* ── Order form ──────────────────────────────────────────── */
.order-container { padding: 3rem 1.5rem; }
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }
.form-section { background: var(--card); border-radius: 16px; padding: 1.8rem; margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,.07); }
.form-section h3 { font-family: 'Fredoka One', cursive; font-size: 1.3rem; margin-bottom: 1.2rem; color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: var(--muted); font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: .75rem 1rem; color: white;
  font-family: 'Nunito', sans-serif; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.2);
}
.form-group input.error { border-color: #f44336; }
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.field-hint { color: #777; font-size: .85rem; margin-bottom: .8rem; }

/* Upload zone */
.upload-zone {
  border: 2px dashed rgba(255,255,255,.2); border-radius: 12px;
  padding: 2rem; text-align: center; cursor: pointer; transition: border-color .2s;
  position: relative;
}
.upload-zone.drag-over { border-color: var(--orange); background: rgba(255,107,53,.05); }
.upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.upload-hint { color: #666; font-size: .8rem; margin-top: .3rem; }
.upload-preview img { max-width: 100%; max-height: 200px; border-radius: 8px; object-fit: cover; }
.upload-preview button { background: rgba(255,107,53,.2); border: 1px solid var(--orange); color: var(--orange); padding: .3rem .8rem; border-radius: 8px; cursor: pointer; margin-top: .5rem; font-family: 'Nunito',sans-serif; }

/* Order summary */
.order-summary {}
.summary-card { background: var(--card); border-radius: 16px; padding: 1.8rem; position: sticky; top: 80px; border: 1px solid rgba(255,255,255,.07); }
.summary-card h3 { font-family: 'Fredoka One', cursive; font-size: 1.3rem; margin-bottom: 1.2rem; color: var(--orange); }
.summary-line { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; color: #ccc; border-bottom: 1px solid rgba(255,255,255,.06); }
.summary-line:last-of-type { border: none; }
.summary-divider { height: 1px; background: rgba(255,255,255,.1); margin: .8rem 0; }
.summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.summary-total strong { font-size: 1.5rem; color: var(--yellow); }
.payment-section { margin: 1.5rem 0; }
.payment-section h4 { font-weight: 700; margin-bottom: .8rem; font-size: .95rem; }
.pay-option {
  display: flex; align-items: center; gap: .8rem; padding: .9rem; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.1); margin-bottom: .6rem; cursor: pointer; transition: .2s;
}
.pay-option.selected { border-color: var(--orange); background: rgba(255,107,53,.08); }
.pay-option input[type=radio] { display: none; }
.pay-icon { font-size: 1.5rem; }
.pay-text strong { display: block; font-size: .9rem; }
.pay-text small { color: #777; font-size: .78rem; }
.pay-lock { margin-left: auto; }
.submit-order-btn {
  width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--orange), var(--pink));
  border: none; border-radius: 14px; color: white; font-weight: 800; font-size: 1.05rem;
  cursor: pointer; font-family: 'Nunito',sans-serif; transition: .25s; margin-top: 1rem;
}
.submit-order-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,53,.4); }
.submit-order-btn:disabled { opacity: .7; cursor: not-allowed; }
.security-badges { display: flex; justify-content: center; gap: 1rem; margin-top: .8rem; font-size: .75rem; color: #666; }

/* Alert */
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600; }
.alert-error { background: rgba(244,67,54,.15); border: 1px solid rgba(244,67,54,.4); color: #f44336; }
.alert-success { background: rgba(6,214,160,.15); border: 1px solid rgba(6,214,160,.4); color: var(--teal); }
