/* Bokser Dental Clinic styles.
   Desktop layout is a fixed 980px column; below 1000px the layout adapts. */

/* PT Serif: SIL OFL 1.1, see assets/fonts/pt-serif-OFL.txt */
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-italic-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-700-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-700italic-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/pt-serif-700italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Jost: SIL OFL 1.1, see assets/fonts/jost-OFL.txt */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jost-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #8e0010;
  --red-85: rgba(142, 0, 16, .85);
  --red-80: rgba(142, 0, 16, .8);
  --grey: #f5f5f5;
  --font: "PT Serif", "Times New Roman", Times, serif;
  --font-menu: "Futura", "Jost", "Century Gothic", sans-serif;
  --col: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: #000;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Fixed background with the embroidery borders */
.site-bg {
  position: fixed; inset: 0; z-index: -1;
  background: #fff url("../assets/img/background.webp") center / cover no-repeat;
}

.wrap { width: var(--col); max-width: 100%; margin: 0 auto; position: relative; }

/* ---------- Logo header (home + service pages) ---------- */
.logo-sec { height: 345px; }
.logo-sec .wrap { display: flex; justify-content: center; }
.logo-sec img { width: 600px; height: 345px; object-fit: cover; }

/* ---------- Home ---------- */
.intro { min-height: 368px; }
.intro h1 {
  font: 400 18px/39.2px var(--font);
  text-align: center;
}

.svc-icons { height: 262px; }
.svc-icons .wrap { display: flex; justify-content: space-between; }
.svc-icon { width: 169px; display: flex; flex-direction: column; align-items: center; }
.svc-icon .ico { height: 204px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0; }
.svc-icon .lbl {
  margin-top: -5px;
  font: 400 18px/25.38px var(--font);
  text-align: center;
}
.svc-icon:hover .lbl { color: var(--red); }
.svc-icon img { transition: transform .25s ease; }
.svc-icon:hover img { transform: translateY(-4px); }

.about { min-height: 892px; }
.distinction {
  padding: 64.8px 0 0;
  font: 700 18px/32.4px var(--font);
  color: var(--red);
  text-align: center;
}
.body-text, .body-text p { font: 400 18px/32.4px var(--font); text-align: center; }

.doc-cards { display: flex; justify-content: center; gap: 73px; margin-top: 35px; }
.doc-card {
  position: relative; display: block;
  width: 390px; height: 572px;
  background: #fff;
}
.doc-photo {
  position: absolute; left: 18px; top: 19px;
  width: 354px; height: 443px; object-fit: cover; border-radius: 10px;
}
.card-shape {
  position: absolute; left: 9px; top: 401px; width: 372px; height: 109px;
  fill: var(--red); fill-opacity: .8;
}
.doc-name {
  position: absolute; left: 27px; top: 420px; width: 354px;
  font: 700 25px/normal var(--font); color: #fff;
}
.doc-role { /* intentionally white on white */
  position: absolute; left: 9px; top: 520px; width: 372px;
  font: 700 20px/28px var(--font); color: #fff;
}
.doc-card:hover .card-shape { fill-opacity: 1; }
.sterility { margin-top: 19px; }

.brands { min-height: 324px; padding-top: 45px; }

.videos { position: relative; padding-top: 32px; padding-bottom: 27px; }
.red-band { position: absolute; left: 0; right: 0; top: 0; height: 187px; background: var(--red-85); }
.white-strip { height: 40px; background: rgba(255, 255, 255, .8); }

.map { padding: 9px 0; }
.map iframe { display: block; width: 100%; height: 350px; border: 0; }

.contacts { min-height: 332px; text-align: center; }
.contacts h2 { font-weight: 400; line-height: normal; }
.contacts .city { font: 700 40px/normal var(--font); }
.contacts .note { font: 400 30px/normal var(--font); color: var(--red); }
.contacts h2 { min-height: 149px; }
.contacts .phone { margin-top: 21px; font: 700 30px/54px var(--font); }
.contacts .messengers { display: flex; justify-content: center; }
.contacts .messengers img { width: 45px; height: 45px; }
.contacts .email { margin-top: 27px; font: 400 20px/36px var(--font); }
.contacts a:hover { color: var(--red); }

/* ---------- Carousel (home videos + certificates) ---------- */
.carousel { position: relative; overflow: hidden; width: 100%; }
.carousel-track { display: flex; will-change: transform; }
.carousel-track.anim { transition: transform .6s ease; }
.slide { position: relative; flex: 0 0 auto; overflow: hidden; cursor: pointer; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide video { position: absolute; inset: 0; }
.slide.is-current { cursor: default; }

.carousel--video .slide { width: 844px; height: 475px; margin-right: 10px; }
.carousel--video .slide .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 0; padding: 0; background: none; cursor: pointer; line-height: 0;
}
.play .c { fill: rgba(0, 0, 0, .55); transition: fill .2s; }
.play .t { fill: #fff; }
.slide:hover .play .c { fill: var(--red-80); }
.slide.playing .play { display: none; }

.carousel--certs .slide { width: 407px; height: 575px; margin-right: 23px; }
.carousel--certs .slide img { object-fit: contain; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 75px; height: 75px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: .9; transition: opacity .2s, background .2s;
}
.carousel-btn svg { fill: #fff; }
.carousel-btn.prev { left: 0; }
.carousel-btn.prev svg { transform: scaleX(-1); }
.carousel-btn.next { right: 0; }
.carousel-btn:hover { background: var(--red); opacity: 1; }
@media (hover: hover) {
  .carousel--video .carousel-btn { opacity: 0; }
  .carousel--video:hover .carousel-btn, .carousel--video .carousel-btn:focus-visible { opacity: .9; }
}

/* ---------- Service (price) pages ---------- */
.svc { min-height: calc(100vh - 345px); padding-bottom: 40px; }
.svc-area { min-height: var(--area); }
.price-list { font: 400 22px/29.7px var(--font); }
.price-list .row { display: grid; grid-template-columns: 50px 868px 62px; }
.price-list.wide-price .row { grid-template-columns: 50px 860px 70px; }
.price-list .n { color: var(--red); }
.price-list .t u { text-decoration: underline; text-underline-offset: 2px; }
.price-list .head .t { font-weight: 700; }

.svc-menu { display: flex; gap: 8px; height: 42px; }
.svc-menu a {
  flex: 0 0 var(--w);
  display: flex; align-items: center; justify-content: center;
  font: 400 16px/1 var(--font-menu);
  transition: background .2s, color .2s;
}
.svc-menu a:hover { color: var(--red); }
.svc-menu a.active { background: var(--red); color: #fff; }

.phone-note {
  width: 600px; max-width: 100%; margin: 15px auto 0;
  font: 400 20px/24px var(--font); text-align: center;
}
.phone-note a:hover { color: var(--red); }

/* ---------- Doctor pages ---------- */
.doc-photo-sec { height: 830px; }
.doc-photo-sec .wrap { display: flex; justify-content: center; }
.doc-photo-sec img { width: 600px; height: 799px; object-fit: cover; }

.doc-title { background: rgba(245, 245, 245, .8); min-height: 151px; text-align: center; }
.doc-title h1 { font-weight: 400; line-height: normal; }
.doc-title .name { font: 700 56px/normal var(--font); color: var(--red); }
.doc-title .role { font: 400 48px/normal var(--font); }

.doc-exp { background: var(--red); min-height: 89px; padding-top: 6px; text-align: center; }
.doc-exp h2 { font: 700 56px/normal var(--font); color: #fff; }

.doc-info { display: flow-root; background: var(--grey); padding-bottom: 26px; }
.doc-info p { font: 400 18px/31.5px var(--font); overflow-wrap: anywhere; }
.doc-info .spacer { font: italic 400 25px/43.75px var(--font); color: var(--red); }
.doc-info .cat { font: 700 20px/35px var(--font); }
.doc-info .h { font: 700 20px/35px var(--font); color: var(--red); }
.doc-info .h.tall { line-height: 43.75px; }
.doc-info .b { font-weight: 700; }
.doc-info .gap-before { margin-top: 35px; }
.doc-info .gap-after { margin-bottom: 31.5px; }

.doc-slider { background: rgba(255, 255, 255, .8); padding: 35px 0 43px; }
.doc-nav { padding-top: 40px; padding-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  main, .logo-sec { background: rgba(255, 255, 255, .92); }
  .logo-sec { height: auto; }
  .logo-sec img { width: min(600px, 100%); height: auto; }
  .logo { width: 100%; }
  .logo img { margin: 0 auto; }

  .intro { min-height: 0; padding: 8px 0 24px; }
  .intro h1 { font-size: 17px; line-height: 1.75; }

  .svc-icons { height: auto; padding: 16px 0; }
  .svc-icons .wrap { flex-wrap: wrap; justify-content: center; gap: 20px 8px; }
  .svc-icon { width: calc(33.333% - 8px); min-width: 100px; }
  .svc-icon .ico { height: 120px; }
  .svc-icon img { max-height: 110px; width: auto; }
  .svc-icon .lbl { margin-top: 6px; font-size: 16px; line-height: 1.4; }

  .about { min-height: 0; }
  .distinction { padding-top: 24px; font-size: 17px; line-height: 1.7; }
  .body-text, .body-text p { font-size: 16px; line-height: 1.75; }
  .doc-cards { flex-direction: column; align-items: center; gap: 24px; margin-top: 24px; }
  .doc-card { width: min(390px, 100%); height: auto; aspect-ratio: 390 / 572; }
  .doc-photo { left: 4.6%; top: 3.3%; width: 90.8%; height: 77.4%; }
  .card-shape { left: 2.3%; top: 70.1%; width: 95.4%; height: 19%; }
  .doc-name { left: 6.9%; top: 73.4%; width: 90%; font-size: clamp(18px, 6vw, 25px); }
  .doc-role { display: none; }
  .sterility { margin-top: 24px; padding-bottom: 24px; }
  .brands { padding: 16px 0 24px; min-height: 0; }

  .videos { padding-top: 20px; padding-bottom: 20px; }
  .red-band { height: 45%; }
  .carousel--video .slide { width: 86vw; height: calc(86vw * 475 / 844); margin-right: 8px; }
  .carousel--certs .slide { width: min(70vw, 407px); height: calc(min(70vw, 407px) * 575 / 407); margin-right: 12px; }
  .carousel-btn { width: 44px; height: 44px; opacity: .85; }
  .carousel--video .carousel-btn { opacity: .85; }
  .carousel-btn svg { width: 20px; }

  .map iframe { height: 300px; }
  .contacts { min-height: 0; padding: 24px 0 32px; }
  .contacts h2 { min-height: 0; }
  .contacts .city { font-size: 28px; }
  .contacts .note { font-size: 21px; }
  .contacts .phone { font-size: 24px; line-height: 2; }

  .svc { padding-top: 8px; min-height: 0; }
  .svc-area { min-height: 0; margin-bottom: 24px; }
  .price-list { font-size: 16px; line-height: 1.5; }
  .price-list .row, .price-list.wide-price .row { grid-template-columns: 38px 1fr auto; gap: 0 10px; padding: 3px 0; }
  .price-list .row:not(.gap):not(.head) { border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .price-list .p { text-align: right; white-space: nowrap; }
  .svc-menu { flex-wrap: wrap; height: auto; gap: 6px; }
  .svc-menu a { flex: 1 1 auto; padding: 10px 12px; font-size: 15px; border: 1px solid rgba(142, 0, 16, .25); }
  .phone-note { font-size: 18px; margin-top: 20px; }

  .doc-photo-sec { height: auto; padding: 0 0 16px; }
  .doc-photo-sec img { width: min(600px, 100%); height: auto; }
  .doc-title { min-height: 0; padding: 14px 0; }
  .doc-title .name { font-size: 30px; }
  .doc-title .role { font-size: 22px; }
  .doc-exp { min-height: 0; padding: 12px 0; }
  .doc-exp h2 { font-size: 28px; }
  .doc-info p { font-size: 16px; line-height: 1.7; }
  .doc-info .cat, .doc-info .h { font-size: 18px; }
  .doc-slider { padding: 20px 0; }
}
