/* =========================
   FishmanLab Site CSS v2
   ========================= */
.site-header{
  padding:14px 0;
  background:rgba(0,0,0,0.35);
  border-bottom:1px solid rgba(255,255,255,0.10);
  position:relative;
}
.navbar{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:0.2px;
  text-decoration:none; color:var(--text);
  padding:6px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.brand-mark{
  filter: invert(0.75);
  transition: filter 0.2s ease;
  width:20px;
  height:20px;
  display:block;
  object-fit:contain;
  flex:0 0 20px;
  will-change: filter;
}

.brand:hover .brand-mark{
  filter: invert(0);
}
.brand:hover,.brand:focus-visible{
  color:#000;
  background:var(--link-hover);
  border-color:rgba(255,215,0,0.4);
}
.nav-links{ display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; }
.nav-links a{
  text-decoration:none; color:var(--text); opacity:0.92;
  font-weight:700; padding:8px 10px; border-radius:12px;
  border:1px solid transparent;
}
.nav-links a:hover,.nav-links a:focus-visible{
  color:#000; background:var(--link-hover); border-color:rgba(255,215,0,0.4);
}

.is-navlink{ text-decoration:none; }
.lang-switch{ display:flex; gap:8px; align-items:center; }
.lang-switch a{
  font-weight:700; text-decoration:none; color:var(--text); opacity:0.88;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
}
.lang-switch a[aria-current="page"]{
  background:rgba(255,215,0,0.18);
  border-color:rgba(255,215,0,0.45);
  opacity:1;
}
.lang-switch a:hover,.lang-switch a:focus-visible{
  color:#000; background:var(--link-hover); border-color:rgba(255,215,0,0.35);
}
.hero{ padding:96px 0 74px; }
.hero .hero-title{ margin-bottom:10px; }
.hero .hero-lead{ max-width:900px; margin:0 auto; font-size:1.05rem; color:var(--muted); }
.notice{
  display:inline-block; margin-top:12px; padding:12px 14px;
  border-radius:14px; background:rgba(255,215,0,0.12);
  border:1px solid rgba(255,215,0,0.35);
  color:#FFD700; font-weight:700; max-width:980px;
}
.cta-row{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:10px 14px; border-radius:14px;
  border:2px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.06);
  color:var(--text); font-weight:700;
  text-decoration:none;
  box-shadow:0 10px 18px rgba(0,0,0,0.18);
}
.btn:hover,.btn:focus-visible{ background:var(--link-hover); color:#000; }
.btn--primary{ background:#fff; color:#000; }
.btn--primary:hover,.btn--primary:focus-visible{ background:var(--link-hover); color:#000; }
.service-link{ display:block; color:inherit; text-decoration:none; }
.service-link:hover .card,.service-link:focus-visible .card{
  border-color:rgba(255,215,0,0.55);
  box-shadow:0 22px 55px rgba(0,0,0,0.45);
}
.service-link:focus-visible{ outline:3px solid var(--link-hover); outline-offset:6px; border-radius:22px; }
.service-link:focus-visible .card{ border-color: rgba(255,215,0,0.75); }
.contact-pro{
  max-width:980px; margin:18px auto 8px; border-radius:18px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  overflow:hidden; box-shadow:var(--shadow);
}
.contact-pro__header{ padding:18px 18px 10px; text-align:center; }
.contact-pro__subtitle{ margin:6px 0 0; font-weight:700; color:#FFD700; }
.contact-pro__map iframe{
  width:100%; max-width:940px; height:460px; border:0; display:block;
  margin:22px auto; border-radius:16px; box-shadow:var(--shadow);
}
.contact-pro__info{ padding:14px 18px 20px; text-align:center; }
.contact-pro__address{ color:#fff; margin:8px 0 14px; }
.contact-pro__actions{ text-align:center; line-height:2.0; color:#fff; }
.contact-pro__label{ color:#fff; font-weight:700; }
.contact-pro__link{
  color: var(--link);
  font-weight:700;

  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;

  transition: border-bottom-width .15s ease,
              color .15s ease;
}

.contact-pro__link:hover{
  border-bottom-width: 2px;
  color: var(--link-hover);
}

.contact-pro__link:focus,
.contact-pro__link:focus-visible{
  outline: 3px solid var(--link-hover);
  outline-offset: 3px;

  border-bottom-width: 2px;
  box-shadow: 0 0 0 2px var(--accent, #FFD700);
  border-radius: 4px;
}
.site-footer{
  padding:22px 0 30px;
  border-top:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.25);
}
.site-footer small,.site-footer p{ color:var(--muted2); }
.site-footer a{ color:var(--link); text-decoration:underline; text-underline-offset:3px; }
.site-footer a:hover,
.site-footer a:focus-visible{ color:var(--link-hover); text-decoration:underline; text-underline-offset:3px; }

/* ── Hamburger button (hidden on desktop) ── */
.nav-toggle{
  display:none;
}

/* ── Nav panel (desktop: always visible as flex row) ── */
.nav-panel{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
}
/* override hidden attribute on desktop */
.nav-panel[hidden]{ display:flex; }

@media (max-width:780px){
  .navbar{
    flex-wrap:wrap;
    position:relative;
    padding-right:60px;
  }

  /* Hamburger — всегда в правом углу, независимо от dir */
  .nav-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:44px;
    height:44px;
    padding:8px;
    position:absolute;
    top:50%;
    right:16px;
    transform:translateY(-50%);
    background:transparent;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:10px;
    cursor:pointer;
    min-width:44px;
    min-height:44px;
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible{
    background:rgba(255,215,0,0.12);
    border-color:rgba(255,215,0,0.45);
  }
  .nav-toggle:focus-visible{
    outline:3px solid var(--link-hover);
    outline-offset:2px;
  }
  .nav-toggle__bar{
    display:block;
    width:100%;
    height:2px;
    background:var(--text);
    border-radius:2px;
    transition:transform 0.22s ease, opacity 0.22s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2){
    opacity:0;
    transform:scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  /* Nav panel — фиксируем относительно вьюпорта, не документа */
  .nav-panel[hidden]{ display:none; }
  .nav-panel{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    position:fixed;
    top:var(--header-height, 60px);
    left:0;
    right:0;
    padding:8px 0 12px;
    background:rgba(0,0,0,0.97);
    border-top:1px solid rgba(255,255,255,0.08);
    border-bottom:1px solid rgba(255,255,255,0.08);
    z-index:100;
  }

  /* Nav links — столбик, каждый пункт на всю ширину */
  .nav-links{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    width:100%;
  }
  .nav-links a{
    width:100%;
    padding:12px 16px;
    border-radius:0;
    border:none;
    border-bottom:1px solid rgba(255,255,255,0.05);
    opacity:1;
  }
  .nav-links a:last-child{
    border-bottom:none;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible{
    border-radius:0;
    padding-inline-start:20px;
  }
  .nav-links a[aria-current="page"]{
    color:var(--link-hover);
    background:rgba(255,215,0,0.06);
    border-inline-start:3px solid var(--link-hover);
    padding-inline-start:13px;
  }

  /* Языки — строка под меню, отделена линией */
  .lang-switch{
    width:100%;
    padding:12px 16px 8px;
    border-top:1px solid rgba(255,255,255,0.10);
    gap:8px;
    flex-wrap:nowrap;
    justify-content:flex-start;
  }
  .lang-switch a{
    padding:5px 8px;
    font-size:0.82rem;
  }

  .hero{ padding:82px 0 62px; }
}

/* Privacy page — длинный заголовок, уменьшаем на мобиле */
@media (max-width:780px){
  [data-page="privacy"] h1{
    font-size:clamp(1.4rem, 5vw, 2.1rem);
  }
}

/* Anchor offset for fixed header */
#services, #contacts { scroll-margin-top: 90px; }
/* ===== FishmanLab headings (premium + consistent) ===== */

h1, h2{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  text-wrap:balance;
}

h1{
  max-width:980px;
  margin-top:0;
  margin-bottom:14px;
}

.section h2{
  max-width:980px;
  margin-top:0;
  margin-bottom:18px;
}

/* Subtitles under headings (hero lead etc.) */
.hero-lead{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  max-width:980px;
}

/* Optional: when some page has long titles on mobile */
@media (max-width:640px){
  h1{ margin-bottom:12px; }
  .section h2{ margin-bottom:16px; }
}
.hero .container{
  padding-bottom:40px;
}
.nav-links a:focus-visible,
.lang-switch a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   Background images system
   (moved from PHP inline styles)
   =========================
   Production notes:
   - Desktop uses --bg-desktop
   - Mobile can override with --bg-mobile
   - This avoids repeating background-image rules and makes future
     AVIF/WebP + responsive swaps trivial.
*/

/* Default: use the per-section CSS variable */
.section--bg{ background-image: var(--bg-desktop); }

/* Mobile: allow a lighter file (if you add one later) */
@media (max-width: 768px){
  .section--bg{
    background-image: var(--bg-mobile, var(--bg-desktop));
    background-attachment: scroll;
  }
}

/* If you ever add background-attachment:fixed for a parallax effect,
   keep mobile smooth (iOS/low-end devices). */
@media (prefers-reduced-motion: reduce){
  .section--bg{ background-attachment: scroll; }
}

/* Section backgrounds (responsive + modern formats) */
.bg-parallax-72{ 
  --bg-desktop: image-set(
    url('../images/parallax-72-desktop.7cc5c26c01.avif') type('image/avif'),
    url('../images/parallax-72-desktop.e06a2d77ec.webp') type('image/webp'),
    url('../images/parallax-72-desktop.11a7627a49.jpg') type('image/jpeg')
  );
  --bg-mobile: image-set(
    url('../images/parallax-72-mobile.13d9789be3.avif') type('image/avif'),
    url('../images/parallax-72-mobile.b978b7aecd.webp') type('image/webp'),
    url('../images/parallax-72-mobile.3ea2b34493.jpg') type('image/jpeg')
  );
}
.bg-parallax-5{ 
  --bg-desktop: image-set(
    url('../images/parallax-5-desktop.dd4c79d714.avif') type('image/avif'),
    url('../images/parallax-5-desktop.352da56a0e.webp') type('image/webp'),
    url('../images/parallax-5-desktop.311a58a6e5.jpg') type('image/jpeg')
  );
  --bg-mobile: image-set(
    url('../images/parallax-5-mobile.cf11e6bcfe.avif') type('image/avif'),
    url('../images/parallax-5-mobile.027f2ce026.webp') type('image/webp'),
    url('../images/parallax-5-mobile.4550e4e208.jpg') type('image/jpeg')
  );
}
.bg-parallax-4{ 
  --bg-desktop: image-set(
    url('../images/parallax-4-desktop.8c139e5db2.avif') type('image/avif'),
    url('../images/parallax-4-desktop.369ea54b26.webp') type('image/webp'),
    url('../images/parallax-4-desktop.b3e3db9a25.jpg') type('image/jpeg')
  );
  --bg-mobile: image-set(
    url('../images/parallax-4-mobile.cb73268de7.avif') type('image/avif'),
    url('../images/parallax-4-mobile.0a81e5dad2.webp') type('image/webp'),
    url('../images/parallax-4-mobile.1ec95e2664.jpg') type('image/jpeg')
  );
}
.bg-parallax-2{ 
  --bg-desktop: image-set(
    url('../images/parallax-2-desktop.484e89e698.avif') type('image/avif'),
    url('../images/parallax-2-desktop.56b4e992ed.webp') type('image/webp'),
    url('../images/parallax-2-desktop.ede61ca27a.jpg') type('image/jpeg')
  );
  --bg-mobile: image-set(
    url('../images/parallax-2-mobile.103304f8a2.avif') type('image/avif'),
    url('../images/parallax-2-mobile.31db70f6f0.webp') type('image/webp'),
    url('../images/parallax-2-mobile.2e38b82de6.jpg') type('image/jpeg')
  );
}

/* Background images now use AVIF/WebP/JPEG via image-set().
   If you add new sections, follow the same naming:
   <name>-desktop.(avif|webp|jpg) and <name>-mobile.(avif|webp|jpg)
*/