:root {
  --blue: #2437b7;
  --blue-dark: #17206d;
  --gold: #d7b129;
  --mint: #d9ebe8;
  --ink: #182033;
  --muted: #657084;
  --surface: #ffffff;
  --line: #dce3ed;
  --soft: #f4f8fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark,
.panel-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.tooth-shape {
  width: 24px;
  height: 29px;
  display: block;
  background: #fff;
  border-radius: 48% 48% 36% 36%;
  clip-path: polygon(12% 0, 50% 12%, 88% 0, 100% 28%, 78% 100%, 53% 58%, 22% 100%, 0 28%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34405a;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  padding: 10px 12px;
}

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

.language-button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-button.active {
  color: #fff;
  background: var(--blue);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 10% 16%, rgba(217, 235, 232, 0.95) 0 74px, transparent 75px),
    radial-gradient(circle at 82% 16%, rgba(217, 235, 232, 0.86) 0 58px, transparent 59px),
    linear-gradient(135deg, #f8fbfd 0%, #eef6f7 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--blue-dark);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 680px;
  color: #3e4a62;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.button.whatsapp {
  color: #fff;
  background: #168a4a;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 28px 60px rgba(23, 32, 109, 0.22);
  min-height: 560px;
  background: var(--blue-dark);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
}

.appointment-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background: rgba(36, 55, 183, 0.94);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(23, 32, 109, 0.22);
}

.appointment-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 11px;
  background: linear-gradient(90deg, var(--gold), #fff, var(--gold));
}

.panel-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 5px solid #fff;
}

.panel-logo .tooth-shape {
  width: 31px;
  height: 37px;
}

.panel-kicker {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-large {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.panel-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: #168a4a;
  font-weight: 800;
}

.appointment-panel p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

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

.service-grid article {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 20px;
}

.service-grid p,
.about p,
.contact-band p,
.section-note,
.booking-copy p,
.case-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price {
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 18px;
}

.trust-item span {
  color: var(--muted);
  line-height: 1.5;
}

.section-note {
  max-width: 520px;
  margin: 0;
}

.results {
  background: #fff;
}

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

.case-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.smile-photo {
  position: relative;
  margin: 0;
  min-height: 156px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.smile-photo img {
  width: 100%;
  height: 100%;
  min-height: 156px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.before-tone img {
  filter: sepia(0.18) saturate(0.82) brightness(0.9);
}

.after-tone img {
  filter: saturate(1.08) brightness(1.12) contrast(1.04);
}

.treatment-photo img {
  object-position: 42% 52%;
}

.crop-teeth img {
  object-position: center 54%;
}

.smile-photo figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 32, 109, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(36, 55, 183, 0.05), rgba(217, 235, 232, 0.55)),
    var(--soft);
}

.booking-copy p {
  max-width: 620px;
  font-size: 18px;
}

.booking-flow {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.booking-flow span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 700;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(24, 32, 51, 0.08);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(36, 55, 183, 0.14);
  border-color: var(--blue);
}

.hidden-field {
  display: none;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #a43737;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.52);
}

.modal-overlay[aria-hidden="false"] {
  display: flex;
}

.success-modal {
  width: min(100%, 460px);
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: #1f8f5f;
  font-size: 32px;
  font-weight: 800;
}

.success-modal h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.success-modal p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 90px);
  background: var(--soft);
}

.about p {
  margin: 0;
  font-size: 18px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(24px, 5vw, 72px);
  padding: clamp(28px, 5vw, 46px);
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
}

.contact-band h2,
.contact-band .eyebrow {
  color: #fff;
}

.contact-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-phone {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 20px;
  font-weight: 800;
}

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

.contact-phone.light {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.whatsapp-contact {
  color: #fff;
  background: #168a4a;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .brand,
[dir="rtl"] .hero-actions,
[dir="rtl"] .contact-actions {
  direction: rtl;
}

[dir="rtl"] .trust-item {
  border-right: 4px solid var(--gold);
  border-left: 0;
}

.phone-large,
.header-call,
.contact-phone,
.price,
.service-grid span,
input[type="tel"],
input[type="date"],
input[type="time"] {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .phone-large,
[dir="rtl"] .header-call,
[dir="rtl"] .contact-phone,
[dir="rtl"] .price,
[dir="rtl"] .service-grid span {
  text-align: left;
}

@media (max-width: 920px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 8px 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark .tooth-shape {
    width: 17px;
    height: 21px;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.05;
  }

  .brand small {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    padding: 2px 0 0;
    font-size: 12px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    padding: 6px 8px;
  }

  .header-call {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .language-switcher {
    width: auto;
    justify-content: flex-end;
    padding: 2px;
    gap: 1px;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

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

  .about,
  .contact-band,
  .booking {
    grid-template-columns: 1fr;
  }

  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .site-header {
    grid-template-columns: minmax(108px, 1fr) auto auto;
  }

  .brand strong {
    font-size: 12px;
  }

  .header-call {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-grid,
  .cases-grid,
  .trust,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button,
  .contact-phone {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
