:root {
  --ink: #18130e;
  --muted: #6e655b;
  --paper: #fffdf9;
  --ivory: #f8f3ea;
  --ivory-deep: #efe3d1;
  --gold: #b7862f;
  --gold-deep: #8f6520;
  --gold-pale: #e6ca8b;
  --line: rgba(153, 111, 41, .2);
  --dark: #17130f;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(67, 46, 18, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 16px; background: var(--dark); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(153, 111, 41, .14);
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { height: 78px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: .13em; font-weight: 600; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .075em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 27px; margin-left: auto; }
.desktop-nav a { text-decoration: none; color: #4f473e; font-size: 14px; font-weight: 650; }
.desktop-nav a:hover { color: var(--gold-deep); }
.header-cta { margin-left: 4px; }

.button {
  min-height: 50px;
  padding: 14px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .desktop-nav a:focus-visible, .service-link:focus-visible, .hero-address:focus-visible, .map-link:focus-visible {
  outline: 3px solid rgba(183, 134, 47, .45);
  outline-offset: 4px;
}
.button-gold { color: #fff; background: linear-gradient(135deg, var(--gold-deep), #d0a64b); box-shadow: 0 10px 28px rgba(154, 107, 31, .24); }
.button-gold:hover { box-shadow: 0 14px 34px rgba(154, 107, 31, .32); }
.button-light { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .86); }
.button-light:hover { background: #fff; }

.hero { position: relative; min-height: 830px; padding-top: 78px; display: grid; align-items: center; overflow: hidden; background: var(--ivory); }
.hero-photo { position: absolute; inset: 78px 0 0; width: 100%; height: calc(100% - 78px); object-fit: cover; object-position: center center; }
.hero-shade { position: absolute; inset: 78px 0 0; background: linear-gradient(90deg, rgba(248, 243, 234, .97) 0%, rgba(248, 243, 234, .91) 36%, rgba(248, 243, 234, .28) 68%, rgba(20, 16, 12, .06) 100%), linear-gradient(0deg, rgba(18, 14, 10, .25), transparent 35%); }
.hero-inner { position: relative; z-index: 2; padding-block: 82px 72px; }
.hero-card { width: min(625px, 100%); padding: 44px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 34px; background: rgba(255, 252, 246, .76); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.eyebrow { margin: 0 0 18px; color: var(--gold-deep); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; line-height: .99; }
h1 { margin-bottom: 23px; font-size: clamp(50px, 6.6vw, 88px); max-width: 760px; }
h2 { margin-bottom: 0; font-size: clamp(43px, 5.2vw, 70px); }
.hero-lead { margin: 0 0 30px; max-width: 540px; color: #4f473f; font-size: 18px; }
.quick-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
.quick-prices div { padding: 15px 17px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .7); }
.quick-prices span { color: var(--muted); font-size: 13px; }
.quick-prices strong { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-address { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 5px 15px; color: #554b41; font-size: 14px; text-decoration: none; }
.hero-address span { color: var(--gold-deep); font-weight: 750; }

.section { padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 64px; align-items: end; margin-bottom: 52px; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 17px; max-width: 440px; }
.services-section { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 324px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 100% 0%, rgba(223, 193, 130, .24), transparent 42%), linear-gradient(145deg, #fffdf9, #f4eadb); }
.service-card::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 220px; height: 220px; border: 1px solid rgba(183, 134, 47, .18); border-radius: 50%; pointer-events: none; }
.service-diagnostics { grid-column: span 2; background: radial-gradient(circle at 86% 24%, rgba(255, 255, 255, .23), transparent 26%), linear-gradient(135deg, #9b6f26, #d2aa55); color: #fff; }
.service-dark { color: #fff; border-color: rgba(230, 202, 139, .17); background: radial-gradient(circle at 100% 0%, rgba(202, 157, 69, .23), transparent 44%), linear-gradient(145deg, #17130f, #2e2418); }
.service-dark::after, .service-diagnostics::after { border-color: rgba(255, 255, 255, .16); }
.service-number { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, "Times New Roman", serif; font-size: 17px; opacity: .82; }
.service-label { position: relative; z-index: 1; margin: 26px 0 7px; color: var(--gold-deep); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-dark .service-label, .service-diagnostics .service-label { color: var(--gold-pale); }
.service-card h3 { position: relative; z-index: 1; margin-bottom: 12px; max-width: 450px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3vw, 39px); font-weight: 400; line-height: 1.03; letter-spacing: -.025em; }
.service-card > p:not(.service-label) { position: relative; z-index: 1; margin: 0; max-width: 470px; color: var(--muted); }
.service-dark > p:not(.service-label), .service-diagnostics > p:not(.service-label) { color: rgba(255, 255, 255, .72); }
.service-price { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; line-height: 1.05; }
.service-price span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--muted); font-size: 13px; font-weight: 750; }
.service-dark .service-price span { color: rgba(255, 255, 255, .55); }
.diagnostic-prices { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 10px; margin-top: auto; padding-top: 24px; max-width: 590px; }
.diagnostic-prices div { padding: 14px 16px; display: grid; gap: 3px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 16px; background: rgba(255, 255, 255, .1); }
.diagnostic-prices span { color: rgba(255, 255, 255, .7); font-size: 13px; }
.diagnostic-prices strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.service-link { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; width: fit-content; color: var(--gold-deep); font-size: 14px; font-weight: 800; text-decoration: none; }
.service-dark .service-link { color: var(--gold-pale); }
.service-care { grid-column: span 2; }

.advantages { color: #fff; background: var(--dark); }
.advantages-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 68px; align-items: center; }
.advantages-photo-wrap { position: relative; min-height: 675px; overflow: hidden; border: 1px solid rgba(230, 202, 139, .19); border-radius: 38px; }
.advantages-photo-wrap img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.advantages-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 9, 6, .68), transparent 48%); }
.photo-caption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 27px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.photo-caption span { color: var(--gold-pale); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.photo-caption b { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }
.advantages-copy h2 { margin-bottom: 44px; max-width: 590px; }
.advantages .eyebrow { color: var(--gold-pale); }
.advantage-list { border-top: 1px solid rgba(255, 255, 255, .13); }
.advantage-list article { padding: 21px 0; display: grid; grid-template-columns: 38px 1fr; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.advantage-list article > span { color: var(--gold-pale); font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.advantage-list h3 { margin: 0 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; }
.advantage-list p { margin: 0; color: rgba(255, 255, 255, .58); font-size: 14px; }

.clinic-section { background: var(--ivory); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 390px 400px; gap: 15px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 24px; background: #ddd3c4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figure::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(16, 12, 8, .72), transparent); pointer-events: none; }
.gallery figcaption { position: absolute; z-index: 2; left: 21px; bottom: 18px; color: #fff; font-size: 14px; font-weight: 700; }
.gallery-reception { grid-column: span 7; }
.gallery-cabinet-one { grid-column: span 5; }
.gallery-xray { grid-column: span 4; }
.gallery-xray img { object-position: center 56%; }
.gallery-cabinet-two { grid-column: span 8; }

.contact-section { position: relative; background: var(--paper); }
.contact-card { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: stretch; padding: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 40px; background: radial-gradient(circle at 86% 12%, rgba(219, 179, 97, .27), transparent 28%), linear-gradient(135deg, #f7efe3, #fffdf9 68%); box-shadow: var(--shadow); }
.contact-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -150px; bottom: -180px; border: 1px solid rgba(183, 134, 47, .17); border-radius: 50%; }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { max-width: 680px; margin-bottom: 24px; }
.contact-copy > p:not(.eyebrow) { margin: 0 0 30px; max-width: 600px; color: var(--muted); font-size: 17px; }
.contact-details { position: relative; z-index: 1; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid rgba(153, 111, 41, .17); border-radius: 26px; background: rgba(255, 255, 255, .72); font-style: normal; }
.contact-details img { width: 70px; height: 70px; margin-bottom: 22px; border-radius: 20px; border: 1px solid var(--line); }
.contact-details > span { color: var(--gold-deep); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-phone { margin: 9px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; text-decoration: none; }
.contact-details p { margin: 0 0 21px; color: var(--muted); }
.map-link { color: var(--gold-deep); font-size: 14px; font-weight: 800; text-decoration: none; }

footer { padding: 35px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
.footer-inner > p:first-of-type { margin-left: auto; }
.footer-inner p { margin-block: 0; }
.footer-brand img { width: 42px; height: 42px; border-radius: 12px; }
.footer-brand b { font-size: 18px; }
.mobile-actions { display: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { min-height: 780px; }
  .hero-shade { background: linear-gradient(90deg, rgba(248, 243, 234, .95), rgba(248, 243, 234, .64) 70%, rgba(248, 243, 234, .16)); }
  .section { padding: 92px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-diagnostics, .service-care { grid-column: span 2; }
  .advantages-grid { grid-template-columns: 1fr; }
  .advantages-photo-wrap { min-height: 560px; }
  .contact-card { grid-template-columns: 1fr; padding: 48px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { background: rgba(255, 253, 249, .94); }
  .header-inner { height: 66px; }
  .brand img { width: 42px; height: 42px; border-radius: 12px; }
  .brand b { font-size: 18px; }
  .brand small { font-size: 7px; }
  .header-cta { display: none; }
  .hero { min-height: 810px; padding-top: 66px; align-items: end; }
  .hero-photo { inset: 66px 0 0; height: calc(100% - 66px); object-position: 57% center; }
  .hero-shade { inset: 66px 0 0; background: linear-gradient(0deg, rgba(248, 243, 234, .98) 7%, rgba(248, 243, 234, .87) 56%, rgba(248, 243, 234, .08) 100%); }
  .hero-inner { padding: 230px 0 31px; }
  .hero-card { padding: 27px 22px 25px; border-radius: 27px; background: rgba(255, 252, 246, .82); }
  .eyebrow { margin-bottom: 13px; font-size: 11px; letter-spacing: .15em; }
  h1 { margin-bottom: 17px; font-size: clamp(46px, 14vw, 62px); }
  h2 { font-size: clamp(41px, 12vw, 55px); }
  .hero-lead { margin-bottom: 22px; font-size: 16px; }
  .quick-prices { gap: 8px; margin-bottom: 19px; }
  .quick-prices div { padding: 12px; }
  .quick-prices span { font-size: 12px; }
  .quick-prices strong { font-size: 20px; }
  .hero-actions .button { flex: 1 1 180px; }
  .hero-address { margin-top: 18px; }
  .section { padding: 74px 0; }
  .section-heading { margin-bottom: 35px; }
  .section-heading > p { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 11px; }
  .service-card, .service-diagnostics, .service-care { grid-column: auto; min-height: 295px; padding: 23px; border-radius: 23px; }
  .service-label { margin-top: 20px; }
  .service-card h3 { font-size: 31px; }
  .diagnostic-prices { grid-template-columns: 1fr 1fr; }
  .diagnostic-prices div { padding: 11px; }
  .diagnostic-prices span { font-size: 11px; }
  .diagnostic-prices strong { font-size: 20px; }
  .advantages-grid { gap: 48px; }
  .advantages-photo-wrap { min-height: 430px; border-radius: 27px; }
  .advantages-photo-wrap img { object-position: 42% center; }
  .photo-caption { left: 20px; right: 20px; bottom: 18px; display: grid; }
  .photo-caption b { font-size: 19px; }
  .advantages-copy h2 { margin-bottom: 32px; }
  .advantage-list article { padding: 18px 0; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 270px 255px 330px 255px; gap: 10px; }
  .gallery-reception, .gallery-cabinet-one, .gallery-xray, .gallery-cabinet-two { grid-column: auto; }
  .gallery figure { border-radius: 19px; }
  .contact-section { padding-bottom: 100px; }
  .contact-card { width: min(100% - 28px, 1180px); padding: 28px 22px; gap: 32px; border-radius: 28px; }
  .contact-copy > p:not(.eyebrow) { font-size: 16px; }
  .contact-actions .button { flex: 1 1 100%; }
  .contact-details { padding: 24px 20px; border-radius: 21px; }
  .contact-phone { font-size: 29px; }
  footer { padding-bottom: 95px; }
  .footer-inner { display: grid; gap: 13px; }
  .footer-inner > p:first-of-type { margin-left: 0; }
  .mobile-actions { position: fixed; z-index: 110; left: 9px; right: 9px; bottom: max(9px, env(safe-area-inset-bottom)); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255, 253, 249, .92); box-shadow: 0 15px 40px rgba(45, 31, 12, .2); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
  .mobile-actions .button { min-height: 48px; padding: 12px 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
