/* ==============================================
   LEVITSKAYA.KZ — Professional Lawyer Website
   Clean, full rewrite — March 2025
   ============================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #1a2340;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* === TOKENS === */
:root {
  --navy:    #0f1f4b;
  --navy2:   #1a3070;
  --blue:    #1e4dcc;
  --blue-lt: #2a5ff5;
  --accent:  #c8a84b;
  --gray-50: #f7f8fc;
  --gray-100:#eef0f8;
  --gray-300:#d1d5e0;
  --gray-500:#8892a4;
  --gray-700:#4a5568;
  --white:   #ffffff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --r: 12px;
  --r-sm: 8px;
  --trans: .25s ease;
  --max-w: 1200px;
}

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

/* === TYPOGRAPHY === */
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-700);
  max-width: 560px;
  line-height: 1.65;
}
.section-header { margin-bottom: 56px; }
.section { padding: 96px 0; }


/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo__name {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo__sub {
  display: block;
  font-size: .72rem;
  color: var(--gray-500);
  letter-spacing: .04em;
  margin-top: 2px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav a {
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); background: var(--gray-50); }

/* Header right */
.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  transition: background var(--trans), color var(--trans);
}
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}
.lang-btn:not(.active):hover { background: var(--gray-50); color: var(--navy); }

.btn-wa-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  transition: background var(--trans), transform var(--trans);
  white-space: nowrap;
}
.btn-wa-header:hover { background: #22bc5a; transform: translateY(-1px); }
.btn-wa-header svg { flex-shrink: 0; }

/* Mobile phone in header (shown mobile only) */
.header__phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}


/* ================================================
   HERO
   ================================================ */
.hero {
  background: linear-gradient(135deg, #0c1b3e 0%, #1a3070 50%, #0f2558 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 70%, rgba(30,77,204,.25) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(200,168,75,.12) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(42,95,245,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__title .name {
  display: block;
  background: linear-gradient(135deg, #fff 50%, rgba(200,168,75,.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-primary {
  padding: 14px 28px;
  background: var(--blue-lt);
  color: #fff;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 600;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 20px rgba(42,95,245,.4);
}
.btn-primary:hover { background: #3d6ff7; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,95,245,.5); }

.btn-outline {
  padding: 14px 28px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.btn-outline:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

.hero__stats {
  display: flex;
  gap: 0;
}
.hero__stat {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.hero__stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero__stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero__stat-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 5px;
}

/* Photo */
.hero__photo-wrap {
  position: relative;
}
.hero__photo-frame {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: linear-gradient(180deg, rgba(30,77,204,.2) 0%, transparent 40%);
}
.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,31,75,.4) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}


/* ================================================
   ABOUT / BIOGRAPHY
   ================================================ */
.about { background: var(--gray-50); }
.about__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.about__info { }
.about__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 32px;
}
.about__creds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.about__cred {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .87rem;
  color: var(--navy);
  font-weight: 500;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  line-height: 1.4;
}
.about__cred-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: none;
}

/* Timeline */
.timeline { position: relative; padding-left: 8px; }
.timeline__item {
  display: flex;
  gap: 0;
  margin-bottom: 4px;
  position: relative;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  flex-shrink: 0;
  padding-top: 18px;
}
.timeline__dot::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--blue);
  border: 2.5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--blue);
  flex-shrink: 0;
}
.timeline__dot::after {
  content: '';
  flex: 1;
  width: 2px;
  background: var(--gray-300);
  margin-top: 6px;
  min-height: 20px;
}
.timeline__item:last-child .timeline__dot::after { display: none; }
.timeline__year {
  display: none; /* year is in the content block */
}
.timeline__content {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 6px;
  flex: 1;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.timeline__year-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  background: rgba(30,77,204,.07);
  padding: 2px 8px;
  border-radius: 100px;
}
.timeline__title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  line-height: 1.3;
}
.timeline__desc {
  font-size: .82rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* ================================================
   SERVICES
   ================================================ */
.services { background: var(--white); }

/* Grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow var(--trans), border-color var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.svc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(30,77,204,.13);
  transform: translateY(-3px);
}

.svc-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.svc-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8eeff, #c8d8ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card__title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  padding-top: 4px;
}
.svc-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 2px;
}
.svc-card__list li {
  font-size: .83rem;
  color: var(--gray-700);
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}
.svc-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.svc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
  padding-top: 4px;
  transition: gap var(--trans);
}
.svc-card__cta:hover { gap: 9px; }

/* ================================================
   WHY ME
   ================================================ */
.why { background: var(--navy); }
.why .section-title { color: var(--white); }
.why .section-label { color: var(--accent); }
.why .section-subtitle { color: rgba(255,255,255,.65); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r);
  overflow: hidden;
}
.why__card {
  padding: 36px 30px;
  background: rgba(255,255,255,.04);
  transition: background var(--trans);
}
.why__card:hover { background: rgba(255,255,255,.08); }
.why__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .4;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.why__card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.why__card p {
  font-size: .87rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

/* ================================================
   COURTS BANNER (CTA strip)
   ================================================ */
.courts-strip {
  background: linear-gradient(135deg, var(--blue-lt), var(--blue));
  padding: 56px 0;
}
.courts-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.courts-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.courts-strip p {
  font-size: .92rem;
  color: rgba(255,255,255,.78);
}
.btn-light {
  padding: 14px 30px;
  background: var(--white);
  color: var(--blue);
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--trans);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }

/* ================================================
   CONTACT
   ================================================ */
.contact { background: var(--gray-50); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: start;
}

/* Info side */
.contact__info { }
.contact__intro {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact__detail-icon {
  width: 46px; height: 46px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact__detail-icon svg { width: 20px; height: 20px; }
.contact__detail-label {
  font-size: .76rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.contact__detail-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
}
.contact__detail-value a { color: inherit; }
.contact__detail-value a:hover { color: var(--blue); }

.btn-wa-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: #25d366;
  color: #fff;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  transition: all var(--trans);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-wa-large:hover { background: #1ebf5a; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.45); }

/* Form */
.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.form__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font: inherit;
  font-size: .92rem;
  color: var(--navy);
  background: var(--gray-50);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,77,204,.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 16px rgba(30,77,204,.35);
  margin-top: 4px;
}
.btn-submit:hover { background: var(--blue-lt); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(30,77,204,.45); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form__privacy {
  font-size: .74rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.form__success.show { display: flex; }
.form__success svg {
  width: 48px; height: 48px;
  color: #25d366;
  background: rgba(37,211,102,.1);
  border-radius: 50%;
  padding: 10px;
}
.form__success p {
  font-size: .95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 180px;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand { }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__logo .logo__icon { background: rgba(255,255,255,.12); color: var(--accent); }
.footer__logo .logo__name { color: var(--white); }
.footer__logo .logo__sub { color: rgba(255,255,255,.5); }
.footer__tagline {
  font-size: .86rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(37,211,102,.15);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 8px;
  color: #5de88d;
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--trans);
}
.footer__wa:hover { background: rgba(37,211,102,.25); }
.footer__col h4 {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: .86rem;
  color: rgba(255,255,255,.65);
  padding: 4px 0;
  transition: color var(--trans);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom span {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ================================================
   FLOATING WHATSAPP
   ================================================ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 900;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
}
.wa-float.show { opacity: 1; transform: scale(1); }
.wa-float:hover { box-shadow: 0 8px 30px rgba(37,211,102,.65); transform: scale(1.08); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: rgba(37,211,102,.2);
  border-radius: 50%;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* ================================================
   ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ================================================
   RESPONSIVE — Tablet (≤1024px)
   ================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
  .hero__photo { height: 430px; }

  .about__inner {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__form-wrap { max-width: 600px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ================================================
   RESPONSIVE — Mobile (≤768px)
   ================================================ */
@media (max-width: 768px) {
  /* Header: compact single-row, no nav */
  .header__inner { height: 64px; gap: 0; justify-content: space-between; }
  .nav { display: none; } /* Hidden — phone shown instead */
  .header__phone { display: flex; }
  .btn-wa-header { display: none; } /* hidden on mobile, float handles it */

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* Hero: single column */
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    gap: 40px;
  }
  .hero__photo-wrap { order: -1; max-width: 300px; margin: 0 auto; }
  .hero__photo { height: 300px; border-radius: 16px 16px 0 0; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: .94rem; max-width: 100%; }
  .hero__actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero__stats { gap: 0; }
  .hero__stat { padding-right: 20px; margin-right: 20px; }
  .hero__stat-num { font-size: 1.5rem; }

  /* About */
  .about__inner { grid-template-columns: 1fr; gap: 40px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Why */
  .why__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 28px 22px; border-radius: 16px; }

  /* Footer */
  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ================================================
   RESPONSIVE — Small Mobile (≤380px)
   ================================================ */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero__badge { font-size: .7rem; }
  .hero__stats { flex-wrap: wrap; gap: 16px; }
  .hero__stat { border-right: none !important; padding-right: 0 !important; margin-right: 0 !important; }
}
