body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f4;
  color: #2c2c2c;
}

/* =========================
   VARIABLES (объединено)
   ========================= */
:root{
  --topbar-h: 64px;

  --orn-w: 62px;
  --orn-gap: 18px;
  --orn-over: 10px;
  --v-max-w: 600px;
  --v-max-h: 480px;
  --orn-bottom: -72px;
}

/* =========================
   TOP HEADER
   ========================= */
.header-top{
  background:#f9f9f4;
  color:#343c43;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 24px;
  height:var(--topbar-h);
  position:relative;
  z-index:5;
  flex-wrap:nowrap;
}

.signature-block{
  display:flex;
  align-items:center;
  min-width:0;
}

.logo-img {
  height: 145px;
  width: auto;
}

.signature-img {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom:15px;
  margin-left:-25px;
}

.name-logo{
  height:auto;
  max-height:calc(var(--topbar-h) - 8px);
  object-fit:contain;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.25));
  opacity:.98;
  transform:translateY(1px);
}

/* =========================
   ACTIONS (оставляем ПОСЛЕДНЮЮ версию ниже в файле)
   ========================= */
/* (первый .header-actions был переопределён дальше — удалён безопасно) */

.language-switcher{
  display:flex;
  gap:8px;
}

.lang-btn{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  color:#343c43;
  border:1px solid rgba(255,255,255,.25);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lang-btn:hover {
  color: #e0c430;
  border-color: white;
}

.active-lang{
  background:#ffffff;
  color:#3e94ea;
  border-color:#ffffff;
}

.lang-btn:focus-visible, .menu-btn:focus-visible, .cta:focus-visible{
  outline:2px solid #2c333a;
  outline-offset:2px;
}

.site-title{ cursor:pointer; }
.site-title:focus-visible{ outline:2px solid #3e94ea; outline-offset:2px; }

/* =========================
   MENU BUTTON
   ========================= */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #3e94ea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.menu-btn:hover {
  background: #2f7fcc;
}
.menu-icon {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: inline-block;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* =========================
   OFFCANVAS
   ========================= */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(88vw, 360px);
  background: #f9f9f4;
  color: #343c43;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -12px 0 30px rgba(0,0,0,.15);
  z-index: 2100;
  padding: 20px;
}
.offcanvas.open { transform: translateX(0); }

.offcanvas-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.offcanvas-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 46px;
}
.offcanvas-nav a {
  color: #343c43;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.offcanvas-nav a:hover {
  background: #eaeff3;
  color: #3e94ea;
}

/* ФОН ПОД МЕНЮ */
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 2000;
}

/* HOME LINK (оставляем ПОСЛЕДНЮЮ версию — эта была ниже и переопределяла раннюю) */
.home-link {
  text-decoration: none;
  color: inherit;
}
.home-link:hover {
  opacity: 0.8;
  transition: opacity 0.3s;
}

/* если старая горизонтальная .topbar где-то осталась */
.topbar{ display:none; }

/* =========================
   SLIDESHOW
   ========================= */
header {
  position: relative;
  width: 100%;
  height: 88vh;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  color: white;
  background-size: cover;
  background-position: center;
  margin: 0;
  display: flex;
  line-height: 0;
  margin-bottom: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Фокус на лице для каждого слайда */
.slideshow .slide:nth-of-type(1) img { object-position: 50% 50%; }
.slideshow .slide:nth-of-type(2) img { object-position: 50% 15%; }
.slideshow .slide:nth-of-type(3) img { object-position: 50% 30%; }
.slideshow .slide:nth-of-type(4) img { object-position: 50% 30%; }
.slideshow .slide:nth-of-type(5) img { object-position: 50% 50%; }
.slideshow .slide:nth-of-type(6) img { object-position: 50% 30%; }
.slideshow .slide:nth-of-type(7) img { object-position: 50% 50%; }

/* Пагинация */
.slider-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-pagination span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}
.slider-pagination span.active { background-color: rgba(255, 255, 255, 1); }
.slide.empty { display: none; }

.slideshow-watermark {
  position: absolute;
  right: 5px;
  bottom: -190px;
  width: 400px;
  height: auto;
  opacity: 1;
  z-index: 5;
  pointer-events: none;
  filter: none !important;
  mix-blend-mode: normal;
  image-rendering: -webkit-optimize-contrast;
}

header .content{
  position:absolute;
  right:60px;
  bottom:40px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  z-index:3;
}

.hero-badge{
  background:rgba(0,0,0,.25);
  padding:10px 14px;
  border-radius:12px;
  backdrop-filter:saturate(120%) blur(2px);
}

header .overlay {
  position: relative;
  inset:0;
  z-index: 1;
  text-align: center;
}

header::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.25) 97%,
    rgba(0,0,0,.05) 100%
  );
  z-index:1;
}

/* header-actions (ПОСЛЕДНЯЯ версия — оставляем её) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

header h1 {
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* site-title (ПОСЛЕДНЯЯ версия — оставляем её) */
.site-title {
  font-family: 'Karsten', serif;
  font-weight: 300;
  font-style: italic;
  color:#343c43;
  font-size: 38px;
  line-height: 1;
  margin: 0 0 0 25px;
  white-space: nowrap;
}

.signature { display: none !important; }

/* HEADER WITH DARKENED BACKGROUND IMAGE */
.site-header {
  position: relative;
  width: 100%;
  height: 380px;
  background-image: url('images/header-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: brightness(0.8);
  z-index: 1;
}

.header-content { position: relative; z-index: 2; }

.header-title {
  font-family: 'Karsten', serif;
  font-style: italic;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.header-subtitle {
  font-size: 1.3rem;
  margin-top: 20px;
  opacity: 0.9;
}

.main-title {
  font-family: 'Karsten', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 3.5rem;
  color: white;
  margin: 0;
}

header p {
  margin: 0;
  font-size: 1.8rem;
  color: white;
  opacity:0.9;
}

/* общие p (оставляем один блок) */
p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
}

h2 {
  font-family:"Karsten", serif;
  font-weight:700;
  color: #343c43;
  font-size: 2rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  margin: 40px 0 20px 0;
  transition: color 0.3s, border-color 0.3s;
}
h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
h2:hover,
h2 a:hover {
  color: #3e94ea;
  border-color: #3e94ea;
  cursor: pointer;
}

/* container (оставляем один блок; !important не трогаю, чтобы не сломать ПК) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  margin-bottom: 0;
  margin-top: 0 !important;
}
.prev-section { margin-bottom: 0 !important; }

/* ===== SUBPAGE HEADER ===== */
.subpage-header {
  position: relative;
  width: 100%;
  height: 160px;
  background: linear-gradient(rgba(38, 92, 138, 0.55), rgba(38, 92, 138, 0.55)), #2b4f6b;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0;
}

.subpage-title {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  z-index: 5;
  text-align: center;
  margin: 0;
  font-family: 'Karsten', serif;
}

.ornament-left,
.ornament-right {
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  background-image: url('images/kazakh-ornament.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.25;
  z-index: 3;
}
.ornament-left { left: 0; }
.ornament-right { right: 0; transform: scaleX(-1); }

.breadcrumb {
  width: 100%;
  text-align: center;
  padding: 20px 40px;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #d9d9d9;
  background: transparent;
  margin-top:20px;
  position: relative;
  z-index: 5;
  transition: color 0.3s, border-color 0.3s;
}
.breadcrumb a {
  color: #d9d9d9;
  text-decoration: none;
  transition: 0.3s;
}
.breadcrumb:hover,
.breadcrumb a:hover {
  color: #3e94ea;
  border-color: #3e94ea;
  cursor: pointer;
}
.breadcrumb .divider { margin: 0 12px; color: #999; }
.breadcrumb .current-page { color: #ffffff; font-weight: 500; }

/* quote */
.quote-banner {
  position: relative;
  padding: 60px 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(62, 148, 234, 0.12);
  border-top: 1px solid rgba(62, 148, 234, 0.25);
  border-bottom: 1px solid rgba(62, 148, 234, 0.25);
  box-sizing: border-box;
}
.quote-banner blockquote {
  font-family: 'Georgia', serif;
  font-size: 1.9rem;
  font-style: italic;
  color: #343c43;
  margin: 0;
  padding: 0;
}
.quote-banner cite {
  margin-top: 12px;
  font-size: 1.7rem;
  color: #3e94ea;
  opacity: 0.9;
  font-family: 'Segoe UI', sans-serif;
  font-style: normal;
}
.quote-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Работает в современных браузерах */
main.container:has(> .bio-text):has(> .bio-media){
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:36px;
  align-items:start;
}

.bio-video, .bio-grid{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: start;
  gap: 36px;
  margin: 40px 0;
}
.bio-text{ margin: 0; }

.bio-media{
  display:flex;
  min-width:0;
  justify-content:center;
  align-items:center;
  background: transparent !important;
  overflow: visible;
}

.ornament-wrap{ position:relative; display:inline-block; }
.ornament-wrap > video{
  width:100% !important;
  max-width: var(--v-max-w) !important;
  max-height: var(--v-max-h) !important;
  height:auto !important;
  object-fit: contain !important;
  display:block !important;
  background: transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

.ornament-wrap::before,
.ornament-wrap::after{
  content:"";
  position:absolute;
  top: calc(-1 * var(--orn-over));
  bottom: calc(-1 * var(--orn-over));
  width: var(--orn-w);
  background-image: url("images/ornament-vertical.png");
  background-repeat: repeat-y;
  background-size: contain;
  pointer-events: none;
  opacity: 0.8;
}
.ornament-wrap::before{ left: calc(-1 * (var(--orn-w) + var(--orn-gap))); }
.ornament-wrap::after { right: calc(-1 * (var(--orn-w) + var(--orn-gap))); }

/* Видео без карточек/фонов */
.bio-media .video-frame,
.video-frame{
  background: transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
}

.bio-more { margin-top: 22px; }

.bio-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 1.05rem;
  border: 1px solid #596673;
  color: #343c43;
  text-decoration: none;
  border-radius: 18px;
  background: transparent;
  transition: all 0.25s ease;
  position: relative;
  top: 0;
}
.bio-btn:hover {
  background: #82919f;
  color: #fff8f2;
}

/* =========================
   FOOTER
   ========================= */
footer {
  color: #343c43;
  padding: 0;
  margin: 0;
  background-color:#f9f9f4;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 20px 10px;
  gap: 24px 80px;      /* как “по-человечески” */
column-gap: 120px;

}

.footer-links {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.footer-links h3 {
  font-family: 'Karsten', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 10px;
  position: relative;
  color:#343c43;
}
.footer-links h3:after{
  content:'';
  display:block;
  width:100%;
  max-width:700px;
  height:1px;
  background-color: rgba(52,60,67,0.25);
  margin-top:8px;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  color: #343c43;
  font-size: 1.3rem;
  text-decoration: none;
}
.footer-links ul li a:hover { text-decoration: underline; }

/* GALLERY */
.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 300px;
  justify-content: center;
}
.footer-gallery img {
  width: 100px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}
.footer-gallery-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 40px;
}

.full-gallery-link a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 1rem;
  color: #343c43;
  text-decoration: none;
  border: 1px solid #343c43;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.full-gallery-link a:hover {
  background: #f9f9f4;
  color:#6294c6;
}

/* CONTACT + ORDER */
.footer-contact{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
  gap: 22px;                 /* расстояние между телефоном/почтой */
}
.contact-info{
  justify-content: center;
}

.order-btn {
  padding: 10px 20px;
  border: 1px solid #343c43;
  color: #343c43;
  text-decoration: none;
  border-radius: 18px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  background: #82919f;
}
.order-btn:hover {
  background: transparent;
  color: #fff8f2;
}

.copyright {
  margin-top: 30px;
  background-color: #f9f9f4;
  color: #343c43;
  padding: 18px;
  text-align: center;
  font-size: 1.2rem;
  position: relative;
}
.copyright:before{
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  width: 100%;
  height: 1px;
  margin-top:0;
  display:block;
  background-color: rgba(52,60,67,0.25);
  transform: translateX(-50%);
}

/* ===== БИО: жёсткая сетка 50/50 (оставила как у тебя, чтобы ПК точно не сдвинулся) ===== */
#bio-row{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 36px !important;
  align-items: start !important;
}
#bio-row .bio-text{ min-width:0 !important; }
#bio-row .bio-media{
  min-width:0 !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  background: transparent !important;
}
#bio-row .video-frame{
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
}

/* LIGHTBOX ДЛЯ КНИГ: без белого фона и без стрелок */
.lb-outerContainer,
.lb-container{
  background: transparent !important;
}

.lb-image{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* по умолчанию навигация включена */
.lb-nav, .lb-prev, .lb-next { display: block !important; }

/* если открыт лайтбокс книги, выключаем */
body.lb-books .lb-nav,
body.lb-books .lb-prev,
body.lb-books .lb-next{
  display:none !important;
}


/* =========================================================
   ================== MOBILE ONLY (в самом конце) ==========
   ========================================================= */

/* ==================== MOBILE ONLY (<= 768px) ==================== */
@media (max-width: 768px){

  /* текст/контейнер */
  .container{ padding: 22px 16px; }
  h2{ font-size: 1.55rem; margin: 28px 0 16px; }
  p{ font-size: 1.05rem; line-height: 1.65; }

  /* --- FIX: никаких горизонтальных вылетов --- */
  html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  img, video, svg, canvas{
    max-width: 100%;
    height: auto;
  }
  header, .slider, .slides, .slide{
    width: 100%;
    max-width: 100%;
  }

  /* =========================
     TOP HEADER (logo чуть больше, signature ниже)
     ========================= */
  .header-top{
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    padding: 6px 8px !important;     /* меньше боковые поля = больше места лого */
    column-gap: 6px !important;
    height: 64px !important;         
      flex-wrap: nowrap !important;

  }
  .signature-block{
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto !important;   /* пусть лого-блок растёт */
  min-width: 0 !important;
  }

  /* реально заметно больше */
  .header-top .logo-img{
    height: 62px !important;  /* было 150/145 */
    width: auto !important;
      flex: 0 0 auto !important;

  }

  .header-top .signature-img{
    height: 32px !important;  /* было 100/70 */
    width: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;       /* пусть занимает оставшуюся ширину */
    object-fit: contain !important;
    margin: 0 !important;
    margin-left: -8px !important;    /* лёгкое "сближение" */


  }

 /* actions справа */
  .header-actions{ 
    gap: 6px; 
    align-items: center;   /* правая часть не растягивается */
  margin-left: 8px; 
    display:flex !important;    
    gap: 4px !important;
    justify-self:end !important;
    flex: 0 0 auto !important;}
  .language-switcher{ gap: 4px; }
.lang-btn{
    padding: 2px 6px;
    font-size: .68rem;
  line-height: 1 !important;
    border-radius: 999px !important;
    min-width: auto !important;

  }

  .menu-btn{
    padding: 3px 8px !important;
    font-size: .70rem !important;
    line-height: 1 !important;
    gap: 5px !important;
    border-radius: 999px !important;
  }
  
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after{
    width: 12px;
    height: 2px !important;
  }
  .menu-icon::before{ top: -5px !important; }
  .menu-icon::after { top:  5px !important; }
  /* =========================
     SLIDESHOW (оставляем как было у тебя)
     ========================= */
  header{
    height: 62vh;
    min-height: 410px;
    overflow: hidden;
  }

  /* важно: чтобы фотки не давали “пустых квадратов” */
  .slider, .slides, .slide{ height: 100%; }
  .slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;      /* заполняет блок */
    object-position: center;
    display: block;
  }

  header .content{
    right: 14px;
    left: 14px;
    bottom: 16px;
  }
  .main-title{ font-size: 2.2rem; }
  header p{ font-size: 1.15rem; }

  /* watermark */
/* === MOBILE: watermark lower + more to the right === */
.slideshow-watermark{
  width: 190px;     /* чуть компактнее */
  right: -10px;      /* правее (можно -10 если хочешь ещё) */
  bottom: -75px;    /* ниже (можно -55 если прям “вниз”) */
}



  /* =========================
     BIO: в столбик + ВКЛЮЧИТЬ ОРНАМЕНТЫ ВОКРУГ ВИДЕО
     ========================= */
  #bio-row,
  .bio-video,
  .bio-grid{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin: 22px 0;
  }
  #bio-row .bio-media{ order: 1 !important; }
  #bio-row .bio-text{ order: 2 !important;   text-align: center; }


#bio-row .bio-text h2{
  text-align: center;
}

#bio-row .bio-text p{
  text-align: center;
}

#bio-row .bio-more{
  text-align: center;
}

#bio-row .bio-btn{
  display: inline-flex;
  justify-content: center;
  margin: 12px auto 0;
}

  /* ВАЖНО: на мобилке орнамент возвращаем (ты просил) */
  .ornament-wrap{
    position: relative;
    display: inline-block;
    overflow: visible;
    padding: 0 46px; /* место под ленты */
  }

  .ornament-wrap::before,
  .ornament-wrap::after{
    content:"";
    position:absolute;
    top: -10px;
    bottom: -10px;
    width: 34px; /* уже чем на ПК, но заметно */
    background-image: url("images/ornament-vertical.png");
    background-repeat: repeat-y;
    background-size: contain;
    opacity: .8;
    pointer-events: none;
    z-index: 2;
  }
  .ornament-wrap::before{ left: 8px; }
  .ornament-wrap::after { right: 8px; transform: scaleX(-1); } /* симметрия */

  /* видео — компактнее, но не “сжимается” */
  .ornament-wrap > video{
    width: 100% !important;
    max-width: 520px !important;
    max-height: 340px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* =========================
     Кнопка "смотреть полную биографию" — как маленькая ссылка-кнопка
     ========================= */
  .bio-btn{
    padding: 6px 14px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #343c43;
    background: transparent;
  }
  .bio-btn:hover{
    background: #f9f9f4;
    color: #6294c6;
  }

  /* =========================
     FOOTER — ссылки и контакты чуть меньше
     ========================= */
  .footer-content{
    padding: 28px 16px 10px;
    gap: 22px;
    column-gap: 0;
  }

  .footer-links ul li a{
    font-size: 1.12rem; /* было 1.3 на десктопе */
  }
  

  .footer-contact{
      display: flex;
    flex-direction: column;
    align-items: center;
      justify-content: center;
    gap: 6px;
    padding-top: 10px;
  text-align: center;
  }
  
.contact-info{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;     /* меньше */
  line-height: 1.25;
}
  .contact-info a,
.contact-info span{
  font-size: 0.82rem;     /* на всякий */
}


  .order-btn{
    width: 100%;
    text-align: center;
    font-size: 0.92rem;
  padding: 7px 12px;

  }

  .copyright{
    font-size: 1rem;
    padding: 14px;
  }

  /* ===== MOBILE: компактная цитата-полоска ===== */
.quote-banner{
  padding: 18px 14px;     /* было 60px — делаем низким */
  margin-top: 18px;       /* меньше воздуха сверху */
}

.quote-banner blockquote{
  font-size: 1.2rem;      /* меньше текст */
  line-height: 1.35;
}

.quote-banner cite{
  margin-top: 8px;
  font-size: 1.1rem;      /* меньше подпись */
}
  .footer-links h3{
  text-align: center;
}
  .footer-links{
  width: 100%;
  text-align: center;

}

.footer-links > div{
  justify-content: center;     /* центрируем два столбца */
  gap: 40px;                   /* больше расстояние между ними */
    display: flex;

}

.footer-links ul{
  text-align: center;
}

.footer-links ul li a{
  font-size: 1.05rem;          /* чуть компактнее */
}
.footer-gallery-block{
  align-items: center;
    width: 100%;
  margin-top: 24px;
    text-align: center;
}

.footer-gallery{
  justify-items: center;  /* центр ячеек внутри grid */
    margin: 0 auto;         /* ключ: центр */
  width: fit-content;     /* ключ: чтобы grid не растягивался */

}

.full-gallery-link{
 width: 100%;
  text-align: center;
}
.contact-info{
  font-size: 0.9rem;
  gap: 4px;
}

.order-btn{
  font-size: 0.95rem;
  padding: 8px 14px;
}
  



/* === LIGHTBOX: фикс стрелок и крестика === */

.lb-nav a.lb-prev {
  background-image: url("lightbox-images/prev.png") !important;
}

.lb-nav a.lb-next {
  background-image: url("lightbox-images/next.png") !important;
}

.lb-data .lb-close {
  background-image: url("lightbox-images/close.png") !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next,
.lb-data .lb-close {
  opacity: 1 !important;
  display: block !important;
}    

  /* =========================
   HERO (site-header) FIX: чтобы h1 не наслаивался
   ========================= */
/* =========================
   HERO — ВЕРТИКАЛЬНЫЙ ЦЕНТР (как раньше)
   ========================= */
.site-header{
 background-image: url("images/header-awards-mobile.png");
 background-size: cover;
 background-position: center;
 height: 48vh;          /* компактнее, чем 62vh */
    min-height: 320px;          /* нормальная высота hero */
  display: flex;
  align-items: center;       /* ВАЖНО: вертикальный центр */
  justify-content: center;
}

.site-header .header-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;                  /* расстояние между h1 и breadcrumb */
  padding: 0 16px;           /* УБРАЛИ padding-top */
  text-align: center;
  transform: translateY(-6%);/* лёгкий подъём (можно 0% / -4%) */
}

.site-header .header-title{
  margin: 0 !important;
  line-height: 1.05;
 font-size: 2.3rem;     /* НЕ уменьшаю в ноль, просто адекват */
  max-width: 92vw;
}

.site-header .breadcrumb{
   margin-top: 10px;
  line-height: 1.2;
  font-size: 0.95rem;
  max-width: 80%;
    align-items: center;
    margin: 0 auto;
    white-space: normal;
}

}





















