:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --surface: #FFFFFF;
  --text: #191A1C;
  --text-muted: #56565C;
  --text-subtle: #63666B;
  --line: #EAECEF;
  --line-strong: #DDE0E4;
  --accent: #3A4557;
  --accent-hover: #2C3543;
  --accent-contrast: #FFFFFF;
  --tint: #F3EDE6;
  --tint-text: #4E2B32;
  --error: #B91C23;
  --shadow: 0 12px 32px rgba(25, 26, 28, 0.08);
  --shadow-soft: 0 2px 8px rgba(25, 26, 28, 0.06);
  --font-title: "Cormorant", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --header-height: 4.5rem;
  --radius: 8px;
  --radius-lg: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F0F10;
    --bg-soft: #161618;
    --surface: #1C1C1F;
    --text: #EAEAEE;
    --text-muted: #A9A9B0;
    --text-subtle: #9A9CA3;
    --line: #262629;
    --line-strong: #3A3A3F;
    --accent: #C5AE9E;
    --accent-hover: #D8C8BC;
    --accent-contrast: #191A1C;
    --tint: #2B2326;
    --tint-text: #D8C8BC;
    --error: #F2585F;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F10;
  --bg-soft: #161618;
  --surface: #1C1C1F;
  --text: #EAEAEE;
  --text-muted: #A9A9B0;
  --text-subtle: #9A9CA3;
  --line: #262629;
  --line-strong: #3A3A3F;
  --accent: #C5AE9E;
  --accent-hover: #D8C8BC;
  --accent-contrast: #191A1C;
  --tint: #2B2326;
  --tint-text: #D8C8BC;
  --error: #F2585F;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 0.5rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.site-logo {
  margin-right: auto;
}

.site-logo img,
.site-footer img {
  height: 36px;
  width: auto;
}

.logo-dark {
  display: none;
}

:root[data-theme="dark"] .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light {
    display: none;
  }

  :root:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}

.site-header nav {
  display: flex;
  gap: 0.25rem;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
}

.site-header nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.site-header .btn {
  min-height: 44px;
  padding-inline: 1.1rem;
  font-size: 0.92rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.hero-band {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--tint);
  color: var(--tint-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.hero h1 span {
  color: var(--accent);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.hero__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero__card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.hero__card-title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
}

.hero__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.tag--tint {
  background: var(--tint);
  color: var(--tint-text);
}

.cards,
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card,
.case {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg-soft);
}

.case {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.25rem 1.75rem;
}

.card__num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.card h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
}

.card p,
.case p {
  color: var(--text-muted);
}

.card__link,
.case a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
}

.card__link:hover,
.case a:hover,
.site-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.card__link {
  margin-top: auto;
}

.case img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.case h3 {
  font-size: 1.6rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.steps strong {
  font-size: 1.3rem;
  font-weight: 700;
}

.steps span {
  color: var(--text-muted);
}

.contact-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact__intro p {
  color: var(--text-muted);
  max-width: 28rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field--hp {
  position: absolute;
  left: -9999px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-status[data-kind="error"] {
  color: var(--error);
}

.form-status[data-kind="ok"] {
  color: var(--accent);
  font-weight: 600;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #0B3D22;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.wa-float[hidden] {
  display: none;
}

.site-footer {
  padding-block: 2.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer p:last-child {
  margin-left: auto;
}

@media (max-width: 860px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  [id] {
    scroll-margin-top: 7.5rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding-block: 0.75rem;
  }

  .site-logo {
    margin-right: auto;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin-inline: -0.75rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .card,
  .steps li {
    padding: 1.5rem;
  }

  form {
    padding: 1.25rem;
  }

  .site-footer p:last-child {
    margin-left: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
