@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Montserrat:wght@400;600;800&display=swap');

:root {
  --orange: #ff7a00;
  --orange-light: #ffa858;
  --orange-pale: #fff3e7;
  --orange-gradient: linear-gradient(80deg, var(--orange-pale) 0%, var(--orange-light) 6%, var(--orange) 34%, var(--orange) 91%, var(--orange-light) 100%);
  --panel-bg: #f5f5f5;
  --panel-shadow-out: -15px 15px 30px rgba(196,196,196,.2), 15px -15px 30px rgba(196,196,196,.2), -15px -15px 30px rgba(255,255,255,.9), 15px 15px 38px rgba(196,196,196,.9);
  --panel-shadow-in: inset -10px 10px 20px rgba(208,208,208,.2), inset 10px -10px 20px rgba(208,208,208,.2), inset -10px -10px 20px rgba(255,255,255,.9), inset 10px 10px 25px rgba(208,208,208,.9);
  --chip-shadow: -3.75px 3.75px 7.5px rgba(230,230,230,.2), 3.75px -3.75px 7.5px rgba(230,230,230,.2), -3.75px -3.75px 7.5px rgba(255,255,255,.9), 3.75px 3.75px 9.75px rgba(230,230,230,.9);
  --input-shadow: inset -5px 5px 10px rgba(230,230,230,.2), inset 5px -5px 10px rgba(230,230,230,.2), inset -5px -5px 10px rgba(255,255,255,.9), inset 5px 5px 13px rgba(230,230,230,.9);
  --text-black: #1c1c1c;
  --text-muted: rgba(0,0,0,.45);
  --heading-font: 'Fredoka', sans-serif;
  --body-font: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-black);
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--heading-font); margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Hero ---------- */
.hero { padding: 24px 0 90px; }
.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--orange-gradient);
  border-radius: 60px;
  padding: 14px 40px 14px 14px;
  box-shadow: 0 20px 45px -20px rgba(255,122,0,.55);
  flex-wrap: wrap;
}
.hero__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 22px;
  padding: 10px 18px 10px 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.hero__logo img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.hero__logo span { font-family: var(--heading-font); font-weight: 600; font-size: 15px; }
.hero__bar h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  text-align: right;
  flex: 1;
}
.hero__main { display: flex; align-items: center; gap: 40px; margin-top: 70px; flex-wrap: wrap; }
.hero__copy { flex: 1 1 480px; min-width: 280px; }
.hero__copy h1 {
  color: var(--orange);
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero__copy p.lead { font-size: clamp(16px, 1.7vw, 20px); margin: 0 0 34px; line-height: 1.5; max-width: 520px; }
.hero__stats { display: flex; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.stat {
  background: #fff;
  border-radius: 32px;
  padding: 18px 28px;
  box-shadow: 2px 2px 6px rgba(255,255,255,.6), -2px -2px 8px rgba(230,230,230,.6);
  text-align: center;
  min-width: 190px;
}
.stat strong { display: block; color: var(--orange); font-family: var(--heading-font); font-size: 28px; }
.stat span { font-size: 13px; opacity: .7; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-gradient);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 46px;
  padding: 22px 48px;
  box-shadow: 0 18px 30px -14px rgba(255,122,0,.65);
  transition: transform .15s ease;
}
.cta-btn:hover { transform: translateY(-2px); }
.hero__box { flex: 1 1 320px; min-width: 260px; display: flex; justify-content: center; }
.hero__box img { width: min(420px, 90%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.15)); }

/* ---------- Section shell ---------- */
.section { padding: 60px 0; }
.section__header {
  background: var(--orange-gradient);
  border-radius: 60px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px -22px rgba(255,122,0,.5);
}
.section__header h2 { color: #fff; font-size: clamp(26px, 4vw, 48px); font-weight: 600; }

/* ---------- Constructor widget ---------- */
.constructor {
  background: linear-gradient(147deg, #eaeaea 0%, #ffffff 100%);
  border-radius: 60px;
  box-shadow: var(--panel-shadow-out);
  padding: clamp(28px, 5vw, 64px);
}
.constructor__title { text-align: center; margin-bottom: 6px; }
.constructor__title h2 { color: var(--orange); font-size: clamp(26px, 4.5vw, 50px); font-weight: 600; }
.constructor__title p { text-align: center; opacity: .35; margin: 6px 0 32px; font-size: clamp(14px, 1.6vw, 18px); }

.panel {
  position: relative;
  background: var(--panel-bg);
  border-radius: 44px;
  box-shadow: var(--panel-shadow-in);
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 60px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.panel__back {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--chip-shadow);
  color: var(--orange);
  font-size: 22px;
}
.panel__back:hover { transform: translateX(-2px); }
.panel__eyebrow { opacity: .35; font-size: clamp(14px, 1.6vw, 18px); text-align: center; }
.panel__title { color: var(--orange); font-family: var(--heading-font); font-weight: 600; font-size: clamp(22px, 3.4vw, 38px); text-align: center; line-height: 1.25; max-width: 780px; }
.panel__back + .panel__eyebrow,
.panel__back + .panel__title { margin-top: 44px; }

.choice-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; width: 100%; }
.pill-btn {
  background: var(--orange-gradient);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  border-radius: 40px;
  padding: 26px 30px;
  min-width: 260px;
  text-align: center;
  box-shadow: 0 14px 26px -14px rgba(255,122,0,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill-btn:hover, .pill-btn.is-active { transform: translateY(-3px); box-shadow: 0 18px 32px -12px rgba(255,122,0,.75); }

.chip-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 760px; }
.chip {
  background: var(--orange-gradient);
  opacity: .55;
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 18px);
  border-radius: 30px;
  padding: 14px 24px;
  transition: opacity .15s ease, transform .15s ease;
}
.chip:hover, .chip.is-active { opacity: 1; transform: translateY(-2px); }
.chip-wide {
  width: 100%;
  max-width: 760px;
  text-align: center;
  background: var(--orange-gradient);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  border-radius: 40px;
  padding: 18px 24px;
}
.chip-wide:hover { transform: translateY(-2px); }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 20px; width: 100%; max-width: 620px; }
.game-card {
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--chip-shadow);
  padding: 16px;
  text-align: center;
  border: 4px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.game-card img { width: 100%; height: 110px; object-fit: contain; margin-bottom: 10px; }
.game-card span { font-family: var(--heading-font); font-weight: 600; color: var(--orange); font-size: 16px; }
.game-card:hover, .game-card.is-active { border-color: var(--orange-light); transform: translateY(-2px); }

.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 900px; }
@media (max-width: 720px) { .brand-grid { grid-template-columns: 1fr; } }
.field-card { background: #fff; border-radius: 30px; box-shadow: var(--chip-shadow); padding: 20px 24px; }
.field-card h3 { color: var(--orange); font-family: var(--heading-font); font-size: 18px; margin-bottom: 12px; }
.field-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--input-shadow);
  padding: 12px 18px;
  margin-bottom: 10px;
  font-size: 14px;
  transition: box-shadow .15s ease;
}
.field-option.is-active { box-shadow: 0 0 0 2px var(--orange) inset; color: var(--orange); font-weight: 600; }
.field-option input[type="text"] { border: none; outline: none; background: transparent; width: 100%; font-family: inherit; font-size: 14px; }
.field-option input[type="file"] { display: none; }
.color-row { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.color-dot { width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--chip-shadow); border: 3px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.color-dot:hover, .color-dot.is-active { transform: scale(1.12); border-color: #333; }

.result-grid { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; }
.result-table { background: #fff; border-radius: 30px; box-shadow: var(--chip-shadow); padding: 20px 26px; min-width: 280px; }
.result-table table { border-collapse: collapse; width: 100%; }
.result-table th { font-weight: 400; opacity: .6; font-size: 14px; padding-bottom: 10px; text-align: left; }
.result-table td { padding: 8px 14px 8px 0; font-family: var(--heading-font); font-weight: 600; font-size: 15px; }
.result-table tr.is-active td { color: var(--orange); }
.result-box { text-align: center; }
.result-box .box-wrap { position: relative; width: 220px; margin: 0 auto 18px; }
.result-box .box-wrap img { width: 100%; }
.result-box .box-label {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  font-family: var(--heading-font); font-weight: 600; color: var(--orange);
  font-size: 13px; text-align: center; line-height: 1.3; width: 70%;
}
.result-box .box-label b { display: block; font-size: 15px; border: 2px solid var(--orange); border-radius: 50%; width: 60px; height: 60px; line-height: 56px; margin: 6px auto 0; }
.result-box .box-wrap--loading { display: flex; align-items: center; justify-content: center; }
.result-box .box-spinner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--heading-font); font-weight: 600; color: var(--orange);
  font-size: 13px; text-align: center; line-height: 1.5; width: 80%;
}
.result-box .box-spinner small { font-weight: 400; opacity: .6; }

.scratch-note {
  max-width: 340px;
  font-size: 13px;
  color: var(--orange);
  font-family: var(--heading-font);
  font-weight: 600;
  text-align: center;
}
.compare-btn {
  background: var(--orange-gradient);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  border-radius: 30px;
  padding: 18px 30px;
  text-align: center;
  box-shadow: 0 14px 26px -14px rgba(255,122,0,.6);
}

/* ---------- Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: #fff;
  border-radius: 44px;
  box-shadow: var(--panel-shadow-out);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 26px; }
.case-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.case-card p b { color: var(--orange); font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff;
  border-radius: 40px;
  box-shadow: var(--panel-shadow-out);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.team-card .photo {
  flex: 0 0 110px;
  height: 110px;
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow-in);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 15px;
}
.team-card .info strong { display: block; color: var(--orange); font-family: var(--heading-font); font-size: 20px; }
.team-card .info span { font-size: 13px; opacity: .65; }

/* ---------- Contact ---------- */
.contact-messengers { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.messenger {
  width: 140px; height: 140px;
  border-radius: 40px;
  background: #fff;
  box-shadow: var(--panel-shadow-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}
.contact-phone {
  max-width: 620px;
  margin: 0 auto 30px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow-in);
  border-radius: 40px;
  padding: 20px 30px;
}
.contact-phone label { display: block; text-align: center; color: var(--orange); font-family: var(--heading-font); font-weight: 600; font-size: 24px; margin-bottom: 14px; }
.contact-phone input { width: 100%; border: none; background: #fff; border-radius: 30px; padding: 16px 20px; font-size: 18px; text-align: center; box-shadow: var(--input-shadow); font-family: inherit; }
.date-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.date-pill {
  border-radius: 30px;
  padding: 14px 22px;
  font-size: 15px;
  background: #f9f9f9;
  box-shadow: -10px 10px 20px rgba(212,212,212,.2), 10px -10px 20px rgba(212,212,212,.2), -10px -10px 20px rgba(255,255,255,.9), 10px 10px 25px rgba(212,212,212,.9);
}
.date-pill.is-active { background: var(--orange-gradient); color: #fff; font-family: var(--heading-font); font-weight: 600; }
.contact-note { text-align: center; opacity: .35; font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer {
  background: var(--orange-gradient);
  border-radius: 60px;
  padding: 50px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 30px; padding: 20px 26px; }
.footer__brand img { width: 60px; height: 60px; border-radius: 12px; }
.footer__brand span { font-family: var(--heading-font); font-weight: 600; }
.footer__title { color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: clamp(20px, 3vw, 30px); flex: 1 1 320px; min-width: 240px; }
.footer__nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__nav a {
  background: #fff;
  color: var(--text-black);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: -10px 10px 20px rgba(199,98,1,.2), 10px -10px 20px rgba(199,98,1,.2);
}
.footer__nav a.brand { color: var(--orange); font-weight: 800; }
.footer__copy { width: 100%; text-align: right; color: #fff; font-family: var(--heading-font); font-size: 13px; opacity: .85; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero__bar { padding: 14px 20px; border-radius: 36px; }
  .section__header, .footer, .constructor { border-radius: 36px; }
  .panel { border-radius: 30px; padding: 24px 18px 90px; }
  .panel__back { top: 16px; left: 16px; }
  .footer__copy { text-align: center; }
}
