/* =========================================================
   KokteylManzil 2025 — asosiy uslublar
   Qo'lda yozilgan, qatlamlarga bo'lingan strukturali stil
========================================================= */

:root {
  --bg-base: #f7f9fc;
  --bg-glass: rgba(255, 255, 255, 0.14);
  --bg-panel: rgba(255, 255, 255, 0.08);
  --text-primary: #16243d;
  --text-muted: rgba(22, 36, 61, 0.64);
  --accent-pink: #ff5c8a;
  --accent-yellow: #ffd166;
  --accent-mint: #06d6a0;
  --accent-blue: #118ab2;
  --shadow-soft: 0 24px 40px rgba(17, 138, 178, 0.18);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0 0 1rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.lead,
.section-lead {
  color: var(--text-muted);
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  border: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-blue));
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(6, 214, 160, 0.32);
}

.ghost-btn {
  background: rgba(17, 138, 178, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(17, 138, 178, 0.24);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  background: rgba(17, 138, 178, 0.18);
  border-color: rgba(17, 138, 178, 0.36);
}

.primary-btn.small,
.ghost-btn.small {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

/* HEADER ================================================= */

.site-header {
  position: relative;
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.6rem, 5vw, 3.6rem) clamp(3rem, 6vw, 4.6rem);
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: clamp(1.4rem, 3.6vw, 2.8rem) clamp(1rem, 3vw, 2.8rem) clamp(0.4rem, 2vw, 1.6rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 92, 138, 0.22), rgba(6, 214, 160, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(20px);
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo:hover,
.logo:focus-visible {
  opacity: 0.85;
}

.tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.desktop-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.25s ease, background 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.28);
}

.desktop-nav a.active {
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.82), rgba(255, 209, 102, 0.82));
  border-color: transparent;
}

.year-badge {
  background: rgba(17, 138, 178, 0.2);
  color: #fff;
  border-radius: 14px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.burger {
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.header-ornament {
  position: absolute;
  top: -50px;
  right: clamp(2rem, 12vw, 8rem);
  width: clamp(9rem, 15vw, 14rem);
  aspect-ratio: 1;
  background: url("../images/header-ornament.svg") no-repeat center/contain;
  opacity: 0.34;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* HERO =================================================== */

main {
  padding: 0 clamp(1.5rem, 5vw, 3.5rem) 5rem;
  flex: 1 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(34rem, 56vw, 60rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 36, 58, 0.35) 0%, rgba(15, 36, 58, 0.68) 100%),
    url("../images/hero.png") center/cover no-repeat;
  border-radius: 0;
  overflow: hidden;
}

.hero {
  width: calc(100% + (clamp(1.5rem, 5vw, 3.5rem) * 2));
  margin-left: calc(clamp(1.5rem, 5vw, 3.5rem) * -1);
  margin-right: calc(clamp(1.5rem, 5vw, 3.5rem) * -1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 92, 138, 0.28), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(17, 138, 178, 0.24), transparent 60%);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.12;
}

.hero-content .lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.hero-actions .primary-btn + .primary-btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-mint));
}

/* MINI O'YIN ============================================ */

.mini-oyin {
  margin-top: 5rem;
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-lg);
}

.section-heading {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.mini-oyin-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-oyin-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 24px 40px rgba(15, 74, 94, 0.08);
  border: 1px solid rgba(17, 138, 178, 0.18);
}

.kombinator-form {
  display: grid;
  gap: 1.5rem;
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.flavor-grid label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(17, 138, 178, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.flavor-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-pink);
}

.response-block {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.response-block .primary-btn,
.response-block .ghost-btn {
  width: 100%;
  max-width: 220px;
}

.kombinator-output {
  min-height: 3.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(17, 138, 178, 0.08);
  color: var(--text-primary);
}

/* KOKTEYL ASOSLARI ====================================== */

.kokteyl-asoslari {
  margin-top: 6rem;
}

.asoslar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3rem);
}

.asoslar-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3rem);
  box-shadow: 0 24px 40px rgba(43, 73, 121, 0.12);
  border: 1px solid rgba(17, 138, 178, 0.16);
}

.asoslar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.asoslar-list h3 {
  font-size: 1.25rem;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

/* ACCORDION ============================================= */

.accordion-section {
  margin-top: 6rem;
}

.accordion {
  display: grid;
  gap: 0.8rem;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 138, 178, 0.16);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] {
  border-color: rgba(255, 92, 138, 0.45);
  background: rgba(255, 92, 138, 0.08);
}

.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  border-left: 4px solid rgba(17, 138, 178, 0.45);
  padding: 0 1.2rem;
}

.accordion-panel.open {
  padding: 1rem 1.2rem 1.3rem;
}

/* BONUS ================================================== */

.bonus-blok {
  margin: 6rem 0 4rem;
  background: linear-gradient(90deg, rgba(255, 92, 138, 0.85), rgba(255, 209, 102, 0.75));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.bonus-blok::after {
  content: '';
  position: absolute;
  inset: 15% 5% -40% 30%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 214, 160, 0.35), transparent 70%);
  filter: blur(18px);
}

.bonus-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.bonus-text {
  max-width: 36rem;
}

.bonus-text .primary-btn {
  margin-top: 1.4rem;
}

/* FOOTER ================================================= */

.site-footer {
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 4rem;
  background: rgba(10, 26, 48, 0.92);
  color: rgba(255, 255, 255, 0.88);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand .logo {
  color: #fff;
}

.footer-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* MODALS ================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.64);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: min(480px, 92vw);
  box-shadow: 0 24px 45px rgba(5, 19, 32, 0.26);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* COOKIE BANNER ========================================= */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 28px rgba(16, 56, 82, 0.16);
  padding: 1.4rem 1.8rem;
  max-width: 320px;
  z-index: 900;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-content {
  display: grid;
  gap: 0.8rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ANIMATIONS ============================================ */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade-delay {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards 0.24s;
}

.animate-slide {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE BREAKPOINTS ================================ */

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
  }

  .mini-oyin-body {
    grid-template-columns: 1fr;
  }

  .asoslar-grid {
    grid-template-columns: 1fr;
  }

  .bonus-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-bottom: 2.5rem;
    overflow: visible;
  }

  .site-header::after {
    inset: 1rem 0.8rem 0;
    border-radius: 24px;
  }

  .header-ornament {
    display: none;
  }

  main {
    padding: 0 1.2rem 4rem;
  }

  .mini-oyin {
    padding: 3rem 1.2rem;
  }

  .flavor-grid {
    grid-template-columns: 1fr;
  }

  .bonus-blok {
    padding: 2.4rem;
  }

  .cookie-banner {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    max-width: none;
  }

  .hero {
    min-height: clamp(26rem, 90vw, 34rem);
    padding: clamp(3rem, 12vw, 4.5rem) 1.2rem;
    background-position: center top, center;
    background-size: cover, contain;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .year-badge {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

