@charset "utf-8";
/* ==========================================================================
   nasa.css — Алергоцентр NaSA
   Replaces boilerplate.css (HTML5BP 3.0.2, 2012), style-21.css (Dreamweaver
   fluid grid), animate.min.css and sim-sliders-styles.css.

   Breakpoints are written out literally on purpose: custom properties are
   not valid inside @media in any shipping browser.
       base    < 768px   single column, nav behind a button
       768px             nav becomes a horizontal row
       900px             article / sidebar split 70 / 30
       1232px            handled by max-width on .gridContainer

   The range between 900 and 1232 needs no breakpoint: the card blocks use
   repeat(auto-fit, minmax(...)) and reflow on their own.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --c-accent:      #fca538;  /* brand orange — fills and borders, never text on white */
    --c-accent-dark: #d97f00;
    --c-gold-ink:    #8f6a00;  /* 4.96:1 on white — link colour            */
    --c-sand:        #e6cf9a;  /* nav bar                                   */
    --c-sand-hi:     #d9bd7f;
    --c-surface:     #f8f8f8;  /* sidebar, contacts panel                   */
    --c-page:        #e8e8e8;  /* backdrop outside the container            */
    --c-white:       #fff;
    --c-ink:         #2b2b2b;
    --c-ink-soft:    #4a4a4a;  /* 9.1:1 on white                            */
    --c-on-accent:   #1a1a1a;  /* 8.8:1 on --c-accent                       */
    --c-rule:        rgba(0, 0, 0, .14);

    --wrap: 1232px;
    --gap:  2rem;
    --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
               "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------- base ---- */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--c-page);
    color: var(--c-ink-soft);
    font: 400 1rem/1.6 var(--font-ui);
    overflow-wrap: break-word;
}

img, video, iframe, object, embed { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }

h1, h2, h3 { color: var(--c-ink); line-height: 1.2; }
b, strong  { font-weight: 700; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid var(--c-rule); margin: 1em 0; }

a { color: var(--c-gold-ink); }
/* boilerplate.css set a:visited to #FFFFFF, which made every already-read
   link invisible against the white page. */
a:visited { color: var(--c-gold-ink); }
a:hover, a:focus-visible { color: var(--c-accent-dark); }

:focus-visible { outline: 3px solid var(--c-accent-dark); outline-offset: 2px; }

.visuallyhidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

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

/* ------------------------------------------------------------ shell ------ */

/* .gridContainer stays a plain block. It carries class="clearfix" in the
   markup; if it became a flex container, the old .clearfix ::before/::after
   would have been injected as two phantom flex items. */
.gridContainer {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    background: var(--c-white);
}

/* .fluid was clear:both; width:100%; float:left; display:block. Only the
   block-ification and the full width were ever load-bearing — the actual
   column widths always came from the specific class on the same element.
   Redefining it this way lets all 163 class="fluid ..." attributes stay
   exactly as they are, with the parent now in sole control of layout.
   display:block must stay: class="fluid slide-btn" sits on inline <a>. */
.fluid { display: block; width: 100%; }

.page-main { display: flex; flex-wrap: wrap; align-content: flex-start; }
.page-main > *, .naca-menu > * { flex: 0 0 100%; min-width: 0; }

.naca-menu {
    width: 100%;
    padding: 2% 2% 0;
    background: var(--c-white);
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

/* --------------------------------------------------------- skip link ----- */

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    padding: .75rem 1rem;
    background: var(--c-accent); color: var(--c-on-accent);
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ top bar ---- */

.top-bar-naca {
    width: 100%;
    padding: 1rem 4%;
    background: #f5f5f5;
    border-bottom: 1px solid var(--c-rule);
}

.left-bar-side {
    width: 100%;
    max-width: 48ch;
    margin: 0 auto;
    text-align: center;
    color: var(--c-ink-soft);
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    line-height: 1.35;
}

/* ---------------------------------------------------------------- nav ---- */

.site-nav { width: 100%; background: var(--c-sand); }

.nav-toggle {
    display: flex; align-items: center; gap: .75rem;
    width: 100%; min-height: 52px; padding: 0 1rem;
    border: 0; background: transparent; cursor: pointer;
    font: inherit; font-size: 1.125rem; color: var(--c-on-accent);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block; width: 26px; height: 3px; border-radius: 2px;
    background: currentColor;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after  { top:  8px; }

/* Was display:table with the anchors as table-cells, which could not wrap:
   five items were squeezed into one non-wrapping row at 360px. */
/* The menu is visible by default and only collapses once nasa.js has marked
   the nav as enhanced. If the script fails to load, mobile visitors get a
   plain stacked list instead of a button that cannot be opened. */
.menu { list-style: none; margin: 0; padding: 0; display: block; }
.nav-toggle { display: none; }
.site-nav.js-ready .nav-toggle { display: flex; }
.site-nav.js-ready .menu { display: none; }
.site-nav.js-ready.is-open .menu { display: block; }

.menu a {
    display: block;
    min-height: 48px; line-height: 48px;       /* 48px touch target */
    padding: 0 1rem;
    text-decoration: none;
    color: var(--c-on-accent);
    border-top: 1px solid var(--c-rule);
}
.menu a:hover, .menu a:focus-visible { background: var(--c-sand-hi); }
.menu a[aria-current="page"] {
    font-weight: 700;
    box-shadow: inset 4px 0 0 var(--c-accent);
}

@media (min-width: 768px) {
    .site-nav .nav-toggle, .site-nav.js-ready .nav-toggle { display: none; }
    .site-nav .menu,
    .site-nav.js-ready .menu { display: flex; flex-wrap: wrap; justify-content: center; }
    .site-nav .menu a {
        border-top: 0; min-height: 50px; line-height: 50px;
        padding: 0 clamp(.75rem, 2vw, 2rem);
    }
    .site-nav .menu li + li a { border-left: 1px solid var(--c-rule); }
    .menu a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--c-accent); }
}

/* --------------------------------------------------------------- hero ---- */

.hero-notice { width: 100%; }
.hero-notice-text {
    width: 100%;
    padding: 1.25rem 4% 1.5rem;
    background: var(--c-surface);
}
.hero-notice-text h1 {
    margin: 0 0 .75rem;
    font-size: clamp(1.375rem, 4vw, 1.875rem);
    text-indent: 0;
}
.hero-notice-text p { max-width: 70ch; }
.hero-cta { max-width: none; text-align: center; text-indent: 0; }

/* ----------------------------------------------------------- headings ---- */

.title-block {
    grid-column: 1 / -1;                 /* ignored when the parent is not a grid */
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    font-size: clamp(1.375rem, 4vw, 1.875rem);
    line-height: 1.2;
    color: var(--c-ink);
}
.title-block h1, .title-block h2 { margin: 0; font: inherit; }
.divider { }

.second_header { font-size: 1.25rem; font-weight: 700; color: var(--c-ink); }

/* ------------------------------------------------------------- article --- */

.left-bar-nc  { background: var(--c-white); }
.right-bar-nc { background: var(--c-surface); padding: 4% 0; }

.content-nc {
    width: 100%;
    padding: 1rem 2%;
    max-width: 78ch;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-ink);
}

.text_paper { text-indent: 20px; font-size: 1.25rem; text-align: left; }
.text_paper a { font-size: inherit; text-decoration: underline; }
.text_att   { font-size: 1.25rem; }

@media (min-width: 900px) {
    .page-main > .left-bar-nc,  .naca-menu > .left-bar-nc  { flex: 0 0 70%; }
    .page-main > .right-bar-nc, .naca-menu > .right-bar-nc { flex: 0 0 30%; padding-top: .5%; }
}

/* ------------------------------------------------------- service cards --- */

/* .service-box-1 used to carry width:25% from 481px up, which forced three
   columns even on a 481px tablet, and the sidebar then had to be rescued by
   an id="fullpg-width" repeated six times on one page. The parent now owns
   the layout and the card itself has no width at all. */
.services-naca {
    background: var(--c-white);
    padding: 0 4% 4%;
    /* flex rather than grid: auto-fit keeps collapsed tracks in the sizing,
       so two cards would not centre in a row sized for three. */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--gap);
}
.services-naca > .service-box-1 { flex: 0 1 320px; }
.services-naca > .title-block { flex: 0 0 100%; }
.right-bar-nc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--gap);
    align-content: start;
    padding: 4% 4%;
}
.service-box-1 { width: 100%; }
.box-ph img { display: block; width: 100%; height: auto; }

.title-service {
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: var(--c-accent);
    color: var(--c-on-accent);          /* 8.8:1 */
    font-size: 1.25rem;
    line-height: 1.3;
}
.description-service {
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.35;
}
.description-height { min-height: 0; } /* align-items:start replaces the fake min-height */

/* The call to action was #fca538 text on white: 2.1:1, repeated 12 times on
   the site's main conversion element. Inverting to a filled button keeps the
   brand colour and reaches 8.8:1. */
.slide-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0 1rem;
    min-height: 50px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    background: var(--c-accent);
    color: var(--c-on-accent);
    border: 1px solid var(--c-accent);
}
.slide-btn:hover, .slide-btn:focus-visible {
    background: var(--c-white);
    color: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
}

/* ------------------------------------------------------------ doctors ---- */

.doctors-naca { width: 100%; padding: 0 4% 6%; background: var(--c-surface); }
.slide-11 { width: 100%; }

/* Was a slick carousel fixed at slidesToShow:3 — which left a gap as soon as
   the roster changed, and needed jQuery plus a CDN to show three cards.
   auto-fit gives one column on a phone and as many as fit on a desktop,
   whatever the number of doctors. */
.multiple-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
    gap: var(--gap);
    align-items: start;
}
.doctor-slide { width: 100%; margin: 0; padding: 1rem 0; text-align: center; }
/* replaces hspace="60", which forced a 277px minimum per card */
.doctor-slide img {
    display: block; width: 157px; height: 157px; margin: 0 auto 1rem;
    border-radius: 50%; object-fit: cover;
}
/* rekalova.webp and matvienko.webp carry the gold ring inside the file;
   photos without it get the same ring from CSS instead. */
.doctor-slide img.face-high {
    object-position: center 25%;
    border: 2px solid #c9a24a;
}
.title-dc { font-size: 1.5rem; line-height: 1.15; padding-bottom: 1rem; color: var(--c-ink); }
.descr-dc { font-size: 1.125rem; line-height: 1.4; }

/* ------------------------------------------------------------- why us ---- */

.why-us {
    width: 100%;
    padding: 0 4% 8%;
    background: var(--c-white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem var(--gap);
}
.why-us-box { text-align: center; font-size: 1.125rem; line-height: 1.5; }
.why-us-box img { padding: 10px; }

/* ----------------------------------------------------------- contacts ---- */

.contacts { width: 100%; padding: 4% 4% 8%; background: var(--c-surface); }
.info-contacts { width: 100%; }
.left-contact-col { width: 100%; font-size: 1.125rem; line-height: 1.5; }
.left-contact-col p { max-width: 70ch; }

.map { width: 100%; }
.map iframe { display: block; width: 100%; border: 0; height: clamp(260px, 45vw, 450px); }

/* replaces <center> and the fixed width="480" height="400" */
.route-video { display: block; width: 100%; max-width: 854px; height: auto; margin: 1rem auto; }

/* --------------------------------------------- table of contents (toc) --- */

/* Replaces #fix_nv: a position:fixed, full-viewport-height rail of four
   20x20px empty anchors whose labels only appeared on :hover with
   white-space:nowrap — unreachable on touch, and overflowing the viewport
   on a phone. */
.toc {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border-left: 4px solid var(--c-accent);
}
.toc__title { margin: 0 0 .75rem; font-weight: 700; color: var(--c-ink); }
.toc ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .5rem .75rem;
}
.toc a {
    display: inline-block;
    padding: .55rem 1rem;
    min-height: 44px; line-height: 1.7;      /* 44px touch target */
    border: 1px solid var(--c-accent);
    border-radius: 999px;
    background: var(--c-white);
    color: var(--c-ink);
    text-decoration: none;
    font-size: 1rem;
}
.toc a:hover, .toc a:focus-visible { background: var(--c-accent); color: var(--c-on-accent); }

[id^="b_"] { scroll-margin-top: 1rem; }

/* ------------------------------------------- booking: callout + options --- */

.callout {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: #fff6e6;
    border-left: 4px solid var(--c-accent);
}
.callout p { margin: .5rem 0; text-indent: 0; }

/* .text_paper a sets an underline at higher specificity, so the button
   needs to out-specify it. */
.btn-primary, .text_paper a.btn-primary {
    text-decoration: none;
}
.btn-primary {
    display: inline-block;
    margin-top: .5rem;
    padding: .75rem 1.5rem;
    min-height: 48px;
    line-height: 1.6;
    background: var(--c-accent);
    color: var(--c-on-accent);
    border: 1px solid var(--c-accent);
    font-weight: 700;
    text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--c-white);
    color: var(--c-accent-dark);
    border-color: var(--c-accent-dark);
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0 1.5rem;
}
.option {
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-rule);
}
.option h3 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
    line-height: 1.3;
}
.option-price {
    margin: 0 0 .75rem;
    font-weight: 700;
    color: var(--c-accent-dark);
    text-indent: 0;
}
.option ol { margin: 0; padding-left: 1.25rem; font-size: 1rem; }
.option li { margin-bottom: .4rem; text-indent: 0; }

/* ------------------------------------------------------------- footer ---- */

.site-footer {
    background: var(--c-sand);
    color: var(--c-on-accent);
    padding: 1.5rem 4%;
    text-align: center;
    font-size: 1rem;
}
.site-footer p { margin: .35rem 0; }
.site-footer a { color: var(--c-on-accent); text-decoration: underline; }

/* ------------------------------------------------------------ helpers ---- */

.t-center { text-align: center; }
