:root {
  --bg: #0b1020;
  --bg-soft: #10172d;
  --surface: #131b34;
  --surface-2: #18213f;
  --surface-3: #1d284b;
  --text: #f3f6ff;
  --muted: #c2c9de;
  --muted-2: #9ba6c7;
  --brand: #8e79ff;
  --brand-2: #63d7df;
  --accent: #b8a7ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --ring: rgba(142, 121, 255, 0.35);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --text-base: 1.04rem;
  --text-lg: 1.12rem;
  --text-sm: 0.96rem;
}

:root.light {
  --bg: #f4f7ff;
  --bg-soft: #edf2ff;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --surface-3: #eef3ff;
  --text: #172033;
  --muted: #4f5b78;
  --muted-2: #6e7892;
  --brand: #6d59ff;
  --brand-2: #38c8d0;
  --accent: #8d79ff;
  --glass: rgba(12, 18, 40, 0.05);
  --glass-strong: rgba(12, 18, 40, 0.08);
  --border: rgba(16, 22, 46, 0.1);
  --ring: rgba(109, 89, 255, 0.22);
  --shadow: 0 18px 48px rgba(20, 28, 52, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 600px at 90% -10%, rgba(142, 121, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(99, 215, 223, 0.12), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
.tag,
.chip,
.btn,
.nav-links a,
.tool-pill,
.pill.icon {
  overflow-wrap: anywhere;
}

section,
div,
article,
aside,
main,
header,
footer,
.hero-grid,
.presence-wrap,
.contact-shell,
.footer-wrap,
.areas-grid,
.products-grid,
.grid-cards,
.faq-grid,
.manifesto-points {
  min-width: 0;
}

.container {
  width: min(1140px, 90%);
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.15;
}

.section-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  outline: 3px solid var(--ring);
}

/* Header / Nav */
.site-header {
  position: relative;
  background:
    radial-gradient(1100px 480px at 5% -10%, rgba(99, 215, 223, 0.1), transparent 60%),
    radial-gradient(1100px 480px at 95% 0%, rgba(142, 121, 255, 0.14), transparent 60%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-toggle,
.theme-toggle {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.97rem;
  text-decoration: none;
  opacity: 0.96;
}

.nav-links a:hover {
  background: var(--glass);
}

.nav-links .hire {
  color: #09111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(98, 112, 255, 0.22);
}

.divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 38px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(142, 121, 255, 0.16), transparent 58%),
    radial-gradient(800px 500px at 0% 28%, rgba(99, 215, 223, 0.1), transparent 58%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 36px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  line-height: 1.08;
}

.grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.block-1 {
  margin-bottom: 16px;
}

.block-2 {
  margin: 18px 0;
}

.block-3 {
  margin: 20px 0 0;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  font-size: 0.96rem;
}

.hero-cta,
.presence-actions,
.quick-actions,
.form-actions,
.socials,
.tools-wrap,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn.primary {
  border: 0;
  color: #09111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn.ghost {
  backdrop-filter: saturate(140%) blur(4px);
}

.btn.xl {
  padding: 14px 20px;
  font-size: 1rem;
}

.glass {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(140%);
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-frame {
  display: inline-block;
  padding: 12px;
  border-radius: 26px;
}

.hero-photo .hero-frame img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
}

/* Manifesto */
.manifesto-section {
  padding-top: 52px;
}

.manifesto-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.manifesto-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.18;
}

.manifesto-text {
  max-width: 860px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.manifesto-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini-point {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-point span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-2);
  font-size: 0.95rem;
  font-weight: 800;
}

.mini-point p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Areas / Products / Cards */
.areas-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.area-card,
.product-card,
.presence-card,
.card,
.faq-grid details {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.area-card,
.product-card {
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.area-card {
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.area-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.area-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(142, 121, 255, 0.18), rgba(99, 215, 223, 0.16));
  font-size: 1.15rem;
}

.area-label {
  color: var(--muted-2);
  font-size: 0.98rem;
  font-weight: 700;
}

.area-card h3,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.area-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.product-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #09111f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 0.8rem;
  font-weight: 800;
}

/* Filters / Project cards */
.filters {
  margin: 14px 0 26px;
}

.chip {
  position: relative;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(142, 121, 255, 0.58), rgba(99, 215, 223, 0.58)) border-box;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.chip-lg {
  font-weight: 700;
  letter-spacing: 0.15px;
}

.chip.active {
  border: 0;
  color: #09111f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-cards {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.card {
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.card.case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #1b2340;
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding: 22px;
}

.card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.4;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tag {
  padding: 6px 11px;
  border: 1px solid rgba(142, 121, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(142, 121, 255, 0.16), rgba(99, 215, 223, 0.14));
  font-size: 0.82rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.actions a {
  flex: 1 1 140px;
  text-align: center;
}

/* Tools */
.tool-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Presence */
.presence-wrap,
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.presence-cards {
  display: grid;
  gap: 16px;
}

.presence-card {
  padding: 24px;
  border-radius: 20px;
}

.presence-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.presence-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* FAQ */
.faq-section,
.contact-section {
  background: transparent;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-grid details {
  padding: 18px 20px;
  border-radius: 16px;
  transition: box-shadow 0.2s ease, transform 0.12s ease;
}

.faq-grid details[open] {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.faq-grid details:hover {
  transform: translateY(-1px);
}

.faq-grid summary {
  margin: 0 0 8px;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.6;
  cursor: pointer;
}

.faq-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* Contact */
.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.contact-badges li {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  font-size: 0.95rem;
  font-weight: 700;
}

.card-title {
  margin: 0 0 14px;
  font-size: 1.24rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  color: var(--text);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-2);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.form-actions .btn {
  flex: 1 1 140px;
}

.form-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.site-footer.elev {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--text);
}

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 24px;
  padding: 34px 0 14px;
}

.brand.big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.26rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot-tag {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.pill.icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.pill.icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.links-col h4,
.contact-col h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.linklist,
.contactlist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linklist a,
.contactlist a {
  display: inline-block;
  padding: 6px 2px;
  border-radius: 8px;
  font-size: 0.98rem;
  text-decoration: none;
  opacity: 0.96;
}

.linklist a:hover,
.contactlist a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.04);
}

.foot-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 30px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-legal .dot {
  opacity: 0.6;
}

/* Floating buttons */
.float-btn {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: var(--text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px) saturate(140%);
  cursor: pointer;
  opacity: 0.96;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

#toBottomBtn {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.float-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* Breakpoints */
@media (min-width: 1280px) {
  .section {
    padding: 84px 0;
  }

  .hero-grid {
    gap: 42px;
  }
}

@media (max-width: 1080px) {
  .hero {
    padding: 54px 0 26px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .hero-photo .hero-frame img {
    max-width: 320px;
    margin: 0 auto;
  }

  .presence-wrap,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .presence-copy,
  .contact-intro {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .areas-grid,
  .products-grid,
  .grid-cards,
  .manifesto-points {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    gap: 18px;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 820px) {
  .navbar {
    padding: 14px 0;
  }

  .section-title {
    font-size: clamp(1.85rem, 4.4vw, 2.2rem);
  }

  .hero-text h1 {
    font-size: clamp(2.1rem, 6vw, 3rem);
  }

  .sub {
    font-size: 1.04rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1140px, 92%);
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
  }

  .brand {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    padding: 6px 6px 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }

  .theme-toggle {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 9px 11px;
    z-index: 30;
  }

  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 9px 11px;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 260px;
    max-width: 92vw;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .divider {
    display: none;
  }

  .hero {
    padding: 36px 0 16px;
  }

  .hero-grid {
    gap: 26px;
  }

  .hero-text,
  .hero-photo,
  .presence-copy,
  .section-head,
  .card.case,
  .manifesto-card,
  .glass,
  .area-card,
  .product-card,
  .faq-grid details,
  .footer-wrap > *,
  .contact-shell > * {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .hero-text {
    order: 1;
  }

  .hero-photo {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 24px;
  }

  .hero-photo .hero-frame img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 16px;
  }

  .hero-text h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.08;
  }

  .sub {
    margin: 0;
    line-height: 1.9;
  }

  .block-1 {
    margin-bottom: 18px;
  }

  .block-2 {
    margin: 20px 0;
  }

  .block-3 {
    margin: 22px 0 0;
  }

  .sub,
  .manifesto-text,
  .section-subtitle,
  .area-card p,
  .product-card p,
  .card p,
  .faq-grid p {
    font-size: 1rem;
  }

  .trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .trust li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .hero-cta {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-cta .btn {
    flex: 1 1 0;
    width: auto;
  }

  .areas-grid,
  .products-grid,
  .grid-cards,
  .manifesto-points {
    grid-template-columns: 1fr;
  }

  .card.case {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
  }

  .thumb {
    display: block;
    width: 100%;
    border-radius: 0;
  }

  .content {
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .section {
    padding: 58px 0;
  }

  .manifesto-card,
  .glass {
    padding: 24px;
  }

  .area-card,
  .product-card {
    padding: 20px;
  }

  .btn.xl {
    padding: 13px 18px;
  }

  .tools-wrap {
    gap: 8px;
  }

  .tool-pill {
    padding: 7px 10px;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .presence-wrap {
    display: block;
  }

  .presence-copy .section-title,
  .presence-copy .section-subtitle,
  .presence-copy p {
    margin-bottom: 16px;
  }

  .presence-copy .section-subtitle {
    line-height: 1.85;
  }

  .presence-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }

  .presence-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .presence-actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .presence-cards {
    display: none !important;
  }

  .contact-shell > * {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 20px;
    border-radius: 18px;
  }

  .contact-section .section-title,
  .contact-shell .card-title {
    margin-bottom: 10px;
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .contact-section .section-subtitle,
  .contact-shell .form-note,
  .contact-shell p,
  .contact-shell label {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .contact-badges {
    gap: 8px;
    margin: 14px 0 16px;
  }

  .contact-badges li {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
  }

  .contact-form {
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form label {
    gap: 6px;
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .contact-section .quick-actions,
  .contact-shell .quick-actions,
  .contact-section .form-actions,
  .contact-shell .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-section .quick-actions,
  .contact-shell .quick-actions {
    margin-top: 8px;
  }

  .contact-section .form-actions,
  .contact-shell .form-actions {
    margin-top: 4px;
  }

  .contact-section .quick-actions .btn,
  .contact-shell .quick-actions .btn,
  .contact-section .form-actions .btn,
  .contact-shell .form-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .site-footer .footer-wrap,
  .site-footer.elev .footer-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0 10px;
  }

  .site-footer .footer-wrap > *,
  .site-footer.elev .footer-wrap > * {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
  }

  .site-footer .footer-wrap > :first-child,
  .site-footer.elev .footer-wrap > :first-child {
    order: 1;
  }

  .site-footer .footer-wrap > :nth-child(2),
  .site-footer.elev .footer-wrap > :nth-child(2) {
    order: 2;
  }

  .site-footer .footer-wrap > :nth-child(3),
  .site-footer.elev .footer-wrap > :nth-child(3) {
    order: 3;
  }

  .links-col {
    text-align: left;
  }

  .links-col .linklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 4px;
  }

  .contact-col {
    text-align: center;
  }

  .contact-col .contactlist {
    gap: 4px;
    justify-items: center;
  }

  .float-btn {
    right: 14px;
    width: 48px;
    height: 48px;
  }

  #toBottomBtn {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 540px) {
  body {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.15;
  }

  .section-subtitle,
  .manifesto-text,
  .card p,
  .area-card p,
  .product-card p,
  .presence-card p,
  .faq-grid p {
    font-size: 0.97rem;
    line-height: 1.72;
  }

  .trust li,
  .contact-badges li {
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .meta {
    gap: 7px;
  }

  .tag {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .manifesto-card,
  .glass,
  .area-card,
  .product-card,
  .content,
  .faq-grid details {
    padding: 18px;
  }

  .hero-photo .hero-frame img {
    max-width: 280px;
  }

  .contact-shell > * {
    padding: 18px;
  }

  .contact-section .section-title,
  .contact-shell .card-title {
    font-size: 1.1rem;
  }

  .contact-section .section-subtitle,
  .contact-shell .form-note,
  .contact-shell p,
  .contact-shell label {
    font-size: 0.89rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 11px;
    font-size: 0.92rem;
  }

  .contact-section .quick-actions .btn,
  .contact-shell .quick-actions .btn,
  .contact-section .form-actions .btn,
  .contact-shell .form-actions .btn {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(1140px, 94%);
  }

  .navbar {
    gap: 8px;
  }

  .brand {
    padding: 6px 4px 6px 0;
    font-size: 0.94rem;
  }

  .theme-toggle,
  .menu-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
  }

  .section {
    padding: 52px 0;
  }

  .btn {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.94rem;
  }

  .btn.xl {
    padding: 12px 14px;
  }

  .hero-cta .btn {
    width: auto;
  }

  .chip {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .tool-pill,
  .pill.icon {
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .contact-shell > * {
    padding: 16px;
  }

  .contact-section .section-title,
  .contact-shell .card-title {
    font-size: 1.02rem;
  }

  .contact-section .section-subtitle,
  .contact-shell .form-note,
  .contact-shell p,
  .contact-shell label {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .contact-badges li {
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 0.9rem;
  }

  .contact-section .quick-actions .btn,
  .contact-shell .quick-actions .btn,
  .contact-section .form-actions .btn,
  .contact-shell .form-actions .btn {
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 11px;
    font-size: 0.8rem;
  }

  .site-footer .footer-wrap > *,
  .site-footer.elev .footer-wrap > * {
    padding: 16px;
  }

  .content,
  .area-card,
  .product-card,
  .presence-card,
  .manifesto-card,
  .glass,
  .faq-grid details {
    padding: 16px;
  }

  .foot-legal {
    justify-content: center;
    text-align: center;
  }

  .trust li {
    padding: 8px;
    font-size: 0.78rem;
  }
}