/* ============================================================
   Clínica Miraflor — Estilos principales
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f4f9fb;
  --surface: #ffffff;
  --ink: #102a33;
  --muted: #5b7884;
  --primary: #2898b8;
  --primary-deep: #16708c;
  --soft: #e4f1f6;
  --line: #dcebf1;
  --mint: #7cc4b8;
  --shadow: 0 18px 50px -24px rgba(16, 42, 51, 0.35);
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(40, 152, 184, 0.7);
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 36px -10px rgba(40, 152, 184, 0.75);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.22);
}

/* ── Header ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 249, 251, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--primary), var(--mint));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  box-shadow: 0 8px 18px -8px rgba(40, 152, 184, 0.8);
}

.brand b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.menu {
  display: flex;
  gap: 34px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.menu a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.menu a:hover {
  color: var(--primary);
}

.menu a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

/* ── Hero / Carousel ────────────────────────────────────── */
.hero {
  padding: 24px 0 0;
}

.carousel {
  position: relative;
  height: 620px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background: linear-gradient(135deg, #2898b8, #16708c);
}

.slide.active {
  opacity: 1;
}

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

.slide.img-fallback img {
  display: none;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 30, 38, 0.82) 0%,
    rgba(8, 30, 38, 0.45) 45%,
    rgba(8, 30, 38, 0.05) 100%
  );
}

.slide-body {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  padding: 0 56px;
}

.slide-body .eyebrow {
  color: #9fe0ef;
}

.slide-body h1 {
  color: #fff;
  font-size: 54px;
  margin: 16px 0 18px;
}

.slide-body p {
  color: #dceef3;
  font-size: 18px;
  max-width: 440px;
}

.slide-body .btn {
  margin-top: 30px;
  align-self: flex-start;
}

.car-controls {
  position: absolute;
  z-index: 4;
  right: 32px;
  bottom: 64px;
  display: flex;
  gap: 12px;
}

.car-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  font-size: 20px;
}

.car-btn:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#carousel-prev:hover {
  transform: translateX(-4px) scale(1.1);
}

#carousel-next:hover {
  transform: translateX(4px) scale(1.1);
}

.car-btn:active {
  transform: scale(0.92) !important;
}

.dots {
  position: absolute;
  z-index: 4;
  left: 56px;
  bottom: 72px;
  display: flex;
  gap: 9px;
}

.dot {
  width: 34px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.dot.active {
  background: #fff;
  width: 48px;
}

/* ── Trust strip ────────────────────────────────────────── */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: -46px auto 0;
  position: relative;
  z-index: 6;
  max-width: 1040px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 36px;
  box-shadow: var(--shadow);
}

.trust .item {
  text-align: center;
}

.trust b {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--primary);
}

.trust span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Sections (base) ────────────────────────────────────── */
section {
  padding: 96px 0;
}

.sec-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.sec-head h2 {
  font-size: 42px;
  margin: 14px 0;
}

.sec-head p {
  color: var(--muted);
  font-size: 17px;
}

.sec-head--left {
  text-align: left;
  margin: 0 0 40px;
}

/* ── Services ───────────────────────────────────────────── */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.ico {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.ico svg {
  width: 28px;
  height: 28px;
}

.card .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card .more {
  margin-top: 18px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
}

@media (min-width: 601px) {
  #servicios .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
  }
}

.service-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.service-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.service-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.service-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ── Section backgrounds (alternating) ──────────────────── */
#servicios,
#equipo {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── About ──────────────────────────────────────────────── */
.about {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow);
  background: #fff;
}

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

.about-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-badge b {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--primary);
  line-height: 1;
}

.about-badge span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  max-width: 120px;
}

.about-txt h2 {
  font-size: 40px;
  margin: 14px 0 20px;
}

.about-txt p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 18px;
}

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

.checks li {
  display: flex;
  gap: 12px;
  font-weight: 500;
  font-size: 15.5px;
}

.checks .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
}

/* ── Team ───────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-grid--single {
  grid-template-columns: 480px;
  justify-content: center;
}

.team-grid--single .doc-photo {
  aspect-ratio: 4 / 3;
}

.team-grid--single .doc-photo img {
  object-position: center 15%;
}

.team-grid--single .doc-info {
  padding: 28px;
}

.team-grid--single .doc-info h3 {
  font-size: 24px;
}

.doc {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: 0.3s;
}

.doc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.doc-photo {
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(135deg, #bfe6ef, #7cc4b8);
  position: relative;
}

.doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-info {
  padding: 20px;
}

.doc-info h3 {
  font-size: 20px;
  margin-bottom: 3px;
}

.doc-info .role {
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
}

.doc-info p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 10px;
}

.credentials {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 0;
}

.credentials li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

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

.cred-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.cred-inst {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.cred-year {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Contact block ──────────────────────────────────────── */
.contact-block {
  background: linear-gradient(135deg, #103642, #16708c);
  color: #fff;
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.contact-block-info {
  padding: 60px 56px;
}

.contact-block-info .eyebrow {
  color: #9fe0ef;
}

.contact-block-info h2 {
  color: #fff;
  font-size: 40px;
  margin: 14px 0 18px;
}

.contact-block-info p {
  color: #cfe6ed;
  font-size: 16px;
  max-width: 380px;
}

.contact-channels {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex: none;
}

.channel-item small {
  display: block;
  color: #9fc4cf;
  font-weight: 500;
  font-size: 12.5px;
}

/* ── Contact form ───────────────────────────────────────── */
.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 48px 44px;
}

.contact-form h3 {
  font-size: 25px;
  margin-bottom: 6px;
}

.contact-form > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--bg);
  color: var(--ink);
  transition: 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(40, 152, 184, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ── Location ───────────────────────────────────────────── */
.location {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: 0;
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.map {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  position: relative;
  background: #dceaf0;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 380px;
  filter: grayscale(0.2) contrast(1.02);
}

.loc-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.c-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--mint));
  border-radius: 14px 0 0 14px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-item:hover::before {
  transform: scaleY(1);
}

.c-item:hover {
  border-color: rgba(40, 152, 184, 0.3);
  box-shadow: 0 8px 28px -10px rgba(40, 152, 184, 0.22);
  transform: translateX(4px);
}

.c-item .ci {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.c-item .ci svg {
  width: 20px;
  height: 20px;
}

.c-item:hover .ci {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(40, 152, 184, 0.55);
}

.c-item-text {
  flex: 1;
  min-width: 0;
}

.c-item-text small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 3px;
}

.c-item-text span {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}

.c-arrow {
  opacity: 0;
  transform: translateX(-8px);
  color: var(--primary);
  flex: none;
  display: grid;
  place-items: center;
  transition: opacity 0.25s, transform 0.25s;
}

.c-arrow svg {
  width: 16px;
  height: 16px;
}

.c-item:hover .c-arrow {
  opacity: 1;
  transform: translateX(0);
}

.c-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: none;
}

.c-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.c-action-btn svg {
  width: 17px;
  height: 17px;
}

.c-action-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(40, 152, 184, 0.5);
}

/* ── Hours block ─────────────────────────────────────────── */
.hours {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  background: linear-gradient(160deg, #fff, var(--soft));
}

.hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hours-head .ht {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

.hours-head .ht svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0e7d5e;
  background: rgba(124, 196, 184, 0.18);
  border: 1px solid rgba(124, 196, 184, 0.45);
  padding: 6px 13px;
  border-radius: 100px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a37a;
  box-shadow: 0 0 0 0 rgba(22, 163, 122, 0.5);
  animation: pulse-live 2s infinite;
  flex: none;
}

@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0   rgba(22, 163, 122, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(22, 163, 122, 0); }
  100% { box-shadow: 0 0 0 0   rgba(22, 163, 122, 0); }
}

.open-pill.is-closed {
  color: #9a5b2c;
  background: rgba(214, 138, 84, 0.16);
  border-color: rgba(214, 138, 84, 0.4);
}

.open-pill.is-closed .dot-live {
  background: #c9772f;
  animation: none;
  box-shadow: none;
}

.hours .hr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  font-size: 15px;
  border-radius: 11px;
  transition: 0.2s;
}

.hours .hr .day {
  color: var(--muted);
  font-weight: 500;
  flex: none;
}

.hours .hr .times {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hours .hr .times b {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.1;
}

.hours .hr .cerrado {
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.hours .hr.today {
  background: #fff;
  box-shadow: 0 4px 16px -8px rgba(16, 42, 51, 0.32);
}

.hours .hr.today .day {
  color: var(--ink);
  font-weight: 700;
}

.hours .hr.today .times b {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  margin-top: 90px;
  background: #0d2a33;
  color: #cfe2e8;
  padding: 64px 0 30px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-top .brand b {
  color: #fff;
}

.foot-top .brand span {
  color: #7fa6b0;
}

.foot-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fa6b0;
  margin-bottom: 18px;
  font-weight: 700;
}

.foot-col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: #cfe2e8;
  transition: 0.2s;
}

.foot-col a:hover {
  color: #fff;
}

.foot-intro p {
  color: #9fbcc4;
  font-size: 14.5px;
  margin-top: 16px;
  max-width: 280px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.socials a:hover {
  background: var(--primary);
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #7fa6b0;
}

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: var(--soft);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav overlay ──────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(16, 42, 51, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(300px, 82vw);
  background: var(--surface);
  padding: 88px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.mobile-nav-close:hover {
  background: var(--line);
  transform: rotate(90deg);
}

.mobile-nav-panel a {
  font-size: 17px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-panel a:last-child {
  border-bottom: none;
}

.mobile-nav-panel a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-nav-panel .btn {
  margin-top: 18px;
  justify-content: center;
  border-bottom: none;
  padding-left: 26px;
}

.mobile-nav-panel .btn:hover {
  padding-left: 26px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .menu,
  .nav-phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -36px;
    padding: 24px 24px;
  }

  .grid3,
  .grid2,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-block,
  .loc-grid,
  .foot-top {
    grid-template-columns: 1fr;
  }

  .team-grid--single {
    grid-template-columns: 1fr;
  }

  .slide-body h1 {
    font-size: 40px;
  }

  .slide-body {
    padding: 0 32px;
  }

  section {
    padding: 72px 0;
  }

  .sec-head h2 {
    font-size: 34px;
  }

  .contact-block-info {
    padding: 44px 36px;
  }

  .contact-form {
    padding: 36px 32px;
  }
}

@media (max-width: 600px) {
  .grid3,
  .grid2,
  .team-grid,
  .row2 {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    gap: 16px;
    padding: 20px;
  }

  .carousel {
    height: 480px;
    border-radius: 18px;
  }

  .slide-body h1 {
    font-size: 28px;
  }

  .slide-body p {
    font-size: 15px;
  }

  .slide-body {
    padding: 0 22px;
    bottom: 80px;
  }

  .car-controls {
    right: 18px;
  }

  .dots {
    left: 22px;
  }

  .sec-head h2 {
    font-size: 28px;
  }

  section {
    padding: 56px 0;
  }

  .about-txt h2 {
    font-size: 28px;
  }

  .contact-block-info {
    padding: 36px 24px;
  }

  .contact-block-info h2 {
    font-size: 28px;
  }

  .contact-form {
    padding: 28px 24px;
  }

  .foot-top {
    gap: 28px;
  }

  .foot-bot {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero {
    padding: 16px 0 0;
  }

  .wrap {
    padding: 0 18px;
  }
}
