/* ===== Design tokens ===== */
:root {
  --coral: #E85744;
  --coral-dark: #cf4632;
  --ink: #1c1c1e;
  --ink-soft: #4a4a4f;
  --muted: #8a8a90;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --bg-dark: #161617;
  --line: #ececec;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.16);
  --max: 1140px;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(232,87,68,.35); }
.btn--primary:hover { background: var(--coral-dark); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn--outline:hover { background: var(--coral); color: #fff; }

/* ===== Top banner ===== */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 9px 16px;
  position: relative;
}
.topbar a { color: var(--coral); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; opacity: .7;
}
.topbar__close:hover { opacity: 1; }
.topbar.hidden { display: none; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.brand__logo { height: 80px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--head); font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  position: relative; transition: color .2s ease;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--coral); transition: width .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover:not(.nav__cta)::after, .nav a.active:not(.nav__cta)::after { width: 100%; }
.nav__cta { background: var(--coral); color: #fff !important; padding: 9px 22px; border-radius: 50px; }
.nav__cta:hover { background: var(--coral-dark); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: url('assets/hero.jpg') center/cover no-repeat;
  color: #fff; text-align: center;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,16,18,.5) 0%, rgba(16,16,18,.32) 45%, rgba(16,16,18,.72) 100%); }
.hero__content { position: relative; max-width: 880px; }
.hero__eyebrow { font-family: var(--head); letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; font-weight: 600; color: var(--coral); margin-bottom: 22px; }
.hero__title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero__title span { color: var(--coral); }
.hero__actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.hero__arrow { width: 18px; height: 18px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100% { transform: rotate(45deg) translate(0,0);} 50% { transform: rotate(45deg) translate(5px,5px);} }

/* ===== Section shells ===== */
.section { padding: 96px 0; }
.about { background: var(--bg); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { font-family: var(--head); letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; font-weight: 600; color: var(--coral); margin-bottom: 12px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section__sub { color: var(--muted); margin-top: 12px; }

/* ===== About ===== */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff5f2; border: 1px solid #f6d9d1; border-left: 4px solid var(--coral);
  border-radius: var(--radius); padding: 20px 24px; max-width: 880px; margin: 0 auto 48px;
}
.notice__tag { background: var(--coral); color: #fff; font-family: var(--head); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; flex-shrink: 0; margin-top: 3px; }
.notice p { color: var(--ink-soft); font-size: .96rem; }
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about__copy p + p { margin-top: 18px; }
.about__copy p { color: var(--ink-soft); }
.about__features { display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; gap: 18px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--line); }
.feature__icon { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.5rem; background: #fff; color: var(--coral); border-radius: 12px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ===== Stats ===== */
.stats { background: var(--bg-dark); color: #fff; padding: 60px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-family: var(--head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--coral); }
.stat__label { color: rgba(255,255,255,.7); font-size: .9rem; letter-spacing: .04em; }

/* ===== Team ===== */
.team { background: var(--bg-soft); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member__avatar {
  width: 84px; height: 84px; margin: 32px 24px 0; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 8px 20px rgba(232,87,68,.3);
  transition: transform .25s ease;
}
.member:hover .member__avatar { transform: scale(1.06); }
.member h3 { font-size: 1.25rem; margin: 20px 24px 2px; }
.member__role { margin: 0 24px 14px; color: var(--coral); font-weight: 600; font-size: .88rem; }
.member__bio { margin: 0 24px 28px; color: var(--ink-soft); font-size: .9rem; flex-grow: 1; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; margin: 0; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px;
  font-family: var(--head); font-weight: 600; color: #fff;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .3s ease;
}
.gallery__item:hover figcaption { opacity: 1; }

/* ===== Pricing ===== */
.pricing { background: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 26px;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan--featured { border-color: var(--coral); box-shadow: 0 20px 50px rgba(232,87,68,.18); transform: translateY(-8px); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-family: var(--head); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; white-space: nowrap; }
.plan__name { font-size: 1.25rem; }
.plan__desc { color: var(--muted); font-size: .85rem; margin-top: 4px; min-height: 38px; }
.plan__price { font-family: var(--head); font-weight: 800; font-size: 2.8rem; color: var(--ink); margin: 14px 0 22px; line-height: 1; }
.plan__cur { font-size: 1.3rem; vertical-align: super; color: var(--coral); }
.plan__per { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan__feats { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.plan__feats li { padding: 9px 0 9px 28px; position: relative; font-size: .9rem; border-bottom: 1px solid var(--line); }
.plan__feats li::before { position: absolute; left: 0; top: 9px; font-weight: 700; }
.plan__feats li.yes::before { content: "✓"; color: var(--coral); }
.plan__feats li.no { color: var(--muted); }
.plan__feats li.no::before { content: "✕"; color: #cfcfcf; }
.plan__cta { text-align: center; }

/* ===== Contact ===== */
.contact { background: var(--bg-soft); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact__info h3 { font-size: 1.4rem; margin-bottom: 22px; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); }
.contact__list a:hover { color: var(--coral); }
.contact__ico {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff5f2; border: 1px solid #f6d9d1; border-radius: 12px;
  color: var(--coral);
}
.contact__ico svg { width: 20px; height: 20px; display: block; }
.contact__list em { color: var(--coral); font-style: normal; font-weight: 600; font-size: .85rem; }
.contact__social { display: flex; gap: 12px; margin-top: 30px; }
.social { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: .85rem; padding: 10px 20px; border: 1px solid var(--line); border-radius: 50px; background: #fff; transition: .2s; }
.social svg { width: 16px; height: 16px; }
.social:hover { background: var(--coral); color: #fff; border-color: var(--coral); }

.contact__form { background: #fff; padding: 34px; border-radius: 18px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 500; font-size: .85rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--body); font-size: .95rem; background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); background: #fff; }
.field textarea { resize: vertical; }
.contact__form .btn { width: 100%; }
.form__status { margin-top: 14px; font-size: .9rem; text-align: center; min-height: 1em; }
.form__status.ok { color: #1c8a4d; }
.form__status.err { color: var(--coral); }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__logo { height: 60px; width: auto; opacity: .95; }
.footer__copy { font-size: .85rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .team__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 12px 24px 24px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
    align-items: stretch;
  }
  .nav.open { display: flex; animation: navDrop .25s ease; }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .section { padding: 70px 0; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}
