/* Veloxa - corporate one-pager */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-dark: #0b1220;
  --line: #dde3ea;
  --line-strong: #c5ced8;
  --text: #0b1220;
  --muted: #5c6778;
  --accent: #7a2432;
  --accent-hover: #5c1a25;
  --accent-bright: #e07a88;
  --accent-dim: rgba(122, 36, 50, 0.12);
  --accent-text: #ffffff;
  --highlight-slide-duration: 3s;
  --radius: 3px;
  --radius-ui: 6px;
  --radius-sm: 2px;
  --radius-nav: 16px;
  --radius-section: 10px;
  --container: min(1140px, calc(100% - 3rem));
  --section-y: clamp(4.5rem, 9vw, 6.5rem);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    border-radius 0.3s var(--ease), box-shadow 0.3s var(--ease),
    left 0.3s var(--ease), right 0.3s var(--ease);
}

.header.is-scrolled {
  left: 1rem;
  right: 1rem;
  width: auto;
  background: var(--accent);
  border-bottom-color: transparent;
  border-radius: 0 0 var(--radius-nav) var(--radius-nav);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body.nav-open .header {
  left: 0;
  right: 0;
  width: auto;
  background: var(--bg);
  border-bottom-color: var(--line);
  border-radius: 0;
  box-shadow: none;
}

body.nav-open .header.is-scrolled {
  background: var(--accent);
  border-bottom-color: transparent;
  border-radius: 0 0 var(--radius-nav) var(--radius-nav);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.logo__mark {
  display: block;
  width: 1.75rem;
  height: auto;
  flex-shrink: 0;
  transition: filter 0.25s var(--ease);
}

.logo__text {
  font-family: "Syne", var(--font);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

body:not(.nav-open) .header:not(.is-scrolled) .logo {
  color: var(--accent);
}

.header.is-scrolled .logo,
body.nav-open .header.is-scrolled .logo {
  color: #fff;
}

.header.is-scrolled .logo__mark,
body.nav-open .header.is-scrolled .logo__mark {
  filter: brightness(0) invert(1);
}

.logo:hover {
  color: var(--accent);
}

body:not(.nav-open) .header:not(.is-scrolled) .logo:hover {
  color: var(--accent-hover);
}

.header.is-scrolled .logo:hover,
body.nav-open .header.is-scrolled .logo:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}

body:not(.nav-open) .header:not(.is-scrolled) .nav a:not(.nav__cta) {
  color: rgba(255, 255, 255, 0.82);
}

body:not(.nav-open) .header:not(.is-scrolled) .nav a:not(.nav__cta):hover {
  color: #fff;
}

.header.is-scrolled .nav a:not(.nav__cta),
body.nav-open .header.is-scrolled .nav a:not(.nav__cta) {
  color: rgba(255, 255, 255, 0.86);
}

.nav a:hover,
.header.is-scrolled .nav a:hover,
body.nav-open .header.is-scrolled .nav a:hover {
  color: #fff;
}

body.nav-open .header:not(.is-scrolled) .nav a:not(.nav__cta) {
  color: var(--muted);
}

body.nav-open .header:not(.is-scrolled) .nav a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-ui);
  background: var(--accent);
  color: var(--accent-text) !important;
  font-weight: 600;
}

body:not(.nav-open) .header:not(.is-scrolled) .nav__cta {
  background: #fff;
  color: var(--text) !important;
}

body:not(.nav-open) .header:not(.is-scrolled) .nav__cta:hover {
  background: var(--accent);
  color: var(--accent-text) !important;
}

.header.is-scrolled .nav__cta,
body.nav-open .header.is-scrolled .nav__cta {
  background: #fff;
  color: var(--accent) !important;
}

.header.is-scrolled .nav__cta:hover,
body.nav-open .header.is-scrolled .nav__cta:hover,
.nav__cta:hover {
  background: var(--accent) !important;
  color: var(--accent-text) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

body:not(.nav-open) .header:not(.is-scrolled) .menu-btn span {
  background: #fff;
}

.header.is-scrolled .menu-btn span,
body.nav-open .header.is-scrolled .menu-btn span {
  background: #fff;
}

body.nav-open .menu-btn span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

body.nav-open .menu-btn span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 0.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s;
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/heroimage-opt.jpg");
  background-size: cover;
  background-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(8, 12, 20, 0.72);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.5rem 2rem;
}

.hero__eyebrow {
  position: absolute;
  top: 5.25rem;
  left: 50%;
  z-index: 3;
  margin: 0;
  padding: 0.45rem 0.9rem;
  font-size: clamp(0.4375rem, 2.2vw, 0.625rem);
  font-weight: 600;
  letter-spacing: clamp(0.05em, 0.35vw, 0.14em);
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-ui);
  white-space: nowrap;
  max-width: calc(100vw - 1.5rem);
  transform: translateX(-50%) translateY(12px);
}

.hero__main {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.hero__stage {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
    visibility 0.45s var(--ease);
}

.hero__stage.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero__eyebrow.hero__stage.is-visible {
  transform: translateX(-50%);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 0 1.25rem;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__title-line {
  display: block;
  text-align: center;
}

.hero__title-rotate {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.2rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: #fff;
}

.hero__title-rotate-inner {
  text-align: left;
  white-space: nowrap;
}

.hero__rotate-text {
  display: inline-block;
  min-width: 11ch;
  text-align: left;
  color: var(--accent-bright);
  line-height: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero__rotate-text.slot-text,
.hero__rotate-text .slot-text {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  line-height: inherit;
  font-size: inherit;
  color: var(--accent-bright);
}

.hero__rotate-text .char-slot {
  line-height: 1;
  vertical-align: baseline;
}

.hero__rotate-text .char-face {
  align-items: baseline;
}

.hero__lead {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.hero .btn {
  border-radius: var(--radius-ui);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--block {
  width: 100%;
}

/* Highlights */
.highlights {
  background: var(--bg);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.highlights__wrap {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-right: clamp(0rem, 3vw, 2.5rem);
}

.highlights__intro {
  min-width: 0;
}

.highlights__title {
  margin: 0 0 0.75rem;
  max-width: 24rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

.highlights__text {
  margin: 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.highlights__panel {
  position: relative;
  min-width: 0;
}

.highlights__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 10%, 6% 0, 94% 0, 100% 10%, 100% 100%, 0 100%);
}

.highlights__slides {
  position: relative;
  width: 100%;
  height: clamp(340px, 38vw, 520px);
}

.highlights__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(122, 36, 50, 0.32);
  pointer-events: none;
}

.highlights__slides img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.highlights__slides img.is-active {
  opacity: 1;
  z-index: 1;
}

.highlights__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.highlights__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.highlights__progress-bar.is-animating {
  transform: scaleX(1);
  transition: transform var(--highlight-slide-duration) linear;
}

.highlights__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  right: clamp(-0.5rem, -2vw, -1.75rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transform: translateY(-50%);
}

.highlight-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 9.25rem;
  height: 9.25rem;
  padding: 1rem 0.75rem;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(122, 36, 50, 0.22);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  cursor: default;
}

.highlight-badge.is-visible {
  opacity: 1;
  transform: none;
}

.highlight-badge.is-active {
  background: #a33a4a;
  box-shadow: 0 10px 28px rgba(122, 36, 50, 0.32);
}

.highlight-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
}

.highlight-badge__icon svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.highlight-badge__title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.highlight-badge__sub {
  display: block;
  font-size: 0.5625rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 960px) {
  .highlights__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .highlights__panel {
    padding-right: 0;
  }

  .highlights__badges {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 1.25rem;
    gap: 0.5rem;
  }

  .highlight-badge {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    aspect-ratio: 1;
    padding: 0.65rem 0.35rem;
  }

  .highlight-badge__title {
    font-size: 0.5625rem;
  }

  .highlight-badge__sub {
    font-size: 0.5rem;
    line-height: 1.25;
  }

  .highlight-badge__icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

@media (max-width: 520px) {
  .highlights__badges {
    gap: 0.375rem;
  }

  .highlight-badge {
    padding: 0.5rem 0.2rem;
  }

  .highlight-badge__title {
    font-size: 0.5rem;
  }

  .highlight-badge__sub {
    font-size: 0.4375rem;
  }

  .hero__eyebrow {
    top: 4.75rem;
    padding: 0.4rem 0.55rem;
  }
}

/* Sections */
.section {
  padding: var(--section-y) 1.5rem;
  position: relative;
}

.section--curve-top {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.section__head {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto 2.75rem;
}

.section__label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 28rem;
}

.section__sub {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Services */
.services {
  background: var(--bg-alt);
}

.services__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services__list {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 1.5rem 1.375rem 1.625rem;
  background: var(--bg);
  border: none;
  transition: background 0.15s var(--ease);
}

.card:hover {
  background: var(--bg-alt);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.card__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.card__idx {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--line-strong);
}

.card__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Pricing */
.pricing {
  background: var(--bg);
}

.pricing__wrap {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

@media (max-width: 720px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

.price-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: fixed;
}

.price-table thead {
  background: var(--bg-alt);
}

.price-table th,
.price-table td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-table td:last-child {
  font-weight: 500;
  color: var(--text);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover td {
  background: var(--bg-alt);
}

@media (max-width: 640px) {
  .pricing__wrap {
    padding: 1rem;
  }

  .price-table {
    font-size: 0.75rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.5rem 0.45rem;
    vertical-align: top;
  }

  .price-table th:first-child,
  .price-table td:first-child {
    width: 58%;
    word-break: break-word;
    hyphens: auto;
  }

  .price-table th:last-child,
  .price-table td:last-child {
    width: 42%;
    white-space: normal;
    word-break: break-word;
    font-size: 0.6875rem;
    line-height: 1.35;
  }
}

/* Calculator */
.calculator {
  background: var(--bg-alt);
}

.calculator__wrap {
  width: var(--container);
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

.calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.calc__group {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.calc__fields {
  display: grid;
  gap: 0.75rem;
}

.calc__group--storage .calc__fields {
  grid-template-columns: 1fr 1fr;
}

.calc__group--ops .calc__fields--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .calc__group--ops .calc__fields--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.field--span2 {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .calc__group--storage .calc__fields {
    grid-template-columns: 1fr;
  }
}

.calc__group legend {
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0;
  margin-bottom: 1rem;
  color: var(--text);
}

.field {
  display: block;
  min-width: 0;
}

.contact .field,
.contact__form .field {
  margin-bottom: 1rem;
}

.contact .field:last-of-type {
  margin-bottom: 0;
}

.field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.calc .field__label {
  font-size: 0.6875rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.5625rem 0.625rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}

.contact .field input,
.contact .field textarea {
  padding: 0.6875rem 0.75rem;
  font-size: 0.9375rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.calc__result {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

@media (max-width: 900px) {
  .calc__result {
    position: static;
  }
}

.calc__result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.calc__result-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.calc__reset {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.625rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.calc__reset:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.calc__reset:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.calc__total {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.calc__breakdown {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.calc__breakdown li span:last-child {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.calc__note {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--muted);
}

.calc .btn--primary,
.contact .btn--primary {
  background: var(--text);
}

.calc .btn--primary:hover,
.contact .btn--primary:hover {
  background: var(--accent);
}

.section.trust {
  padding: 0;
}

.trust {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-section);
  margin: 0 1rem;
  max-width: calc(var(--container) + 3rem);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.trust__layout {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 280px;
}

.trust__media {
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
  align-self: stretch;
}

.trust__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(122, 36, 50, 0.32);
  pointer-events: none;
}

.trust__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.03);
}

.trust__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: left;
}

.trust__quote {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: #fff;
}

.trust__meta {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .trust {
    margin: 0;
    border-radius: 0;
  }

  .trust__layout {
    grid-template-columns: 1fr;
  }

  .trust__media img {
    min-height: 220px;
    max-height: 280px;
  }
}

/* Location */
.location {
  background: var(--bg);
}

.location__block {
  width: var(--container);
  margin: 0 auto;
}

.location__content {
  min-width: 0;
}

.location__maps-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.location__maps-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.location__map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.location__map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(122, 36, 50, 0.28);
  pointer-events: none;
}

.location__map-frame iframe {
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

@media (max-width: 600px) {
  .location__map-frame iframe {
    height: 260px;
  }
}

/* FAQ */
.faq__list {
  width: var(--container);
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s var(--ease);
}

.faq__item[open] {
  border-color: rgba(122, 36, 50, 0.28);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s var(--ease), background 0.15s var(--ease);
}

.faq__item[open] .faq__question::after {
  content: "−";
  background: var(--accent);
  color: #fff;
}

.faq__answer {
  padding: 0 1.125rem 1.125rem;
}

.faq__answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq__question:hover::after {
  background: rgba(122, 36, 50, 0.18);
}

.faq__item[open] .faq__question:hover::after {
  background: var(--accent-hover);
}

/* Contact */
.contact {
  background: var(--bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  width: var(--container);
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact__list li {
  margin-bottom: 1.5rem;
}

.contact__list li:last-child {
  margin-bottom: 0;
}

.contact__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.contact__list a:hover {
  color: var(--accent);
}

.contact__key {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact__form {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  min-height: 1.25rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.55);
}

.footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  transition: opacity 0.15s;
}

.footer__logo:hover {
  color: #fff;
  opacity: 0.85;
}

.footer__logo-mark {
  display: block;
  width: 1.5rem;
  height: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.footer__logo-text {
  font-family: "Syne", var(--font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer__legal {
  margin: 0;
  font-size: 0.75rem;
}

.footer__top {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__top:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (max-width: 520px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
