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

:root {
  --bg-deep: #0a0e1a;
  --bg-mid: #121829;
  --accent: #f0b429;
  --accent-dim: #c4921f;
  --text: #e8ecf4;
  --text-muted: #9aa3b8;
  --card-bg: rgba(18, 24, 41, 0.75);
  --card-border: rgba(240, 180, 41, 0.15);
  --input-bg: rgba(10, 14, 26, 0.6);
  --success: #4ade80;
  --error: #f87171;
  --icon-radio: #38bdf8;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.82);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 1.5rem;
}

.hero--compact {
  padding: 1.25rem 1.25rem 1rem;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__visual {
  width: 140px;
  height: 140px;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .hero__visual {
    width: 112px;
    height: 112px;
  }

  .card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .card__intro {
    width: 100%;
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .card__visual {
    align-self: center;
    width: 80px;
    height: 60px;
    margin-top: 0.15rem;
  }

  .info-box {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .info-box__summary {
    font-size: 0.68rem;
    padding: 0.65rem 0.85rem;
  }

  .info-box__body {
    padding: 0 0.85rem 0.85rem;
  }

  .info-box--collapsible[open] .info-box__body {
    padding-top: 0.65rem;
  }

  .info-box__title {
    font-size: 0.68rem;
  }

  .formula {
    font-size: 0.72rem;
    padding: 0.45rem 0.6rem;
  }
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 0.35rem;
}

.hero__contact {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.hero__contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hero__contact a:hover {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.tabs {
  display: none;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.35rem;
}

.tabs-radio {
  display: block;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.tabs-radio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tabs-radio__grid .radio-pill span {
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.65rem 0.5rem;
}

.tabs__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.65rem;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tabs__btn .icon {
  width: 1.5em;
  height: 1.5em;
  color: var(--icon-radio);
}

.tabs__btn.is-active .icon,
.tabs__btn:hover .icon {
  color: var(--icon-radio);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.icon--title {
  width: 1.25em;
  height: 1.25em;
}

.tabs__btn:hover {
  color: var(--text);
  background: rgba(240, 180, 41, 0.08);
}

.tabs__btn.is-active {
  background: rgba(240, 180, 41, 0.18);
  color: var(--accent);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card__intro {
  flex: 1;
  min-width: 0;
}

.card__header .card__desc {
  margin-bottom: 0;
}

.card__visual {
  flex-shrink: 0;
  margin: 0;
  width: 140px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(240, 180, 41, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.card__visual--transparent {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.info-box {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(10, 14, 26, 0.45);
  border: 1px solid rgba(240, 180, 41, 0.12);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.info-box--collapsible {
  padding: 0;
  overflow: hidden;
}

.info-box__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.info-box__summary::-webkit-details-marker {
  display: none;
}

.info-box__summary::marker {
  content: '';
}

.info-box__summary::after {
  content: '▾';
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.info-box--collapsible[open] .info-box__summary::after {
  transform: rotate(180deg);
}

.info-box__body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid rgba(240, 180, 41, 0.12);
}

.info-box--collapsible[open] .info-box__body {
  padding-top: 0.85rem;
}

.info-box__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0.85rem 0 0.4rem;
}

.info-box__title:first-child {
  margin-top: 0;
}

.info-box p {
  margin: 0;
}

.info-box__list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.info-box__list li {
  margin-bottom: 0.35rem;
}

.info-box__list li:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--text);
  font-weight: 600;
}

.formula {
  font-family: Consolas, 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--accent);
  margin: 0.4rem 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.info-box--formulas .formula {
  margin-top: 0.25rem;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.field label,
.field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field label[data-icon],
.field__label[data-icon] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon--label {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.icon--pill {
  width: 1.45em;
  height: 1.45em;
  flex-shrink: 0;
  color: var(--icon-radio);
}

.radio-pill .icon {
  color: var(--icon-radio);
}

.radio-pill input:checked + span .icon,
.radio-pill:hover span .icon {
  color: var(--icon-radio);
}

.tabs-radio .icon {
  width: 1.45em;
  height: 1.45em;
  color: var(--icon-radio);
}

.tabs-radio .radio-pill input:checked + span .icon,
.tabs-radio .radio-pill:hover span .icon {
  color: var(--icon-radio);
}

.field input:not([type="radio"]),
.field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.field input:not([type="radio"]):focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.radio-pill {
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.radio-pill:hover span {
  border-color: rgba(240, 180, 41, 0.3);
  color: var(--text);
}

.radio-pill input:checked + span {
  background: rgba(240, 180, 41, 0.18);
  border-color: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

.radio-group--multi .radio-pill {
  flex: 1 1 calc(50% - 0.25rem);
}

.radio-group--multi .radio-pill span {
  width: 100%;
  white-space: normal;
}

@media (min-width: 768px) {
  .radio-group--multi .radio-pill {
    flex: 1 1 auto;
  }
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.input-group__unit {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.85rem;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border: none;
  border-radius: 8px;
  color: var(--bg-deep);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240, 180, 41, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
}

.result.is-error {
  border-color: rgba(248, 113, 113, 0.3);
}

.result h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  margin-bottom: 0.75rem;
}

.result.is-error h3 {
  color: var(--error);
}

.result__list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.result__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result__list li:last-child {
  border-bottom: none;
}

.result__list .label {
  color: var(--text-muted);
}

.result__list .value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.result__list .value--highlight {
  color: var(--accent);
  font-size: 1.1rem;
}

.result__note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
}

.footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--accent);
}

/* --- Site navigation --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.site-nav__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-nav__brand:hover {
  opacity: 0.9;
}

.site-nav__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-height: 2rem;
  max-width: min(9rem, 42vw);
  object-fit: contain;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 0.25rem 0.5rem;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(240, 180, 41, 0.08);
}

.site-nav__link.is-active {
  color: var(--accent);
  background: rgba(240, 180, 41, 0.12);
  font-weight: 600;
}

/* --- Home page --- */

.home-hero {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 1.5rem;
}

.home-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero__visual {
  width: 160px;
  height: 160px;
  margin: 0 0 0.75rem;
}

.home-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 0.5rem;
}

.home-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  line-height: 1.65;
}

.home-hero__area {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.container--wide {
  max-width: 960px;
}

.services {
  margin-bottom: 2.5rem;
}

.services__title {
  text-align: center;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.services__lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--icon-radio);
}

.service-card__icon .icon {
  width: 100%;
  height: 100%;
}

.service-card__visual {
  width: 100%;
  height: 120px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: rgba(10, 14, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__visual--icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(240, 180, 41, 0.06) 100%);
}

.service-card__illus {
  width: 64px;
  height: 64px;
  color: var(--icon-radio);
  opacity: 0.85;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.service-card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card--link:hover {
  border-color: rgba(240, 180, 41, 0.45);
  transform: translateY(-2px);
}

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

/* --- Home topic sections (brochure long) --- */

.topic {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem;
}

.topic__visual {
  width: 100%;
  height: 180px;
  margin: 0 0 1.15rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: rgba(10, 14, 26, 0.5);
}

.topic__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic__eyebrow {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.topic h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.topic__intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.topic__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.topic__list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.topic__list strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.topic__list span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.topic__note {
  background: rgba(10, 14, 26, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem 1.1rem;
}

.topic__note h3 {
  font-size: 0.95rem;
  color: var(--icon-radio);
  margin-bottom: 0.4rem;
}

.topic__note p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

.why {
  margin-bottom: 2rem;
}

.why h2 {
  text-align: center;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.why__card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.why__card h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.why__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.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;
}

.home-cta {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-cta p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.home-cta__actions .btn {
  width: auto;
  min-width: 180px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn--outline:hover {
  background: rgba(240, 180, 41, 0.12);
}

/* --- Doc page --- */

.container--doc {
  max-width: 800px;
}

.doc-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.doc-section {
  margin-bottom: 2.5rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-content h2 {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.doc-content h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.5rem 0 0.65rem;
}

.doc-content h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 1.15rem 0 0.5rem;
}

.doc-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.doc-content ul,
.doc-content ol {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem 1.25rem;
  line-height: 1.6;
}

.doc-content li {
  margin-bottom: 0.35rem;
}

.doc-content li ul {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.doc-note {
  background: rgba(240, 180, 41, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1rem;
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.doc-table th,
.doc-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border: 1px solid var(--card-border);
}

.doc-table th {
  background: rgba(240, 180, 41, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.doc-table td {
  color: var(--text-muted);
}

.doc-table tbody tr:nth-child(even) td {
  background: rgba(10, 14, 26, 0.35);
}

/* --- Contact page --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--icon-radio);
  margin-bottom: 0.65rem;
}

.contact-card__icon .icon {
  width: 100%;
  height: 100%;
}

.contact-card__icon--pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
}

.contact-card__icon--pair .icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.contact-card__icon-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-card h2 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card__placeholder {
  font-style: italic;
  opacity: 0.75;
}

.contact-card__cta {
  width: auto;
  margin-top: 0.85rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

/* --- Modal contatti --- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--bg-mid);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal__close:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.modal__title {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.modal__intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal .form__grid {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

.modal textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s;
}

.modal textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: rgba(154, 163, 184, 0.6);
}

.field__req {
  color: var(--accent);
}

.field__opt {
  color: var(--text-muted);
  font-weight: 400;
}

.modal__botcheck {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.modal__status {
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal__status[hidden] {
  display: none;
}

.modal__status--success {
  color: var(--success);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.modal__status--error {
  color: var(--error);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.modal #contact-submit {
  width: 100%;
}

.contact-map__title {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  text-align: center;
}

.contact-map__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  min-height: 280px;
}

.contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.contact-map__frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.contact-map__frame--placeholder p {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .topic {
    padding: 1.75rem 1.5rem;
  }

  .topic__visual {
    height: 220px;
  }

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

  .contact-card--wide {
    grid-column: 1 / -1;
  }

  .doc-content {
    padding: 2rem 1.75rem;
  }
}

@media (min-width: 768px) {
  .home-hero__visual {
    width: 180px;
    height: 180px;
  }

  .topic__visual {
    height: 260px;
  }
}

@media (min-width: 768px) {
  .tabs {
    display: flex;
  }

  .tabs-radio {
    display: none;
  }

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

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

  .btn {
    width: auto;
    min-width: 200px;
  }
}
