:root {
  --navy: #082842;
  --ink: #152133;
  --muted: #667789;
  --blue: #0b70a8;
  --pale: #eef8fb;
  --red: #d41f2d;
  --green: #25d366;
  --soft: #f6f9fb;
  --white: #ffffff;
  --line: #dde8ef;
  --shadow: 0 24px 70px rgba(8, 40, 66, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-line {
  background: var(--navy);
  color: #e8f4f8;
  font-size: 14px;
}

.top-line__inner {
  height: 36px;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-line a,
.top-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.navbar__inner {
  position: relative;
  height: 72px;
  max-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.menu a:hover {
  background: var(--pale);
  color: var(--blue);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  direction: ltr;
}

.language-switcher button {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active,
.language-switcher button:hover {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(118deg, rgba(8, 40, 66, .98) 0%, rgba(9, 73, 112, .84) 56%, rgba(8, 40, 66, .16) 100%),
    url("../img/consulting-hero.png") center/cover;
}

.hero::after {
  display: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: calc(80vh - 108px);
  max-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  align-items: center;
  gap: 42px;
  padding: 8px 0 42px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 3px;
  flex: 0 0 36px;
  background: currentColor;
  border-radius: 999px;
}

.hero .section-label {
  color: #dff6ff;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.22;
}

.hero p {
  max-width: 660px;
  margin-bottom: 22px;
  color: #e8f3f7;
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--green);
  color: var(--white);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 22px;
}

.hero__metrics div {
  min-width: 0;
  padding: 14px 15px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
}

.hero__metrics strong,
.hero__metrics span {
  display: block;
}

.hero__metrics strong {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1;
}

.hero__metrics span {
  color: #dcebf1;
  font-size: 13px;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  min-height: 405px;
  display: grid;
  grid-template-rows: 320px auto;
  gap: 12px;
  align-content: start;
  overflow: hidden;
}

.hero-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  box-shadow: var(--shadow);
}

.hero-card--main {
  width: 100%;
  height: 320px;
}

.hero-card--main img {
  object-position: center;
}

.hero-card--small {
  display: none;
}

.hero-card--small img {
  object-position: center;
}

.hero-note {
  position: static;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.hero-note i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pale);
  color: var(--blue);
}

.hero-note span {
  min-width: 0;
  font-weight: 800;
  line-height: 1.35;
}

section {
  padding: 70px 0;
}

.about__grid,
.process__grid,
.faq__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.image-panel {
  overflow: hidden;
  height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--pale);
  box-shadow: var(--shadow);
}

.image-panel img {
  aspect-ratio: 16 / 11;
}

.content-block {
  min-width: 0;
}

.content-block p,
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.feature-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
}

.feature-list i {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.services,
.gallery {
  background: var(--soft);
}

.section-head {
  max-width: 860px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-width: 0;
  min-height: 272px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(8, 40, 66, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 112, 168, .38);
  box-shadow: 0 22px 48px rgba(8, 40, 66, .13);
}

.service-card > i {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--blue);
  font-size: 24px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

.steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-carousel {
  position: relative;
  display: grid;
  align-items: center;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31%);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #d9e8ef;
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-track {
  background: #d9e8ef;
  border-radius: 999px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 999px;
}

.gallery-slide {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  height: 285px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #dfeaf0;
  box-shadow: 0 14px 34px rgba(8, 40, 66, .09);
}

.gallery-slide img {
  transition: transform .28s ease;
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 40, 66, .76));
}

.gallery-slide span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  line-height: 1.25;
}

.gallery-slide:hover img {
  transform: scale(1.04);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(8, 40, 66, .22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease;
}

.gallery-nav:hover {
  background: var(--blue);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav--prev {
  left: -12px;
}

.gallery-nav--next {
  right: -12px;
}

.faq {
  background: var(--navy);
}

.faq h2,
.content-block--dark h2 {
  color: var(--white);
}

.content-block--dark p {
  color: #d7e7ee;
}

.faq .section-label {
  color: #91dcff;
}

.accordion {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.faq-item button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button i {
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}

.faq-answer p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  color: #d7e7ee;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
  padding-bottom: 20px;
}

.faq-item.active button i {
  transform: rotate(180deg);
}

.contact__grid {
  align-items: stretch;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  min-width: 0;
  min-height: 148px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft);
}

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

.contact-card i {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 24px;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  color: var(--navy);
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.social-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: transform .18s ease, background .18s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.map {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--pale);
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.footer {
  padding: 30px 0 108px;
  background: #061a2d;
  color: #dce9f0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  color: #fff;
  line-height: 1.1;
}

.footer-brand small {
  color: #aebfca;
  font-size: 12px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #dce9f0;
  font-size: 13px;
  font-weight: 800;
}

.footer a {
  color: var(--white);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.floating-contact {
  z-index: 9999;
}

.floating-contact__btn {
  position: fixed;
  right: 20px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}

.floating-contact__btn:hover {
  transform: scale(1.1);
}

.floating-contact__btn i {
  font-size: 28px;
}

.floating-contact__btn--phone {
  bottom: 94px;
  background: var(--blue);
}

.floating-contact__btn--whatsapp {
  bottom: 20px;
  background: var(--green);
}

@media (max-width: 1060px) {
  .menu-toggle {
    display: block;
    order: 3;
  }

  .language-switcher {
    order: 2;
    margin-inline-start: auto;
  }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    min-height: 48px;
  }

  .hero__grid,
  .about__grid,
  .process__grid,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
    gap: 28px;
    padding: 10px 0 40px;
  }

  .hero__visual {
    min-height: 382px;
    grid-template-rows: 300px auto;
    padding-bottom: 0;
  }

  .hero-card--main {
    height: 300px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-track {
    grid-auto-columns: minmax(270px, 45%);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 118px;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .top-line__inner {
    height: auto;
    min-height: 48px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 7px 0;
    font-size: 13px;
  }

  .navbar__inner {
    height: 64px;
    gap: 8px;
  }

  .language-switcher {
    gap: 2px;
    padding: 3px;
  }

  .language-switcher button {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .brand {
    max-width: calc(100% - 58px);
    font-size: 17px;
  }

  .brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 30px;
  }

  section {
    padding: 52px 0;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__metrics,
  .service-grid,
  .steps,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 0;
    grid-template-rows: 230px auto;
  }

  .hero-card--main {
    height: 230px;
  }

  .hero-note {
    margin-top: 12px;
  }

  .image-panel img {
    aspect-ratio: auto;
  }

  .image-panel {
    height: 300px;
  }

  .gallery-track {
    grid-auto-columns: minmax(245px, 86%);
    padding-inline: 0;
  }

  .gallery-slide {
    height: 245px;
  }

  .gallery-nav {
    display: none;
  }

  .map,
  .map iframe {
    min-height: 360px;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-contact__btn {
    width: 56px;
    height: 56px;
  }

  .floating-contact__btn--phone {
    bottom: 88px;
  }

  .floating-contact__btn--whatsapp {
    bottom: 20px;
  }

  .floating-contact__btn i {
    font-size: 25px;
  }
}
