:root {
  --bg: #F9F8F6;
  --ink: #333333;
  --dark: #1A3C34;
  --mid: #2C5545;
  --accent: #B34D36;
  --accent-hover: #933C29;
  --line: rgba(26, 60, 52, 0.12);
  --white: #ffffff;
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

button, input, textarea { font: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.rich strong, .rich b, h1 strong, h2 strong, h3 strong, .section-title strong { font-weight: 700; }
.rich em, .rich i { font-style: italic; }
.rich u { text-underline-offset: 3px; }
.rich ul, .rich ol { margin: 8px 0 0; padding-left: 1.2em; }
.rich { overflow-wrap: break-word; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: var(--dark);
  color: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
}

.nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 15px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn:hover { background: var(--accent-hover); }

.btn-sm { padding: 11px 16px; font-size: 14px; }

.section { padding: 96px 0; }
.section-light { background: var(--bg); color: var(--ink); }
.section-dark { background: var(--dark); color: #fff; }
.section-mid { background: var(--mid); color: #fff; }

.section-title {
  margin: 0 0 28px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.section-dark .section-title,
.section-mid .section-title { color: #fff; }

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 18px;
  background: var(--accent);
}

.section-title.compact {
  margin-top: 64px;
  font-size: clamp(28px, 3vw, 40px);
}

.about-copy .prose + .prose { margin-top: 16px; }

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prose { font-size: 17px; line-height: 1.7; max-width: 42em; }
.section-dark .prose, .section-mid .prose { color: rgba(255, 255, 255, 0.88); }

.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero::before {
  width: 46%;
  height: 140%;
  top: -30%;
  right: -6%;
  background: radial-gradient(circle, rgba(179, 77, 54, 0.34), transparent 68%);
  animation: hero-drift 16s ease-in-out infinite;
}

.hero::after {
  width: 38%;
  height: 120%;
  left: -10%;
  bottom: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 70%);
  animation: hero-drift 20s ease-in-out infinite reverse;
}

.hero-grid { position: relative; z-index: 1; }

@keyframes hero-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(28px, 16px, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mark-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.header { animation: fade-in 0.7s ease both; }

.hero-copy .hero-kicker { animation: fade-in 0.65s ease 0.08s both; }

.hero-copy h1,
.hero-copy .hero-lead,
.hero-copy .hero-note,
.hero-copy .btn { animation: rise-in 0.9s ease both; }

.hero-copy h1 { animation-delay: 0.14s; }
.hero-copy .hero-lead { animation-delay: 0.3s; }
.hero-copy .hero-note { animation-delay: 0.44s; }
.hero-copy .btn { animation-delay: 0.58s; }

.portrait-slot.is-hero { animation: rise-in 1.15s ease 0.2s both; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 12px 36px;
  align-items: stretch;
  height: clamp(620px, 52vw, 780px);
  padding: 28px 0 0;
}

.hero-copy {
  align-self: center;
  padding: 0;
}

.hero-kicker {
  margin: 0 0 14px;
  max-width: 28em;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin: 0;
  max-width: 11em;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px 0 20px;
  background: var(--accent);
  transform-origin: left center;
  animation: mark-in 0.7s ease 0.22s both;
}

.hero-lead {
  margin: 0 0 18px;
  max-width: 32em;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.hero-note {
  margin: 0 0 28px;
  max-width: 30em;
  padding-left: 16px;
  border-left: 2px solid rgba(179, 77, 54, 0.75);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.portrait-slot { padding: 0 16px 16px 0; }

.portrait {
  position: relative;
  margin: 0;
}

.portrait::before {
  content: "";
  position: absolute;
  top: 16px;
  right: -16px;
  bottom: -16px;
  left: 16px;
  border: 1px solid var(--accent);
}

.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  background: #eceae6;
}

.portrait-slot.is-hero {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 52px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-slot.is-hero .portrait {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-slot.is-hero .portrait::before { display: none; }

.portrait-slot.is-hero .portrait img {
  display: block;
  width: auto;
  height: calc(clamp(620px, 52vw, 780px) - 52px);
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.task {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
}

.task-num {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.task h3 {
  margin: 12px 0 8px;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
}

.task-label {
  display: inline-flex;
  align-items: center;
  margin: 22px 0 10px;
  padding: 6px 12px;
  color: #fff;
  background: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.task-label--solution { background: var(--accent); }

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: start;
}

#products .split { align-items: center; }

.about-split {
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
}

.about-intro { align-self: center; }

#contact .split {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
}

.headline {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.adv {
  padding: 26px 22px 30px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 2px solid var(--accent);
}

.adv-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #fff;
}

.adv h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}

.adv .rich { color: rgba(255, 255, 255, 0.84); font-size: 15px; line-height: 1.65; }

.sim-list { display: grid; gap: 22px; }

.sim {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 40px 36px;
}

.sim-num {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.sim h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
}

.sim-sub {
  margin: 0 0 22px;
  max-width: 40em;
  font-size: 18px;
}

.sim blockquote {
  margin: 0 0 28px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
}

.sim-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.sim-row dt {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sim-row dd { margin: 0; }

.sim .btn { margin-top: 22px; }

.dev-item {
  position: relative;
  padding-right: 148px;
}

.dev-item + .dev-item {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dev-num {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  margin: 0;
  color: rgba(179, 77, 54, 0.9);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(92px, 8vw, 148px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.dev-item + .dev-item .dev-num { top: 28px; }

.dev-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.fact {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 30px;
  background: linear-gradient(165deg, #fff 0%, #f7f5f1 100%);
  border: 1px solid rgba(26, 60, 52, 0.1);
  box-shadow: 0 18px 44px rgba(26, 60, 52, 0.06);
}

.fact-num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.fact-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: #4d5853;
}

.fact-copy strong {
  display: block;
  margin-bottom: 12px;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .facts { grid-template-columns: 1fr; max-width: 640px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fact {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .fact:hover {
    transform: translateY(-3px);
    border-color: rgba(179, 77, 54, 0.28);
    box-shadow: 0 22px 52px rgba(26, 60, 52, 0.1);
  }
}

.credentials { padding-top: 72px; }

.creds-intro {
  margin: -12px 0 28px;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(51, 51, 51, 0.78);
}

.creds-mosaic {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.creds-mosaic__row--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.creds-mosaic__row--duo .cred-card {
  min-height: clamp(200px, 26vw, 280px);
}

.creds-mosaic__row--rest {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.creds-mosaic__row--rest .cred-card {
  height: clamp(180px, 17vw, 228px);
  min-height: clamp(180px, 17vw, 228px);
  max-height: clamp(180px, 17vw, 228px);
  padding: 8px;
}

.creds-mosaic__row--rest .cred-card--portrait,
.creds-mosaic__row--rest .cred-card--landscape {
  min-height: clamp(180px, 17vw, 228px);
}

.thanks-page {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--header) - 120px);
  padding-top: 56px;
  padding-bottom: 56px;
}

.thanks-page__grid {
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 300px);
  gap: clamp(32px, 5vw, 56px);
}

.thanks-copy {
  align-self: center;
}

.thanks-body {
  max-width: 38em;
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.7;
}

.thanks-body p {
  margin: 0 0 1em;
}

.thanks-body p:last-child {
  margin-bottom: 0;
}

.portrait-slot--thanks {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 280px;
  padding: 0;
}

.portrait-slot--thanks .portrait::before {
  display: none;
}

.portrait-slot--thanks .portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(340px, 38vh);
  margin: 0 auto;
  object-fit: contain;
}

.system-page {
  min-height: calc(100dvh - var(--header) - 100px);
}

.system-page__copy {
  position: relative;
}

.system-page__code {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.12);
  user-select: none;
}

.system-page__kicker {
  margin: -0.4em 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.system-page__title {
  margin-bottom: 16px;
}

.system-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 28px;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav--compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav--compact .btn-sm {
  margin: 0;
}

.cred-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cred-card:hover {
  border-color: rgba(179, 77, 54, 0.35);
  box-shadow: 0 14px 36px rgba(26, 60, 52, 0.08);
}

.cred-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cred-card img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.creds-mosaic__row--duo .cred-card--landscape,
.creds-mosaic__row--duo .cred-card--portrait {
  min-height: clamp(200px, 26vw, 280px);
}

.cred-lightbox[hidden] { display: none; }

.cred-lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 16px;
}

.cred-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 60, 52, 0.88);
}

.cred-lightbox__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.cred-lightbox__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cred-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.cred-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 820px);
  margin: 0 auto;
  object-fit: contain;
}

.cred-lightbox__caption {
  margin: 10px 4px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(51, 51, 51, 0.78);
  text-align: center;
}

.contact-form { margin-top: 8px; }

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-row input {
  width: 100%;
  padding: 12px 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
}

.form-row input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.form-status.ok { border-left: 2px solid #fff; }
.form-status.err { border-left: 2px solid var(--accent); }

.interest-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.interest-note[hidden] { display: none; }

.interest-note button {
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.consent {
  margin: 14px 0 0;
  max-width: 40em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.consent a { color: var(--accent); }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 18px;
  cursor: pointer;
}

.consent-check input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 20px;
  border: 1.5px solid rgba(26, 60, 52, 0.4);
  background: #fff;
  cursor: pointer;
}

.consent-check input:checked {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M4 10.5 8 14.5 16 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.consent-check .consent { margin: 0; }

.contact-open { margin-top: 28px; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer .social { margin-top: 0; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.social-link svg { width: 22px; height: 22px; }

.social-link:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  align-items: start;
  gap: 28px 40px;
  padding: 32px 0 28px;
}

.footer-col--brand .logo {
  font-size: 20px;
  line-height: 1.35;
}

.footer-col--info {
  text-align: left;
  max-width: 360px;
}

.footer-col--info .social {
  margin-top: 14px;
}

.footer-legal,
.footer-mail {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.footer-mail a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-mail a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom__left {
  margin: 0;
}

.footer-bottom__credit {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-bottom__credit:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.products-note {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(26, 60, 52, 0.06);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
}

.footer p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.footer-links--column {
  flex-direction: column;
  align-items: flex-end;
  align-self: start;
  justify-self: end;
  gap: 10px;
  text-align: right;
}

.footer-col--policies .footer-cookie {
  align-self: flex-end;
}

.footer-links a,
.footer-cookie {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: none;
  padding: 0 0 2px;
  font: inherit;
  cursor: pointer;
}

.footer-links a:hover,
.footer-cookie:hover { border-bottom-color: var(--accent); color: #fff; }

.section, .hero { scroll-margin-top: calc(var(--header) + 12px); }

@media (max-width: 1100px) {
  .adv-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header: 64px; }

  body.nav-open { overflow: hidden; }

  .header { z-index: 50; }

  .nav-toggle {
    position: relative;
    z-index: 51;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header) + 16px) 28px 40px;
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
  }

  .nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 55% at 50% 18%, rgba(179, 77, 54, 0.22), transparent 62%),
      radial-gradient(ellipse 60% 40% at 80% 85%, rgba(255, 255, 255, 0.06), transparent 55%);
    pointer-events: none;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a:not(.btn),
  .nav .btn {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      color 0.2s ease,
      border-color 0.2s ease;
  }

  .nav.is-open a:not(.btn),
  .nav.is-open .btn {
    opacity: 1;
    transform: none;
  }

  .nav.is-open a:nth-child(1) { transition-delay: 0.06s; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.1s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.14s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.18s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.22s; }
  .nav.is-open .btn { transition-delay: 0.3s; }

  .nav:not(.is-open) a:not(.btn),
  .nav:not(.is-open) .btn { transition-delay: 0s; }

  .nav a:not(.btn) {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 6.8vw, 34px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.94);
  }

  .nav a:not(.btn):hover { color: #fff; }

  .nav .btn {
    margin-top: 28px;
    padding: 16px 28px;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .hero-grid, .split, #contact .split, .cards, .facts { grid-template-columns: 1fr; }

  .creds-mosaic__row--duo { grid-template-columns: 1fr; }

  .creds-mosaic__row--rest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .creds-mosaic__row--rest .cred-card {
    height: auto;
    min-height: 200px;
    max-height: none;
  }

  .sim-row { grid-template-columns: 1fr; gap: 6px; }

  .section { padding: 64px 0; }

  .hero-grid {
    height: auto;
    padding: 20px 0 0;
    gap: 0;
    align-items: stretch;
  }

  .hero-copy { align-self: auto; padding: 0 0 24px; }

  .portrait-slot.is-hero,
  .portrait-slot.is-hero .portrait { height: auto; display: block; }

  .portrait-slot.is-hero { padding-top: 30px; }

  .portrait-slot.is-hero .portrait img {
    width: auto;
    height: auto;
    max-height: min(420px, 70vw);
    margin: 0 auto;
  }

  .sim { padding: 28px 22px 26px; }

  .wrap { width: min(1120px, calc(100% - 32px)); }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-links--column {
    align-items: flex-start;
    justify-self: start;
    text-align: left;
  }

  .footer-col--policies .footer-cookie {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .adv-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .creds-mosaic__row--rest { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dev-item { padding-right: 78px; }
  .dev-num { font-size: 68px; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav,
  .nav a:not(.btn),
  .nav .btn,
  .nav-toggle span { transition: none; }
  body.nav-open .nav a:not(.btn),
  body.nav-open .nav .btn { opacity: 1; transform: none; }
  .header,
  .hero::before,
  .hero::after,
  .hero-copy .hero-kicker,
  .hero h1::after,
  .hero-copy h1,
  .hero-copy .hero-lead,
  .hero-copy .hero-note,
  .hero-copy .btn,
  .portrait-slot.is-hero { animation: none; }
  .fact { transition: none; }
  .fact:hover { transform: none; box-shadow: 0 18px 44px rgba(26, 60, 52, 0.06); }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.modal-open { overflow: hidden; }

.lead-modal[hidden] { display: none; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 60, 52, 0.72);
}

.lead-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 36px 28px 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.lead-dialog h2 {
  margin: 0 36px 14px 0;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
}

.lead-intro { margin-bottom: 18px; color: var(--ink); }

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lead-dialog .form-row label { color: #5c6560; }

.lead-dialog .form-row input {
  color: var(--ink);
  border-bottom-color: rgba(26, 60, 52, 0.28);
}

.lead-dialog .interest-note,
.lead-dialog .consent { color: var(--ink); }

.lead-dialog .interest-note button { color: var(--accent); }

.lead-dialog .form-status {
  color: var(--ink);
  background: #f3f1ec;
}

.lead-dialog .form-status.ok { border-left-color: var(--dark); }

.cookie-banner[hidden],
.cookie-settings[hidden] { display: none; }

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: rgba(249, 248, 246, 0.98);
  border-top: 1px solid rgba(26, 60, 52, 0.12);
  box-shadow: 0 -12px 40px rgba(26, 60, 52, 0.12);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__title {
  margin: 0 0 6px;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.cookie-banner__text {
  margin: 0;
  max-width: 760px;
  color: #4d5853;
  font-size: 15px;
}

.cookie-banner__text a { color: var(--accent); }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.btn-line {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(26, 60, 52, 0.22);
}

.btn-line:hover { background: #efece7; }

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-settings__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 60, 52, 0.72);
}

.cookie-settings__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 32px 28px 24px;
  background: #fff;
}

.cookie-settings__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #f3f1ec;
  color: var(--dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cookie-settings__title {
  margin: 0 36px 10px 0;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 30px;
}

.cookie-settings__intro { margin: 0 0 20px; color: #4d5853; }

.cookie-settings__list { display: grid; gap: 14px; margin-bottom: 22px; }

.cookie-settings__item {
  padding: 16px 18px;
  border: 1px solid rgba(26, 60, 52, 0.1);
  background: #fff;
}

.cookie-settings__item--locked { background: #f6f4f0; }

.cookie-settings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-settings__item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.cookie-settings__item p { margin: 0; color: #4d5853; font-size: 14px; }

.cookie-toggle { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #c5cec8;
  position: relative;
}

.cookie-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle__ui { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__ui::after { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle__ui { opacity: 0.72; cursor: not-allowed; }

.cookie-settings__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-settings__policy { color: var(--accent); }

.cookie-settings__actions { display: flex; gap: 10px; margin-left: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal {
  padding: 56px 0 80px;
  background: var(--bg);
}

.legal h1 {
  margin: 0 0 8px;
  color: var(--dark);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
}

.legal-date { margin: 0 0 28px; color: #5c6560; }

.legal-content { max-width: 760px; }

.legal-content h2 {
  margin: 1.75em 0 0.75em;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li { margin: 0 0 0.9em; }

.legal-content ul { margin: 0 0 1em; padding-left: 1.2em; }

.legal-content a { color: var(--accent); }

.legal-top {
  background: var(--dark);
  color: #fff;
}

.legal-top .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
}

@media (max-width: 800px) {
  .cookie-banner { padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__title { font-size: 18px; margin-bottom: 4px; }
  .cookie-banner__text { font-size: 14px; line-height: 1.45; }
  .cookie-banner__actions { justify-content: flex-start; }
  .cookie-banner__actions .btn { padding: 9px 12px; font-size: 13px; }
}
