:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-dark: #111c18;
  --ink: #1a1b19;
  --ink-muted: #5a5e59;
  --accent: #e44f2a;
  --accent-2: #1f5a47;
  --accent-3: #f0b140;
  --card: #ffffff;
  --line: #e1d8c8;
  --shadow: 0 28px 70px rgba(15, 15, 15, 0.18);
  --radius: 22px;
}

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

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  background: #0b1110;
  color: #f4f1ea;
}

html {
  scroll-behavior: smooth;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 28, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff3e2;
  padding: 6px;
  box-shadow: 0 12px 24px rgba(15, 15, 15, 0.12);
}

.site-header__text {
  display: grid;
  gap: 4px;
}

.site-header__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f1ea;
  overflow-wrap: break-word;
}

.site-header__subtitle {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b7b5b0;
}

.site-header__nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 14px;
  color: #d5d3cd;
}

.site-header__nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus {
  color: #ffffff;
}

.site-header__nav a:hover::after {
  transform: scaleX(1);
}

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero__carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 12px 0 28px;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  height: 260px;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.carousel-track {
  position: relative;
  width: 0;
  height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  transform-origin: 50% 50%;
  cursor: grab;
  margin: 0 auto;
}

.carousel-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 280px;
  height: 220px;
  transform-style: preserve-3d;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #f4f1ea;
  user-select: none;
  -webkit-user-select: none;
  backface-visibility: visible;
  transition: opacity 0.25s ease, transform 0.5s ease;
  transform-origin: center;
  will-change: transform, opacity;
}

.carousel-track.is-dragging {
  cursor: grabbing;
}

.carousel-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.carousel-card p {
  margin: 0;
  color: rgba(244, 241, 234, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background: #0f1814;
  color: #f4f1ea;
}

.hero__inner {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 100%;
}

.hero__content h1 {
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 700;
  text-align: left;
  overflow-wrap: break-word;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.75);
  margin: 0 0 24px;
  text-align: left;
}

.hero__card {
  background: rgba(255, 255, 255, 0.06);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: static;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: min(520px, 100%);
  margin: 40px auto 0;
}

.hero__card,
.lead-form label,
.lead-form__note {
  color: #f4f1ea;
}

.hero__card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  font-size: 14px;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.lead-form input,
.lead-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f1ea;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(244, 241, 234, 0.6);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(240, 177, 64, 0.6);
  box-shadow: 0 0 0 3px rgba(240, 177, 64, 0.18);
}

.lead-form__note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}

.lead-form .button {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #ff6b3d);
  color: #fff;
  box-shadow: 0 12px 30px rgba(228, 79, 42, 0.35);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 20, 20, 0.18);
}

.section {
  padding: 80px 0;
  background: #0b1110;
}

.section__head {
  display: grid;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 860px;
  text-align: left;
}

.section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0;
  color: #f4f1ea;
  overflow-wrap: break-word;
}

.section p {
  margin: 0;
  color: rgba(244, 241, 234, 0.7);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.grid--split {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.grid--metrics {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid--services article {
  flex: 1 1 260px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.service-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(18, 18, 18, 0.18);
}

.services-accordion {
  display: grid;
  gap: 16px;
}

.services-accordion details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 18px 18px;
  position: relative;
  scroll-margin-top: 110px;
}

.services-accordion summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 22px;
  padding: 18px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.services-accordion summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-3);
  border-radius: 4px 0 0 4px;
}

.services-accordion summary::-webkit-details-marker {
  display: none;
}

.services-accordion summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--accent);
}

.services-accordion details[open] summary::after {
  content: "–";
}

.grid--services article::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.section--dark {
  background: var(--bg-dark);
  color: #f4f1ea;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(240, 177, 64, 0.35), rgba(240, 177, 64, 0));
  pointer-events: none;
}

.section--dark p,
.section--dark li {
  color: #d5d3cd;
}

.list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.55;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.panel {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel h3 {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 16px 0 24px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 40px;
  line-height: 1.5;
  min-height: 30px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 4px 12px rgba(228, 79, 42, 0.35);
}

.metric {
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f1ea;
}

.metric strong {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
  color: #f4f1ea;
}

.footer {
  background: #101614;
  color: #f4f1ea;
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
  text-align: center;
}

.footer__contacts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  justify-items: center;
}

.footer__phone {
  font-size: 20px;
  font-weight: 600;
}

.footer__whatsapp {
  color: #9ee0c4;
}

.footer__meta {
  color: #b7b5b0;
}

.footer__badge {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.footer__badge span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.12em;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  font-size: 14px;
  color: #b7b5b0;
}

.hero__content,
.hero__card,
.section__head,
.grid--metrics,
.footer__inner {
  animation: fadeUp 0.8s ease both;
}

.hero__card {
  animation-delay: 0.1s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-areas:
      "brand lang"
      "nav nav";
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 12px;
    text-align: left;
  }

  .site-header__brand {
    grid-area: brand;
    justify-self: start;
  }

  .lang-toggle {
    grid-area: lang;
    justify-self: end;
  }

  .site-header__nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header__nav::-webkit-scrollbar {
    display: none;
  }

  .site-header__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
  }

  .site-header__nav a::after {
    display: none;
  }

  .site-header__nav a:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 600px) {
  a,
  button,
  summary {
    -webkit-tap-highlight-color: transparent;
  }

  .container {
    width: min(1200px, calc(100% - 32px));
  }

  .site-header__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 4px;
  }

  .site-header__title {
    font-size: 18px;
  }

  .site-header__subtitle {
    font-size: 10px;
  }

  .site-header__inner {
    padding: 12px 0;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero__content h1 {
    font-size: 30px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__card {
    padding: 20px;
    margin-top: 28px;
  }

  .lead-form input,
  .lead-form textarea {
    font-size: 16px;
  }

  .carousel-viewport,
  .carousel-track {
    height: 230px;
  }

  .carousel-card {
    width: 240px;
    height: 200px;
    padding: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .section__head {
    margin-bottom: 28px;
  }

  .section h2 {
    font-size: 26px;
  }

  .services-accordion summary {
    font-size: 18px;
    justify-content: flex-start;
    text-align: left;
    padding: 16px 36px 16px 12px;
  }

  .services-accordion summary::after {
    right: 8px;
    font-size: 24px;
  }

  .services-accordion details {
    padding: 0 14px 14px;
  }

  .metric strong {
    font-size: 24px;
  }

  .footer__phone {
    font-size: 18px;
  }

  .footer__inner {
    text-align: left;
  }

  .footer__contacts {
    justify-items: start;
  }
}
