/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --bg-dark: #1a202c;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --accent: #2c5282;
  --accent-hover: #2a4a7f;
  --accent-light: #ebf4ff;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --sidebar-width: 380px;
  /* Aliases so old var() refs still work */
  --dark: #1a202c;
  --dark2: #243057;
  --orange: #2c5282;
  --orange-h: #2a4a7f;
  --green: #2c5282;
  --light: #f5f5f5;
  --muted: #4a5568;
  --white: #ffffff;
  --r: 8px;
  --r-sm: 6px;
  --text: #1a202c;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif; background: var(--bg-page); color: var(--text-primary); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== PAGE LAYOUT ===== */
.page-wrapper { display: flex; min-height: 100vh; }
.page-wrapper > .content { flex: 1; min-width: 0; overflow: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header { background: var(--bg-dark); padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo__icon svg { width: 22px; height: 22px; fill: #fff; }
.logo__text { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; }
.logo__sub { color: rgba(255,255,255,.45); font-size: 11px; font-weight: 400; }
.header__phone { color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: #90cdf4; text-decoration: none; }
.header__cta { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s; white-space: nowrap; }
.header__cta:hover { background: var(--accent-hover); }
@media(max-width:600px) { .header__phone { display: none; } }

/* ===== BUTTONS ===== */
.btn-primary { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 14px 28px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s, transform .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); border-radius: 6px; padding: 14px 28px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none; transition: border-color .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: rgba(255,255,255,.65); text-decoration: none; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #0a1628 0%, #1a202c 50%, #0f1a2e 100%); padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0' stroke='rgba(255,255,255,.025)' stroke-width='1'/%3E%3C/svg%3E"); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
@media(max-width:860px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(44,82,130,.2); border: 1px solid rgba(44,82,130,.5); border-radius: 20px; padding: 5px 14px; color: #90cdf4; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero__title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero__title span { color: #90cdf4; }
.hero__sub { color: rgba(255,255,255,.75); font-size: 17px; margin-bottom: 24px; max-width: 520px; }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 32px; }
.season { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 10px 8px; text-align: center; }
.season__icon { font-size: 20px; margin-bottom: 4px; }
.season__name { color: #fff; font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.season__desc { color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.3; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero__stat { color: rgba(255,255,255,.65); font-size: 13px; }
.hero__stat strong { color: #fff; font-size: 22px; font-weight: 800; display: block; }
.hero__visual { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; display: flex; flex-direction: column; }
.hero__img-placeholder { flex: 1; background: linear-gradient(180deg, #0f1a2e 0%, #1a202c 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: rgba(255,255,255,.25); font-size: 13px; text-align: center; padding: 20px; }
.hero__img-caption { padding: 12px 16px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.6); font-size: 12px; }
@media(max-width:860px) { .hero__visual { display: none; } }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--accent); padding: 18px 0; }
.stats-bar__inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; text-align: center; }
.stats-bar__item { color: #fff; }
.stats-bar__num { font-size: 28px; font-weight: 800; line-height: 1; }
.stats-bar__label { font-size: 13px; opacity: .85; margin-top: 2px; }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section--light { background: var(--bg-page); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__label { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-radius: 20px; padding: 4px 14px; margin-bottom: 12px; }
.section__title { font-size: clamp(22px, 3vw, 36px); font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.section__sub { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ===== COMBO SPOTLIGHT (dark section) ===== */
.combo { background: var(--bg-dark); padding: 72px 0; }
.combo__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media(max-width:860px) { .combo__inner { grid-template-columns: 1fr; } }
.combo__label { color: #90cdf4; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.combo__title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.combo__sub { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
.combo__seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.combo__season { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 14px; }
.combo__season-head { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.combo__season-text { color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.4; }
.combo__visual { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: rgba(255,255,255,.2); font-size: 13px; text-align: center; padding: 24px; }
.combo__visual svg { opacity: .25; }

/* ===== PRODUCTS API GRID ===== */
.products-api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media(max-width:860px) { .products-api-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:540px) { .products-api-grid { grid-template-columns: 1fr; } }
.products-loading { grid-column: 1/-1; text-align: center; color: var(--text-secondary); padding: 40px; font-size: 15px; }
.api-product-card { border-radius: 8px; border: 2px solid var(--border); overflow: hidden; background: var(--bg-card); transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.api-product-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(44,82,130,.12); transform: translateY(-3px); }
.api-product-card--featured { border-color: var(--accent); }
.api-product-card__img { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg, #0a1628, #1a202c); display: flex; align-items: flex-end; padding: 12px; }
.api-product-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.api-product-card__badge { position: relative; z-index: 1; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 10px; }
.api-product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.api-product-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.api-product-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.api-product-card__price { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.api-product-card__price strong { color: var(--accent); font-size: 16px; font-weight: 800; }
.api-product-card__btn { width: 100%; background: var(--bg-dark); color: #fff; border: none; border-radius: 6px; padding: 11px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s; margin-top: auto; }
.api-product-card--featured .api-product-card__btn { background: var(--accent); }
.api-product-card__btn:hover { opacity: .9; }

/* ===== WHY CARDS ===== */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media(max-width:640px) { .why__grid { grid-template-columns: 1fr; } }
.why-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 8px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.why-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.why-card__icon { width: 44px; height: 44px; background: var(--accent-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; }
.why-card__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.why-card__text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== CASES GRID ===== */
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width:860px) { .cases__grid { grid-template-columns: 1fr; } }
.case-card { border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); box-shadow: var(--shadow); transition: transform .2s; }
.case-card:hover { transform: translateY(-4px); }
.case-card__img { height: 180px; display: flex; align-items: flex-end; padding: 12px; position: relative; }
.case-card__img--1 { background: linear-gradient(180deg, #0a1628, #071020); }
.case-card__img--2 { background: linear-gradient(180deg, #0f1a2e, #0a1220); }
.case-card__img--3 { background: linear-gradient(180deg, #1a202c, #0d1525); }
.case-card__tag { background: rgba(0,0,0,.5); color: #fff; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 10px; backdrop-filter: blur(4px); }
.case-card__body { padding: 18px; background: var(--bg-card); }
.case-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.case-card__stats { display: flex; gap: 16px; margin-bottom: 10px; }
.case-card__stat { font-size: 12px; color: var(--text-secondary); }
.case-card__stat strong { color: var(--accent); font-size: 14px; display: block; font-weight: 700; }
.case-card__quote { font-size: 13px; color: var(--text-secondary); font-style: italic; border-left: 3px solid var(--accent-light); padding-left: 12px; line-height: 1.5; }

/* ===== STEPS (HOW WE WORK) ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) { .steps-grid { grid-template-columns: 1fr; } }
.step { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 8px; padding: 24px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.step:hover { transform: translateY(-2px); }
.step__num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step__icon { font-size: 28px; margin-bottom: 10px; }
.step__title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.step__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.step__time { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 700; border-radius: 20px; padding: 3px 12px; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-primary); text-align: left; transition: background .15s; }
.faq-btn:hover { background: var(--accent-light); }
.faq-arrow { font-size: 18px; color: var(--accent); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding: 0 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-body { max-height: 200px; padding: 0 20px 18px; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, #0a1628 0%, #1a202c 50%, #0f1a2e 100%); padding: 72px 0; text-align: center; }
.cta-section__title { font-size: clamp(24px, 3vw, 40px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section__sub { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-section__note { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 16px; }
.cta-section__note a { color: #90cdf4; text-decoration: none; }

/* ===== FOOTER ===== */
.footer { background: #0d1525; padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.5); font-size: 13px; }
.footer__link { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer__link:hover { color: #fff; text-decoration: none; }
.footer__links { display: flex; gap: 20px; }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .page-wrapper { flex-direction: column; }
}
@media(max-width:640px) {
  .section { padding: 48px 0; }
  .combo { padding: 48px 0; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
}

/* Chat badge */
.chat-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badge-pulse 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
