/* ==========================================================================
   Javonsher Rustamov — Personal site
   ========================================================================== */

[hidden] { display: none !important; }

:root {
  /* Brand colors */
  --primary: #2C44A0;
  --primary-dark: #233889;
  --primary-light: #4759B5;
  --accent: #FBD557;
  --accent-soft: #FCE7A0;
  --accent-bg: #FFF7DC;

  /* Neutrals */
  --bg: #F5F6F8;
  --bg-alt: #ECEDF1;
  --surface: #FFFFFF;
  --text: #1A1F36;
  --text-soft: #5A6178;
  --text-muted: #8A92A6;
  --border: #E5E7ED;

  /* Layout */
  --container: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 30, 60, 0.04);
  --shadow: 0 8px 28px rgba(20, 30, 60, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 30, 60, 0.12);

  /* Typography */
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Lora', Georgia, serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
}
.btn-primary:hover {
  background: #f5c92e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(251, 213, 87, 0.4);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-soft);
}
.btn-dark {
  background: var(--primary);
  color: white;
}
.btn-dark:hover {
  background: var(--primary-dark);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-bg);
  color: var(--text);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.badge i { color: var(--accent); font-size: 12px; }
.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-mark-light {
  background: var(--primary);
}
.logo-text { line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.logo-tag { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; font-weight: 600; }

.nav {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}
.nav a {
  color: var(--text);
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-dropdown { position: relative; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.lang-switch:hover { background: var(--text); color: var(--accent); border-color: var(--text); }
.lang-switch i { font-size: 10px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 30, 60, 0.12);
  padding: 6px;
  min-width: 160px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: left;
}
.lang-option:hover { background: var(--bg-alt); }
.lang-code {
  background: var(--bg-alt);
  color: var(--text-soft);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.phone-link i { color: var(--primary); font-size: 13px; }

.mobile-menu-btn { display: none; font-size: 22px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--bg);
  padding: 80px 0 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-content .badge { margin-bottom: 24px; }
.hero-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-title-accent {
  display: block;
  color: var(--primary);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-yellow { background: var(--accent); }

/* Hero image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, #1A2870 100%);
  box-shadow: var(--shadow-lg);
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -12px -12px auto auto;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(251, 213, 87, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-image-frame img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: 110%;
  object-fit: contain;
  object-position: bottom;
}
.hero-stat-card {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: white;
  padding: 16px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head {
  margin-bottom: 56px;
}
.section-head.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .badge { margin-bottom: 16px; }

.section-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title-light { color: white; }
.section-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto;
}
.section-sub-light { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background: white;
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.stat-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 12px;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Cert card */
.cert-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cert-decor {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  background: var(--accent-soft);
  border-bottom-left-radius: 100%;
  z-index: 0;
}
.cert-title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  z-index: 1;
}
.cert-list {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
}
.cert-list li i {
  color: var(--primary);
  margin-top: 3px;
  font-size: 16px;
  flex-shrink: 0;
}
.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.cert-foot-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--bg);
  padding: 100px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.service-card-active {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(44, 68, 160, 0.15);
}
.service-card-active .service-icon {
  background: var(--primary);
  color: white;
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.service-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ==========================================================================
   Articles
   ========================================================================== */
.articles, .analytics {
  background: white;
  padding: 100px 0;
}
.analytics { background: var(--bg); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card-featured {
  border: 2px solid var(--accent);
}
.article-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.article-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text);
}
.article-body p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
  flex: 1;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  background: var(--primary);
  padding: 100px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars {
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}
.user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.user-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Booking
   ========================================================================== */
.booking {
  background: var(--bg);
  padding: 100px 0;
}
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 8px;
}
.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}
.step.active {
  background: var(--accent);
  color: var(--text);
}
.step.completed {
  background: var(--primary);
  color: white;
}
.step-line {
  width: 50px;
  height: 2px;
  background: var(--bg-alt);
}

.booking-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.booking-step-content { display: none; }
.booking-step-content.active { display: block; }
.booking-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}
.booking-step-title i { color: var(--primary); }

.duration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.duration-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.duration-option:hover {
  border-color: var(--primary-light);
}
.duration-option.selected {
  border-color: var(--primary);
  background: rgba(44, 68, 160, 0.03);
}
.duration-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.duration-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.duration-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.date-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}
.date-cell:hover {
  border-color: var(--primary);
}
.date-cell.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.date-cell .day { font-size: 10px; color: var(--text-muted); }
.date-cell.selected .day { color: rgba(255,255,255,0.8); }
.date-cell .num { font-weight: 700; font-size: 16px; margin-top: 2px; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.time-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.time-option:hover { border-color: var(--primary-light); }
.time-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  gap: 16px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.confirm-summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row span { color: var(--text-soft); }
.confirm-row strong { color: var(--text); font-weight: 700; }
.confirm-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--bg);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-sub {
  font-size: 15px;
  color: var(--text-soft);
  margin: 16px 0 32px;
}
.contact-list { margin-top: 8px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-label {
  font-size: 12px;
  color: var(--text-muted);
}
.contact-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--primary);
  color: white;
  padding: 36px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer-brand .logo { color: white; }
.footer-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover { opacity: 0.8; }
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: right;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nav, .phone-link { display: none; }
  .mobile-menu-btn { display: block; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 14px; }

  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-image-frame { max-width: 360px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero { padding: 50px 0 70px; }
  .about, .services, .articles, .analytics, .testimonials, .booking, .contact { padding: 70px 0; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-meta { gap: 16px; }

  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .services-grid, .articles-grid, .testimonials-grid { grid-template-columns: 1fr; }

  .section-head { margin-bottom: 40px; }
  .booking-card { padding: 24px 20px; }
  .booking-steps { gap: 4px; }
  .step { width: 32px; height: 32px; font-size: 12px; }
  .step-line { width: 20px; }
  .duration-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: 1fr 1fr; }

  .contact-form { padding: 24px 20px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-nav { justify-content: center; }
  .footer-copyright { text-align: center; }

  .hero-stat-card { left: auto; right: 10px; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.6s ease backwards; }
.hero-content .badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.4s; }
.hero-meta { animation-delay: 0.5s; }

/* Works filter */
.works-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 40px;
}
.filter-btn {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: white;
}
.article-card.is-hidden {
  display: none;
}
.article-card h3 a {
  color: inherit;
  text-decoration: none;
}
.article-card a.article-img {
  display: block;
  text-decoration: none;
}
.article-card a.article-img:hover .article-tag { background: var(--accent); color: var(--text); }
.works-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}
.works-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-soft);
}
.works-empty i {
  font-size: 56px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}
.works-empty h3 {
  font-family: 'Lora', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 10px;
}
.works-empty p {
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* LawPower section */
.lawpower {
  padding: 80px 0;
}
.lawpower-card {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.lawpower-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 213, 87, 0.18), transparent 70%);
  pointer-events: none;
}
.lawpower-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.badge-light {
  background: rgba(251, 213, 87, 0.18);
  color: var(--accent);
  border-color: rgba(251, 213, 87, 0.35);
}
.lawpower-title {
  font-family: var(--font-display, 'Lora', serif);
  font-size: 56px;
  font-weight: 700;
  color: white;
  margin: 16px 0 6px;
  letter-spacing: -0.02em;
}
.lawpower-tag {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.lawpower-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.lawpower-visual {
  position: relative;
  z-index: 1;
}
.lp-mark {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  background: #071047;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 16, 71, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.lp-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
@media (max-width: 900px) {
  .lawpower-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    text-align: center;
  }
  .lawpower-content { margin: 0 auto; }
  .lawpower-visual { display: flex; justify-content: center; order: -1; }
  .lp-mark { width: 140px; height: 140px; border-radius: 22px; }
  .lawpower-title { font-size: 40px; }
}

/* Contact: social links + CTA card */
a.contact-value {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
a.contact-value:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 17px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-link:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-cta {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.contact-cta-title {
  font-family: var(--font-display, 'Lora', serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.contact-cta-text {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.contact-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
