/* InventaireImmo — landing page */
:root {
  --brand: #a1001f;
  --brand-dark: #7e0018;
  --brand-soft: #fdf0f2;
  --brand-line: #f3c4cd;
  --ink: #1f2429;
  --text: #3f3f46;
  --muted: #71717a;
  --line: #e7e7ea;
  --bg: #ffffff;
  --bg-muted: #f7f7f8;
  --dark: #1f2429;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 12px 32px -12px rgba(16, 16, 20, .14);
  --container: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sep { color: #c4c4c9; margin: 0 .6em; }

/* Topbar */
.topbar { background: var(--bg-muted); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar strong { color: var(--ink); font-weight: 600; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a:hover { color: var(--ink); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 70px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand img { width: 44px; height: 44px; }
.brand__text { font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.brand__text b { color: var(--brand); font-weight: 800; }
.brand__text small { display: block; margin-top: 3px; font-size: .62rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }.nav { display: flex; gap: 24px; font-size: .95rem; }
.nav a { color: var(--text); white-space: nowrap; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; border-radius: 9px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; cursor: pointer; white-space: nowrap; }
.btn--sm { padding: 8px 14px; font-size: .92rem; }
.btn--lg { padding: 13px 26px; font-size: 1rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(126, 0, 24, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.btn--ghost:hover { border-color: #cfcfd4; }
.btn:active { transform: translateY(1px); }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; margin-top: 22px; color: var(--brand-dark); font-weight: 600; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(161, 0, 31, .08), transparent 70%),
    linear-gradient(to right, rgba(0, 0, 0, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, rgba(0, 0, 0, .035) 1px, transparent 1px) 0 0 / 44px 44px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 280px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__3d { position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  -webkit-mask-image: radial-gradient(ellipse 50% 62% at 50% 38%, transparent 55%, #000 88%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 50% 62% at 50% 38%, transparent 55%, #000 88%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect; }
.hero__3d.is-ready { opacity: 1; }
.hero__3d canvas { display: block; width: 100%; height: 100%; }
.pill { display: inline-flex; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-dark); font-size: .9rem; }
.pill b { color: var(--ink); font-weight: 600; }
.hero h1 { margin: 16px auto 22px; font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; max-width: 1080px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { max-width: 680px; margin: 0 auto; font-size: 1.15rem; color: var(--text); }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-top: 56px; background: #f1f1f3; border-radius: 999px; }
.tabs button { border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--text); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.showcase { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 28px; text-align: left; }
.frame { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.frame--web { display: grid; }
.frame--web .showcase__img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .35s; }
.frame--web .showcase__img.is-active { opacity: 1; }
.frame--phone { background: #111; }
.frame--phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.badge-live { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(20, 20, 20, .85); color: #fff; font-size: .8rem; font-weight: 500; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.frame--web .badge-live { top: auto; bottom: 14px; left: auto; right: 14px; }

/* Sections */
.section { padding: 104px 0; }
.section--muted { background: var(--bg-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--border { border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { margin-bottom: 14px; color: var(--brand-dark); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sub { margin-top: 18px; font-size: 1.08rem; color: var(--muted); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1030px; margin: 0 auto; }
.compare__card { padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare__card h3 { font-size: 1rem; margin-bottom: 18px; color: var(--text); }
.compare__card--good { box-shadow: var(--shadow); }
.compare__card--good h3 { color: var(--ink); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.list li { position: relative; padding-left: 32px; }
.list li::before { position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.list--x li { color: var(--muted); }
.list--x li::before { content: "✕"; background: #f1f1f3; color: #8a8a93; }
.list--check li { color: var(--ink); }
.list--check li::before { content: "✓"; background: var(--brand-soft); color: var(--brand); }

/* Steps */
.steps-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps__num { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--muted); }

/* Features */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-bottom: 104px; }
.feature--rev .feature__media { order: 2; }
.feature__media.frame img { width: 100%; }
.feature__text h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; }
.feature__text > p { margin-bottom: 24px; font-size: 1.05rem; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; background: var(--bg-muted); border: 1px solid var(--line); border-radius: 26px; max-width: 470px; justify-self: center; }
.phones img { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 10 / 19; object-fit: cover; object-position: top; }

.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__img { aspect-ratio: 16 / 10; background: var(--bg-muted); border-bottom: 1px solid var(--line); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card__body { padding: 20px; }
.card__body p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

.also { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; color: var(--muted); }
.also > span:first-child { margin-right: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--bg-muted); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }

/* Dark Morocco band */
.section--dark { background: var(--dark); color: #b4b4bb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .sub { color: #a1a1aa; }
.section--dark .eyebrow { color: #ff6b84; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #363d44; border: 1px solid #363d44; border-radius: 18px; overflow: hidden; }
.tile { padding: 34px 30px; background: var(--dark); }
.tile p { margin-top: 10px; font-size: .97rem; }
.tile__icon { width: 42px; height: 42px; margin-bottom: 22px; border-radius: 11px; display: grid; place-items: center; background: rgba(161, 0, 31, .14); color: #ff6b84; font-size: 1.3rem; font-weight: 700; }
.tile__icon svg, .sector__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sector { padding: 32px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sector:nth-child(3n) { border-right: 0; }
.sector:nth-last-child(-n+3) { border-bottom: 0; }
.sector__icon { width: 42px; height: 42px; margin-bottom: 24px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.sector p { margin-top: 10px; color: var(--muted); font-size: .97rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__help { margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-muted); }
.faq__help p { margin-bottom: 14px; font-size: .95rem; }
.faq__help strong { color: var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; color: var(--ink); font-size: 1.12rem; font-weight: 500; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq__list details p { padding: 0 40px 26px 0; color: var(--muted); }

/* CTA */
.cta { padding: 110px 0; text-align: center; background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(161, 0, 31, .14), transparent 70%), var(--bg-muted); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; }
.cta p { max-width: 560px; margin: 18px auto 0; font-size: 1.1rem; }

/* Footer */
.footer { padding: 56px 0 30px; border-top: 1px solid var(--line); font-size: .93rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer__inner p { margin-top: 10px; color: var(--muted); max-width: 340px; }
.footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--ink); }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Animation 3D du scan */
.scan3d { padding-top: 40px; }
.scan3d__inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.scan3d__steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.scan3d__steps li { display: flex; gap: 16px; padding: 16px 18px; border: 1px solid transparent; border-radius: var(--radius); opacity: .5; transition: opacity .35s, background .35s, border-color .35s, box-shadow .35s; }
.scan3d__steps li.is-active { opacity: 1; background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.scan3d__steps span { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-muted); color: var(--muted); font-weight: 700; font-size: .9rem; transition: background .35s, color .35s; }
.scan3d__steps li.is-active span { background: var(--brand); color: #fff; }
.scan3d__steps p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.scan3d__stage {
  position: relative; height: 560px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 45% at 30% 30%, rgba(161, 0, 31, .10), transparent 70%),
    radial-gradient(ellipse 80% 60% at 60% 90%, #e6e8ec, transparent 70%),
    linear-gradient(180deg, #fbfbfc, #f0f1f4);
}
.scan3d__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s; }
.scan3d__stage.is-ready canvas { opacity: 1; }
.scan3d__fallback { display: none; position: absolute; left: 50%; top: 24px; bottom: 24px; transform: translateX(-50%); height: calc(100% - 48px); width: auto; border-radius: 22px; box-shadow: var(--shadow); }
.scan3d__stage.is-static .scan3d__fallback { display: block; }
.scan3d__stage.is-static .scan3d__card { opacity: 1; transform: none; }
.scan3d__card { position: absolute; left: 22px; bottom: 22px; width: 280px; padding: 16px 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .45s, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.scan3d__card.is-visible { opacity: 1; transform: none; }
.scan3d__ok { display: flex; align-items: center; gap: 8px; color: #067647; font-weight: 700; font-size: .92rem; }
.scan3d__ok i { width: 20px; height: 20px; border-radius: 50%; background: #12b76a; position: relative; flex: none; }
.scan3d__ok i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.scan3d__name { margin-top: 8px; color: var(--ink); font-weight: 700; }
.scan3d__meta { color: var(--muted); font-size: .85rem; }
.scan3d__progress { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.scan3d__progress > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.scan3d__progress b { color: var(--ink); }
.scan3d__bar { height: 6px; margin-top: 7px; border-radius: 6px; background: #eaecf0; overflow: hidden; }
.scan3d__bar i { display: block; height: 100%; width: 14.3%; border-radius: 6px; background: #12b76a; transition: width .6s ease; }


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr 240px; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .header__inner { gap: 16px; }
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .15); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .showcase { grid-template-columns: 1fr; }
  .frame--phone { display: none; }
  .compare, .steps-wrap, .feature, .faq, .scan3d__inner { grid-template-columns: 1fr; gap: 40px; }
  .scan3d__stage { height: 480px; }
  .feature--rev .feature__media { order: 0; }
  .feature { margin-bottom: 80px; }
  .faq__intro { position: static; }
  .grid3, .sectors { grid-template-columns: 1fr 1fr; }
  .sector, .sector:nth-child(3n), .sector:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .sector:nth-child(2n) { border-right: 0; }
  .sector:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 80px 0; }
}
@media (max-width: 700px) {
  .hero__3d { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header__actions .btn { display: none; }
  .hero { padding-top: 40px; }
  .lead { font-size: 1.05rem; }
  .hero__cta .btn { width: 100%; }
  .hero__meta .sep { display: block; height: 0; overflow: hidden; }
  .tabs { margin-top: 40px; }
  .tabs button { padding: 7px 12px; font-size: .88rem; }
  .cards4, .grid3, .sectors { grid-template-columns: 1fr; }
  .scan3d__stage { height: 400px; }
  .scan3d__card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 12px 14px; }
  .scan3d__meta { display: none; }
  .scan3d__progress { margin-top: 8px; padding-top: 8px; }
  .sector, .sector:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .sector:last-child { border-bottom: 0; }
  .compare__card { padding: 26px 22px; }
  .phones { padding: 14px; gap: 12px; }
}

/* Page : application mobile */
.nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.phone { position: relative; margin: 0; padding: 9px; border-radius: 40px; background: #15181c; box-shadow: 0 2px 4px rgba(16, 16, 20, .08), 0 30px 60px -24px rgba(16, 16, 20, .45); }
.phone::before { content: ""; position: absolute; z-index: 2; top: 17px; left: 50%; width: 74px; height: 20px; border-radius: 12px; background: #15181c; transform: translateX(-50%); }
.phone img { width: 100%; aspect-ratio: 1000 / 2100; object-fit: cover; object-position: top; border-radius: 31px; }
.phone figcaption { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--ink); }
.phone-row { display: flex; justify-content: center; align-items: center; gap: 40px; margin: 64px auto 40px; }
.phone-row .phone { width: 250px; }
.phone-row .phone--main { width: 290px; }
.phone-row .phone--side:first-child { transform: rotate(-4deg) translateY(24px); }
.phone-row .phone--side:last-child { transform: rotate(4deg) translateY(24px); }
.phone-row .phone--side figcaption { transform: translateX(-50%) rotate(0); }
.phone-solo { justify-self: center; width: 100%; max-width: 330px; padding: 34px; background: var(--bg-muted); border: 1px solid var(--line); border-radius: 30px; }
.feature__title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 18px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.mode:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mode__icon { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.mode__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.showcase--app { margin: 0 auto 56px; max-width: 1080px; }
.cards4--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .phone-row { gap: 24px; }
  .phone-row .phone { width: 210px; }
  .phone-row .phone--main { width: 245px; }
}
@media (max-width: 900px) {
  .cards4--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .phone-row { gap: 10px; margin-top: 44px; }
  .phone-row .phone { width: 29vw; padding: 5px; border-radius: 22px; }
  .phone-row .phone--main { width: 36vw; }
  .phone-row .phone img { border-radius: 18px; }
  .phone-row .phone::before { top: 10px; width: 36px; height: 10px; }
  .phone-row figcaption { display: none; }
  .phone-row .phone--side:first-child, .phone-row .phone--side:last-child { transform: translateY(16px); }
  .modes, .cards4--3 { grid-template-columns: 1fr; }
  .phone-solo { padding: 20px; max-width: 280px; }
}
.tile__link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.tile__link:hover { text-decoration-color: #fff; }

/* Contact */
.contact { background: radial-gradient(ellipse 60% 70% at 20% 100%, rgba(161, 0, 31, .10), transparent 70%), var(--bg-muted); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__intro h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.035em; }
.contact__intro .sub { margin: 18px 0 28px; }
.contact__mail { margin-top: 28px; color: var(--muted); }
.contact__mail a { color: var(--brand-dark); font-weight: 600; }
.contact__form { display: grid; gap: 16px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: grid; gap: 6px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.contact__form input, .contact__form select, .contact__form textarea { width: 100%; padding: 11px 13px; border: 1px solid #d6d6dc; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.contact__form textarea { resize: vertical; min-height: 110px; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(161, 0, 31, .12); }
.contact__form .btn { justify-self: start; }
.contact__form .btn:disabled { opacity: .6; cursor: wait; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__note { color: var(--muted); font-size: .85rem; }
.contact__status { font-weight: 500; }
.contact__status:empty { display: none; }
.contact__status.is-ok { color: #067647; }
.contact__status.is-error { color: var(--brand-dark); }
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .contact__form { padding: 22px 18px; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__form .btn { width: 100%; }
}
.footer__mail a { color: var(--brand-dark); font-weight: 600; }
.footer__mail a:hover { text-decoration: underline; }
@media (max-width: 1180px) and (min-width: 901px) {
  .header__inner { gap: 22px; }
  .nav { gap: 16px; font-size: .9rem; }
}
@media (max-width: 1000px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .15); font-size: .95rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
