:root {
  --color-hero-dark: #1a1410;
  --color-paper: #faf8f3;
  --color-surface: #ffffff;
  --color-title: #2a221c;
  --color-text: #4a3f37;
  --color-muted: #7a6e65;
  --color-border: #e8e2d9;
  --color-orange: #e87722;
  --color-orange-hover: #d06a1e;
  --color-green: #5b8c5a;
  --color-blue: #4a7fa5;
  --color-red: #c75050;
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-serif: "Playfair Display", "Noto Serif SC", "Lora", serif;
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "Space Mono", monospace;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.has-marquee {
  padding-bottom: 48px;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section.tight {
  padding: 64px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title,
.page-title,
.hero-title {
  margin: 0;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.08;
}

.section-title {
  max-width: 720px;
  font-size: 46px;
}

.section-lead {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--color-muted);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  transition: background 300ms ease, box-shadow 300ms ease, color 300ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header.on-dark:not(.scrolled) {
  color: #fff;
}

.site-header.on-light,
.site-header.scrolled {
  color: var(--color-title);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(232, 119, 34, 0.95);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
}

.site-header.scrolled .brand-mark,
.site-header.on-light .brand-mark {
  border-color: rgba(232, 119, 34, 0.25);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.82;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-orange);
  opacity: 1;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--color-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn {
  padding: 0 22px;
  box-shadow: 0 8px 18px rgba(232, 119, 34, 0.22);
}

.btn:hover,
.nav-cta:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn.outline {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-title);
  box-shadow: none;
}

.btn.outline:hover {
  border-color: rgba(232, 119, 34, 0.35);
  color: var(--color-orange);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.site-header.scrolled .menu-toggle,
.site-header.on-light .menu-toggle {
  border-color: var(--color-border);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--color-hero-dark);
}

.sub-hero {
  min-height: 58vh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(26, 20, 16, 0.82), rgba(26, 20, 16, 0.45) 52%, rgba(26, 20, 16, 0.35)),
    linear-gradient(180deg, rgba(26, 20, 16, 0.28), rgba(26, 20, 16, 0.4));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  align-items: center;
  gap: 42px;
  padding-top: 96px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
}

.sub-hero .hero-inner {
  min-height: 58vh;
}

.hero-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 760px;
  color: #fff;
  font-size: 82px;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-panels {
  display: grid;
  gap: 18px;
}

.glass-panel {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: background 200ms ease, transform 200ms ease;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-stat-panel {
  padding: 24px 26px;
}

.panel-label {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.2;
}

.hero-stat span,
.panel-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.panel-title {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
}

.panel-copy {
  margin: 0;
}

.warm-band {
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 119, 34, 0.1), transparent 36%),
    linear-gradient(180deg, #fffaf3 0%, var(--color-paper) 100%);
}

.script-layout {
  display: grid;
  align-items: stretch;
  gap: 30px;
  grid-template-columns: 0.78fr 1.22fr;
}

.image-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 12px;
  background: #d7c3ac;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease;
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: #fff;
}

.image-card::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(26, 20, 16, 0.68));
}

.image-card-caption h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.1;
}

.image-card-caption p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.feature-card,
.news-card,
.stat-card,
.process-card,
.value-card,
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover,
.feature-card:hover,
.news-card:hover,
.stat-card:hover,
.process-card:hover,
.value-card:hover,
.contact-card:hover {
  border-color: rgba(232, 119, 34, 0.35);
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.1);
  transform: translateY(-2px);
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px 20px;
}

.icon-box {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 12px;
  background: rgba(232, 119, 34, 0.12);
  color: var(--color-orange);
}

.icon-box.green {
  background: rgba(91, 140, 90, 0.12);
  color: var(--color-green);
}

.icon-box.blue {
  background: rgba(74, 127, 165, 0.12);
  color: var(--color-blue);
}

.card-title {
  margin: 0 0 10px;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
}

.card-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.value-card,
.contact-card {
  padding: 26px 22px;
}

.feature-card h3,
.value-card h3,
.contact-card h3,
.process-card h3 {
  margin: 0 0 8px;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.2;
}

.feature-card p,
.value-card p,
.contact-card p,
.process-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.case-list {
  display: grid;
  gap: 32px;
}

.case-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
  grid-template-columns: 0.82fr 1.18fr;
}

.case-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.case-content {
  padding: 34px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(232, 119, 34, 0.12);
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 700;
}

.tag.green {
  background: rgba(91, 140, 90, 0.12);
  color: var(--color-green);
}

.tag.blue {
  background: rgba(74, 127, 165, 0.12);
  color: var(--color-blue);
}

.case-name {
  margin: 16px 0 12px;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.1;
}

.case-content p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}

.metric {
  min-width: 112px;
}

.metric strong {
  display: block;
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.2;
}

.metric span {
  color: var(--color-muted);
  font-size: 12px;
}

.partners-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.partner-logo {
  display: grid;
  min-height: 88px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a8178;
  font-weight: 800;
  filter: grayscale(1);
  transition: color 200ms ease, transform 200ms ease, filter 200ms ease;
}

.partner-logo:hover {
  color: var(--color-orange);
  filter: grayscale(0);
  transform: translateY(-2px);
}

.news-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.news-body {
  padding: 22px;
}

.news-date {
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 12px;
}

.news-card h3 {
  margin: 10px 0 10px;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
}

.news-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.consult-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(91, 140, 90, 0.1), transparent 28%),
    var(--color-paper);
}

.consult-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 40px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(42, 34, 28, 0.06);
}

.consult-panel h2 {
  margin: 0;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.08;
  text-align: center;
}

.consult-panel > p {
  max-width: 560px;
  margin: 14px auto 28px;
  color: var(--color-muted);
  text-align: center;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--color-title);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input,
.form-field select {
  height: 46px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.12);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--color-green);
  font-weight: 700;
  text-align: center;
}

.site-footer {
  padding: 58px 0 34px;
  background: #1f1712;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-brand {
  color: #fff;
}

.footer-brand p {
  max-width: 360px;
  margin: 14px 0 0;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
}

.footer-col a,
.footer-col span {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.floating-consult {
  position: fixed;
  right: 32px;
  bottom: 72px;
  z-index: 180;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 4px 16px rgba(232, 119, 34, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.floating-consult:hover {
  background: var(--color-orange-hover);
  box-shadow: 0 8px 22px rgba(232, 119, 34, 0.42);
  transform: scale(1.08);
}

.floating-consult svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 3px;
}

.data-marquee {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 170;
  height: 48px;
  overflow: hidden;
  background: rgba(26, 20, 16, 0.86);
  color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.marquee-track {
  display: inline-flex;
  min-width: 200%;
  height: 48px;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.data-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 13px;
}

.marquee-track b {
  color: var(--color-orange);
  font-weight: 700;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.page-content {
  background: var(--color-paper);
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  padding: 28px 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 1.2;
}

.stat-card span {
  color: var(--color-muted);
  font-size: 13px;
}

.process-grid,
.value-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  padding: 24px;
}

.process-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.split-section {
  display: grid;
  align-items: center;
  gap: 44px;
  grid-template-columns: 1fr 1fr;
}

.split-section img {
  width: 100%;
  min-height: 420px;
  border-radius: 12px;
  object-fit: cover;
}

.rich-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.rich-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.rich-list i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--color-orange);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--color-orange);
  background: rgba(232, 119, 34, 0.1);
  color: var(--color-orange);
}

.article {
  max-width: 850px;
  margin: 0 auto;
  padding: 88px 0;
}

.article h2 {
  margin: 42px 0 14px;
  color: var(--color-title);
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.15;
}

.article p {
  margin: 0 0 18px;
}

.article img {
  width: 100%;
  margin: 30px 0;
  border-radius: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.map-box {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(232, 119, 34, 0.14), transparent 34%),
    linear-gradient(45deg, rgba(91, 140, 90, 0.12), transparent 40%),
    #fff;
  color: var(--color-title);
  text-align: center;
}

.map-box strong {
  display: block;
  color: var(--color-orange);
  font-family: var(--font-serif);
  font-size: 28px;
}

@media (max-width: 1024px) {
  .hero-inner,
  .script-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-panels {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid,
  .news-grid,
  .process-grid,
  .value-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 68px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-title);
    box-shadow: var(--shadow-hover);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-cta {
    margin: 8px 12px 4px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    min-height: auto;
    padding: 132px 0 78px;
  }

  .sub-hero .hero-inner {
    min-height: auto;
  }

  .hero-panels {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .section-header .btn {
    margin-top: 20px;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card img {
    min-height: 240px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.has-marquee {
    padding-bottom: 40px;
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .brand-text {
    max-width: 190px;
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .case-name {
    font-size: 30px;
  }

  .consult-panel h2 {
    font-size: 34px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .feature-grid,
  .news-grid,
  .stats-grid,
  .process-grid,
  .value-grid,
  .contact-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .consult-panel,
  .case-content {
    padding: 28px 22px;
  }

  .form-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-consult {
    right: 16px;
    bottom: 56px;
    width: 48px;
    height: 48px;
    font-size: 10px;
  }

  .floating-consult svg {
    width: 18px;
    height: 18px;
  }

  .data-marquee,
  .marquee-track {
    height: 40px;
  }

  .marquee-track span {
    font-size: 11px;
  }
}
