/* ШАПКА */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: #b8860b; /* золотистый */
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  display: block;
  line-height: 1.2;
  color: #b8860b; /* золотистый текст */
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #b8860b;
}

:root{
  --bg:#fffdfa; --text:#111827; --muted:#6b7280;
  --gold1:#D7AD3B; --gold2:#996918; --chip:#fbf3df;
  --shadow:0 10px 28px rgba(17,24,39,.10);
  --accent:#f4a524;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.7}
img{max-width:100%;display:block}
.container{max-width:1120px;margin:auto;padding:0 18px}
section{scroll-margin-top:120px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ffb44a;outline-offset:3px;border-radius:8px}

/* Progress */
.progress{position:fixed;left:0;top:0;height:3px;background:linear-gradient(90deg,var(--gold1),var(--gold2));z-index:60;width:0}

/* Header */
.header{position:sticky;top:0;z-index:50;background:rgba(255,253,250,.98);
  backdrop-filter:saturate(140%) blur(6px);border-bottom:1px solid rgba(0,0,0,.05);padding:10px 0 8px}
.header__row{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;line-height:1.05}
.brand__logo {
  width: 100px;   /* было ~50px */
  height: 100px;  /* было ~50px */
}
.brand__text{display:flex;flex-direction:column;align-items:flex-start}
.brand__main,.brand__sub{
  font-family:'Playfair Display',serif;font-weight:800;
  background:linear-gradient(180deg,var(--gold1) 0%, var(--gold2) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  letter-spacing:.02em;text-shadow:0 1px 1px rgba(0,0,0,.18);
}
.brand__main{font-size:1.85rem}
.brand__sub{font-size:1.5rem}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:#4b5563;text-decoration:none;font-weight:600}
.nav a:hover{color:#111827}
.burger{display:none;background:none;border:0;cursor:pointer}
.burger span{display:block;width:24px;height:2px;background:#374151;margin:6px 0;border-radius:2px}

/* Hero */
.hero{padding:5px 0 28px}
.hero__grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:36px;align-items:center}
.hero__text{display:flex;flex-direction:column;justify-content:center}
/* Removed duplicate `.highlight-services` definition from the Hero section.  */
.subtitle{margin:0 0 16px;color:var(--muted)}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 12px}
.btn{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 18px;border-radius:12px;
  border:1px solid #e5e7eb;background:#fff;color:#111827;text-decoration:none;font-weight:700;box-shadow:var(--shadow);
  transition:transform .12s ease, box-shadow .12s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(180deg,#ffb44a,#f58a0b);color:#fff;border-color:#f59e0b}
.btn-light{background:#fffdfa;border-color:#f3e3c0}
.tags{list-style:none;padding:0;margin:12px 0;display:flex;gap:12px;flex-wrap:wrap}
.tags li{background:#fff7e3;border:1px solid #f1e2bf;padding:8px 12px;border-radius:999px;white-space:nowrap}
.photo-frame {
  border: 3px solid var(--gold1); /* золотая рамка */
  background: #fff8e7;            /* тёплый золотисто-бежевый фон */
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.photo-frame img{border-radius:12px;width:100%;height:auto;object-fit:cover}

/* About */
.about{padding:2px 0}
.about__grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:36px;align-items:start}
h2{font-family:'Playfair Display',serif;font-size:1.9rem;margin:0 0 14px}
.muted{color:var(--muted)}
.check{list-style:none;margin:10px 0 0;padding:0}
.check li{position:relative;padding-left:28px;margin:8px 0}
.check li::before{font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;left:0;top:.2em;color:#d97706;content:"\f004"}
.check li.scope::before{content:"\f52e"}
.check li.dot::before{content:"\f192"}

/* Services */
.services h2{margin-bottom:8px}
.highlight-services{
  /* Canonical definition for the services grid */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 8px;
  /* Ensure items start at the top of each cell */
  align-items: start;
  /* Center the grid within its parent container.  The max-width
     prevents the grid from stretching across the entire page and
     the auto margins center it horizontally. */
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.service-card{background:#fff;border:1px solid #f3ead3;border-radius:16px;box-shadow:var(--shadow)}
.service-card--hero{
  background:linear-gradient(180deg,#fff8e7 0%, #ffffff 100%);
  border:1px solid #f1e2bf;box-shadow:0 10px 24px rgba(167,121,24,.08);transition:.18s ease;
}
.service-card--hero:hover{transform:translateY(-3px);box-shadow:0 16px 30px rgba(167,121,24,.12)}
.service-card--hero summary{
  padding:18px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none;
}
.service-card--hero summary::-webkit-details-marker{display:none}
.service-card--hero h3{margin:0;color:#a67918}
.service-card--hero[open] summary i{transform:rotate(180deg)}
.svc__body{padding:0 20px 18px; animation:reveal .22s ease}
.svc__list{margin:6px 0 10px 18px}
.price-row{margin:6px 0 0}
.price{font-weight:800}
.svc__cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
@keyframes reveal{
  from{opacity:0; transform:translateY(-4px)}
  to  {opacity:1; transform:none}
}

.cards{
  /* Canonical definition for additional service cards grid */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
  /* Center the grid within its parent container */
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.card{background:#fff;border:1px solid #f3ead3;border-radius:16px;box-shadow:var(--shadow);padding:18px}
.card h3{margin:0 0 8px}
.card .price{font-weight:800}
.card__cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

/* Reviews */
.reviews{padding:40px 0}
.reviews h2{margin-bottom:12px}
.reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.review{background:#fff;border:1px solid #f3ead3;border-radius:14px;box-shadow:var(--shadow);padding:16px;line-height:1.6}
.reviews-link{text-align:center;margin-top:20px}
.reviews-link a{display:inline-block;padding:10px 18px;background:var(--accent);color:#fff;border-radius:8px;font-weight:600;transition:.2s}
.reviews-link a:hover{background:#e0951a}

/* Humor */
.humor{padding:40px 0}
.humor h2{margin-bottom:12px}
.humor-grid{column-count:3;column-gap:18px}
.humor-item{break-inside:avoid;margin:0 0 18px}
.humor-item img{width:100%;height:auto;display:block;border-radius:12px;box-shadow:var(--shadow)}

/* FAQ */
.qa details{background:#fff;border:1px solid #f3ead3;border-radius:14px;padding:0;margin:10px 0;box-shadow:var(--shadow);overflow:hidden}
.qa summary{cursor:pointer;padding:14px 16px;font-weight:700}
.qa .list{margin:0 0 10px 18px}

/* Pay */
.pay{padding:14px 0}
.pay .btn{margin-top:8px}

/* Footer */
.footer{margin-top:34px;background:#0f172a;color:#e5e7eb}
.footer__row{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;padding:20px 0}
.footer a{color:#e5e7eb;text-decoration:none}
.social{display:flex;gap:12px;font-size:22px}
.social a{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:50%;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.social a:hover{background:rgba(255,255,255,.12)}

/* Tablet/Mobile */
@media (max-width:1100px){.highlight-services{grid-template-columns:repeat(2,1fr)}}
@media (max-width:1024px){
  .about__grid{grid-template-columns:1fr;gap:20px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .humor-grid{column-count:2}
}
@media (min-width:901px){
  .burger{display:none!important}
  .nav{display:flex!important}
  .hero__grid{grid-template-columns:1.05fr 0.95fr !important}
}
@media (max-width:900px){
  .nav{display:none;position:absolute;top:92px;right:18px;background:#fff;border:1px solid #eee;box-shadow:var(--shadow);border-radius:12px;padding:10px}
  .nav.open{display:flex;flex-direction:column;gap:10px}
  .burger{display:block}
  .brand__main{font-size:1.6rem}
  .brand__sub{font-size:1.35rem}
  .hero__grid{grid-template-columns:1fr;gap:22px}
  .highlight-services,.cards{grid-template-columns:1fr}
  .btn{min-height:50px}
  .humor-grid{column-count:1}
}
/* Music */
.music { padding: 40px 0; }
.music h2 { margin-bottom: 16px; }
.music h3 { margin-top: 20px; font-size: 1.2rem; color: var(--accent, #f4a524); }
.music-list { list-style: disc inside; margin: 6px 0 16px; line-height: 1.6; }

/* Literature */
.literature { padding: 40px 0; }
.literature h2 { margin-bottom: 16px; }
.literature h3 { margin-top: 20px; font-size: 1.2rem; color: var(--accent, #f4a524); }
.book-list { list-style: square inside; margin: 6px 0 16px; line-height: 1.6; }
/* ===== HEADER FIX ===== */
.header { 
  position: sticky; top: 0; z-index: 50;
  background: var(--bg, #fffaf3);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-inner{
  max-width: 1200px; margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 28px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;  /* не сжимать логотип */
}

.brand img.logo { width: 32px; height: 32px; border-radius: 50%; }

.brand .brand-text{
  display: block; line-height: 1.1; /* было больше — из-за этого «толкало» меню */
  margin: 0; padding: 0;
}

.brand .line-1{ 
  font-family: "Playfair Display", serif;
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(180deg,#b98b18,#7a5a12);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .02em;
}
.brand .line-2{
  font-family: "Playfair Display", serif;
  font-size: 1.05rem; font-weight: 700;
  color: #7a5a12;
  letter-spacing: .02em; margin-top: 2px;
}

/* Навигация в одну строку, с переносом при нехватке ширины */
.nav{
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center;
}
.nav a{
  font-size: 0.98rem; color: #495057; text-decoration: none;
  padding: 6px 0; line-height: 1; transition: opacity .2s, transform .2s;
}
.nav a:hover{ opacity: .8; transform: translateY(-1px); }

/* Чуть компактнее на «узких» ноутбуках */
@media (max-width: 1200px){
  .nav{ gap: 18px; }
  .brand .line-1{ font-size: 1.5rem; }
  .brand .line-2{ font-size: 1rem; }
}

/* Мобильная шапка (если у тебя есть бургер — это не ломает его) */
@media (max-width: 900px){
  /* ========== HOTFIX HEADER (не переносить меню) ========== */
.header-nav { 
  display: flex; 
  align-items: center; 
  gap: 28px;                 /* чуть меньше расстояние */
  flex-wrap: nowrap; 
}
.header-nav a { white-space: nowrap; }

/* плавно ужимаем меню раньше, чтобы бургер включался вовремя */
@media (max-width: 1240px){
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 15px; }
}

@media (max-width: 1080px){
  .header-nav { display: none; }   /* прячем горизонтальное меню */
  .burger { display: inline-flex; }/* показываем бургер на 1080px и ниже */
}
/* ========== HOTFIX FOOTER ICONS (всегда влезают) ========== */
.contacts .socials,
.footer .socials,
#contacts .socials{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); /* авто-колонки */
  gap: 12px;
  align-items: center;
  justify-items: center;
  width: 100%;
  margin: 14px 0 18px;
}

.socials a, .socials button {
  width: 44px; height: 44px; 
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

@media (max-width: 420px){
  .socials a, .socials button { width: 40px; height: 40px; } /* на самых узких */
}

  .header-inner{ gap: 16px; }
  .nav{ display:none; } /* меню скрывается, работает бургер */
}
/* ====== HEADER: не переносить меню, включать бургер вовремя ====== */
header nav ul { 
  display: flex !important;
  gap: 24px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
header nav a { white-space: nowrap !important; }

@media (max-width: 1240px){
  header nav ul { gap: 18px !important; }
  header nav a { font-size: 15px !important; }
}

/* На 1080px и уже — прячем горизонтальное меню и показываем бургер,
   даже если классы у тебя другие */
@media (max-width: 1080px){
  header nav ul { display: none !important; }
  .burger, .burger-btn, button[aria-label*="меню" i] { 
    display: inline-flex !important; 
  }
}

/* Чуть прибираем высоту шапки, чтобы не было «ступеньки» сверху */
header { padding-top: 10px !important; padding-bottom: 8px !important; }

/* ====== CONTACTS: соц-иконки всегда влезают сеткой ====== */
#contacts .socials, 
#contacts .icons, 
#contacts .links, 
#contacts [class*="social" i],
footer .socials {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)) !important;
  gap: 12px !important;
  align-items: center !important;
  justify-items: center !important;
  width: 100% !important;
  margin: 14px 0 18px !important;
}

/*
 * -----------------------------------------------------------------------------
 * FINAL OVERRIDE FOR MOBILE NAVIGATION
 *
 * The existing stylesheet contains many duplicate and conflicting declarations
 * for the navigation menu and burger button.  In particular there are rules
 * that force `.nav` to `display: flex !important` outside of any media query,
 * which prevents the nav from being hidden on small screens and causes the
 * burger button to never appear.  To ensure consistent behaviour across
 * breakpoints without altering the approved desktop layout, we define a
 * high‑specificity override at the end of the stylesheet.  These rules
 * leverage `!important` and the cascade ordering to take precedence over
 * earlier definitions.
 *
 * The behaviour implemented is as follows:
 *   • On wide screens (≥ 901px), the horizontal nav is displayed and the
 *     burger icon is hidden.
 *   • On narrow screens (≤ 900px), the nav is hidden by default, the burger
 *     icon is shown, and the nav becomes a vertical panel when it has the
 *     `open` class (toggled via JavaScript).
 */

/* Desktop (≥ 901px): show the nav and hide the burger */
@media (min-width: 901px) {
  /* Target the nav inside the site header.  Use !important to override
     earlier declarations that may set display to none. */
  header .nav {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
  }
  /* Hide the burger icon completely on desktop */
  header .burger {
    display: none !important;
  }
}

/* Mobile (≤ 900px): hide the nav by default and show the burger */
@media (max-width: 900px) {
  /* Show the burger icon on mobile.  Use inline‑flex so it aligns like a
     button.  Apply z-index and sizing so it sits above content. */
  header .burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1000;
  }
  header .burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    margin: 4px 0;
  }
  /* Hide the nav by default on mobile.  Convert it into an absolute
     positioned panel. */
  header .nav {
    display: none !important;
    position: absolute;
    top: 92px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  /* When `.open` is applied (via JS toggle), show the nav as a flex column */
  header .nav.open {
    display: flex !important;
  }
}

#contacts .socials a,
#contacts .icons a,
#contacts .links a,
#contacts [class*="social" i] a,
footer .socials a {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
}

@media (max-width: 420px){
  #contacts .socials a,
  #contacts .icons a,
  #contacts .links a,
  #contacts [class*="social" i] a,
  footer .socials a {
    /* === HEADER LAYOUT (desktop) === */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; }
.nav-row {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 16px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.brand-line { font-weight: 700; letter-spacing: .5px; }
.brand-sub  { font-size: .92rem; margin-top: 2px; }

.main-nav { margin-left: auto; } /* меню вправо от бренда */

.nav-list {
  display: flex; align-items: center; gap: 22px;
  margin: 0; padding: 0; list-style: none;
  white-space: nowrap;            /* КЛЮЧ: не переносить */
}
.nav-list > li { flex: 0 0 auto; } /* запрет сжатия */
.nav-list a { text-decoration: none; color: #334155; font-weight: 500; }

/* Кнопка-бургер — нормальный вид, без "черточки" */
.burger {
  display: none; /* на десктопе скрыт */
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff; color: #334155;
  align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}

/* Чуть ужмем шрифт/отступы, чтобы "Контакты" не падали */
@media (max-width: 1280px){
  .nav-list { gap: 16px; }
  .nav-list a { font-size: 15px; }
}

/* === MOBILE: показываем бургер, меню прячем === */
@media (max-width: 1080px){
  .burger { display: inline-flex; }
  .main-nav { position: fixed; inset: 64px 0 0 0; /* ниже шапки */
              background: #ffffff; transform: translateY(-8px);
              opacity: 0; pointer-events: none; transition: .2s ease; }
  .main-nav .nav-list{
    flex-direction: column; gap: 12px; padding: 16px; align-items: flex-start;
  }
  .site-header.nav-open .main-nav{
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
}

/* Небольшая защита: если ширины мало, меню никогда не переносится */
@media (min-width: 1081px){
  .main-nav { overflow: hidden; } /* чтобы не прыгало */
}
/* Шапка: держим навигацию в одну строку */
.site-nav {
  display: flex;
  flex-wrap: nowrap;   /* запрещаем перенос */
  gap: 20px;           /* расстояние между пунктами */
}

.site-nav a {
  white-space: nowrap; /* не переносить текст */
}

    width: 40px !important; height: 40px !important;
  }
}

/* === FIX HEADER (final override) === */

/* Контейнер шапки */
.header, header.site-header, .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* ЛОГО / брендовая часть слева */
.brand, .logo, .brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand img, .logo img, .brand-wrap img {
  height: 32px;
  width: 32px;
}

.brand-title, .logo-title, .brand .title, .logo .title {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #B9870F; /* благородное золото */
}

/* Если заголовок обёрнут <a> — наследуем цвет и убираем кликабельность */
.brand a, .logo a, .brand-title a, .logo-title a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none; /* чтоб не синилось и не кликалось */
}

/* Навигация справа */
.nav, .main-nav, .site-nav, nav.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;            /* ничего не переносим */
  white-space: nowrap;          /* «Контакты» в одну строку */
}

.nav a, .main-nav a, .site-nav a, nav.site-nav a {
  color: #394150 !important;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .2s ease, opacity .2s ease;
}

.nav a:hover, .main-nav a:hover, .site-nav a:hover {
  color: #B9870F !important;
}

/* Кнопка-гамбургер */
.menu-toggle, .burger, .hamburger {
  display: none;                 /* по умолчанию скрыт на десктопе */
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg, .burger svg, .hamburger svg {
  width: 22px; height: 22px;
  stroke: #394150;
}

/* --- Брейкпоинты --- */

/* Планшеты: уменьшаем зазоры в меню */
@media (max-width: 1180px) {
  .nav, .main-nav, .site-nav { gap: 14px; }
}

/* Мобильные: показываем гамбургер и прячем меню */
@media (max-width: 992px) {
  .menu-toggle, .burger, .hamburger { display: inline-flex; }
  .nav, .main-nav, .site-nav { display: none; }
  /* Активное открытое меню (если у тебя добавляется класс .open) */
  .nav.open, .main-nav.open, .site-nav.open {
    position: absolute;
    top: 64px; right: 16px; left: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
    z-index: 60;
  }
}

/* Подстраховка: убираем синий дефолт у любых ссылок в хедере */
.header a:link, .header a:visited,
.site-header a:link, .site-header a:visited {
  color: inherit !important;
  text-decoration: none !important;
}
/* --- FIX HEADER + NAV --- */

/* Контейнер хедера */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 12px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Бренд (логотип + текст) */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #b8860b; /* золотой */
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.brand__logo {
  height: 40px;
  margin-right: 10px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__main {
  font-size: 1.2rem;
}

.brand__sub {
  font-size: 1rem;
  font-weight: 600;
}

/* Навигация */
.nav {
  display: flex;
  flex-wrap: nowrap;       /* ❗ запрещаем перенос */
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;     /* ❗ всегда в одну строку */
}

.nav a:hover {
  color: #b8860b;
}

/* Бургер */
.burger {
  display: none;
}

/* Мобильный вид */
@media (max-width: 900px) {
  .burger {
    display: block;
  }
  .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px; right: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
  }
  .nav.open {
    display: flex;
  }
}
/* ====== BASE (предполагается, что уже есть) ====== */
/* контейнер, сетки, кнопки и т.д. — оставь свой текущий набор */

/* ===== HEADER & NAV (fix: не переносить пункты, бургер на узких) ===== */
.header {
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; padding:12px 30px; box-shadow:0 2px 8px rgba(0,0,0,.05);
  position:sticky; top:0; z-index:999;
}
.brand{ display:flex; align-items:center; text-decoration:none; color:#b8860b; font-family:"Playfair Display",serif; font-weight:700; }
.brand__logo{ height:40px; margin-right:10px; }
.brand__text{ display:flex; flex-direction:column; line-height:1.15; }
.brand__main{ font-size:1.2rem; }
.brand__sub{ font-size:1rem; font-weight:600; }

.nav{ display:flex; align-items:center; gap:20px; flex-wrap:nowrap; white-space:nowrap; }
.nav a{ white-space:nowrap; text-decoration:none; color:#333; font-weight:500; transition:color .2s; }
.nav a:hover{ color:#b8860b; }

.burger{ display:none; width:40px; height:40px; border:1px solid rgba(0,0,0,.08); border-radius:10px; background:#fff; }
.burger span{ display:block; width:22px; height:2px; background:#333; margin:6px auto; }

@media (max-width:1280px){
  .nav{ gap:16px; }
  .nav a{ font-size:15px; }
}
@media (max-width:1120px){
  .burger{ display:block; }
  .nav{
    display:none; position:absolute; right:18px; top:92px;
    flex-direction:column; gap:12px; background:#fff; padding:14px;
    border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.12);
  }
  .nav.open{ display:flex; }
}

/* ===== MUSIC ===== */
.music{ padding:60px 0; }
.music h2{ text-align:center; margin-bottom:18px; }
.music h3{ margin-top:18px; font-size:1.2rem; color:#444; }
.music-list{ list-style:disc; margin:6px 0 16px 20px; line-height:1.6; }

/* ===== LITERATURE ===== */
.literature{ padding:70px 0; background:#fafafa; }
.literature h2{ text-align:center; font-size:2.1rem; margin-bottom:26px; }
.literature h3{ margin-top:22px; font-size:1.25rem; color:#444; }
.book-list{ list-style:square; margin:8px 0 18px 20px; line-height:1.6; }
.book-list li{ margin:6px 0; }

/* ===== FOOTER SOCIALS GRID (чтобы не уезжали на мобилках) ===== */
#contacts .social, 
#contacts .socials, 
.footer .social, 
.footer .socials{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap:12px; align-items:center; justify-items:center;
  width:100%; margin:14px 0 18px;
}
#contacts .social a,
#contacts .socials a,
.footer .social a,
.footer .socials a{
  width:44px; height:44px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:rgba(0,0,0,.04);
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
@media (max-width:420px){
  #contacts .social a,
  #contacts .socials a,
  .footer .social a,
  .footer .socials a{ width:40px; height:40px; }
}

/* ===== Пример базовых утилок (если нужно) ===== */
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }
.progress{ position:fixed; top:0; left:0; height:3px; width:0; background:#b8860b; z-index:1000; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #6b4c1f; /* цвет линий (под цвет шапки) */
  border-radius: /* === HEADER: логотип и бургер (жёсткий фикс) === */
.header .brand__logo {
  height: 96px !important;   /* ↑ сделает лого заметно крупнее; попробуешь 60-64px, если нужно */
  width: 96px !important;
}

.burger {
  display: none;               /* на десктопе скрыт */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #6b4c1f;         /* цвет полосок под шапку */
  border-radius: 3px;
}

/* Навигация по умолчанию — как было */
.header .nav {
  display: flex;
  gap: 24px;
}

/* Мобильный вид */
@media (max-width: 900px) {
  .burger { display: flex !important; }

  .header .nav {
    display: none !important;        /* прячем пункты, пока меню закрыто */
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 50;
    min-width: 220px;
  }
  .header .nav.open { display: flex !important; }

  .header .nav a {
    padding: 6px 4px;
    white-space: nowrap;
  }
}

/* Подправим выравнивание контента шапки, чтобы лого + бургер не расползались */
.header .header__row {
  align-items: center;
}
/* ====== ЛОГОТИП (принудительно) ====== */
.brand__logo,
.brand img {
  display: block !important;
  height: 100px !important;   /* увеличил, раньше было 56px */
  width: auto !important;
  max-height: 100px !/* ===== HEADER: выравнивание, крупнее логотип, нормальный бургер ===== */

.header .container { display:flex; align-items:center; gap:20px; }
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand__logo{height:80px; width:auto; display:block}        /* <- крупнее логотип */
.brand__text{line-height:1.1}
.brand__main{font-size:28px; font-weight:800}
.brand__sub{font-size:18px; font-weight:700}

/* Бургер */
.burger{
  display:none;                 /* desktop прячем */
  width:44px; height:44px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  background:#fff;
  position:relative;
}
.burger span{
  position:absolute; left:10px; right:10px;
  height:2px; background:#6b4a1c; border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.burger span:nth-child(1){top:14px}
.burger span:nth-child(2){top:21px}
.burger span:nth-child(3){top:28px}

/* Навигация — ПК */
.nav{display:flex; gap:28px; align-items:center;}

/* Навигация — мобила (меню «гамбургер») */
@media (max-width: 900px){
  .brand__logo{height:72px}         /* на телефонах чуть меньше, но заметно */
  .brand__main{font-size:24px}
  .brand__sub{font-size:16px}

  .burger{display:block}
  .nav{
    display:none;                    /* по умолчанию скрыто */
    position:absolute; top:92px; right:12px; left:12px;
    padding:14px; border-radius:12px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    flex-direction:column; gap:14px; z-index:40;
  }
  .nav.open{display:flex}
}

/* на всякий случай — чтобы ничего не ломало бургер */
button.burger, .burger * { pointer-events:auto; }
/* Увеличенный логотип */
.brand__logo {
  height: 100px !important; /* было 50px */
  width: auto;
}

/* Бургер-меню: белый значок ☰ */
.burger {
  font-size: 32px;       /* размер побольше */
  color: #a97a2c;        /* золотистый, как текст логотипа */
  background: none;
  border: none;
  cursor: pointer;
}
/* 1) ЛОГОТИП — увеличиваем в 2 раза, с приоритетом */
.header .brand__logo {
  height: 96px !important;   /* было ~50px */
  width: 96px !important;
}
@media (max-width: 768px) {
  .header .brand__logo { height: 96px !important; }
}

/* 2) БУРГЕР — рисуем три полоски и задаём цвет */
.burger {
  display: block !important;
  position: relative;
  width: 44px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 6px; right: 6px;
  height: 3px;
  background: #a97a2c !important; /* золотистый, как логотип */
  border-radius: 2px;
  transition: .2s;
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 24px; }
/* БУРГЕР-МЕНЮ */
.burger-menu {
  cursor: pointer;
  display: none; /* по умолчанию скрыт на десктопе */
}

.burger-menu span {
  display: block;
  width: 35px;           /* ширина полосок */
  height: 4px;           /* толщина */
  background: #D4AF37;   /* золотой цвет */
  margin: 6px 0;         /* расстояние между полосками */
  border-radius: 2px;    /* закруглённые края */
  transition: 0.3s;
}

/* На телефонах показываем бургер и прячем меню */
@media (max-width: 768px) {
  .burger-menu { display: block; }
  .nav { display: none; }
  .nav.open { display: /* Логотип увеличенный */
.brand__logo {
  width: 100px;   /* было ~50px */
  height: auto;
}

/* Бургер-меню */
.burger-menu {
  cursor: pointer;
  display: none; /* скрыто на десктопе */
}

.burger-menu span {
  display: block;
  width: 32px;
  height: 4px;
  background: #D4AF37; /* золотой */
  margin: 6px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Адаптив */
@media (max-width: 768px) {
  .burger-menu { display: block; }
  .nav { display: none; }
  .nav.open { display: block; }
}
/* ЛОГОТИП — увеличить в 2 раза */
.brand__logo {
  width: 100px;   /* было 50px */
  height: 100px;  /* если раньше авто — теперь фиксировано */
}

/* БУРГЕР-МЕНЮ */
.burger-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: #D4AF37;
  margin: 5px 0;
  border-radius: 2px;
}
/* --- Portrait frames --- */
.photo-frame {
  border: 3px solid var(--gold1); /* золотая рамка */
  background: #fff8e7;            /* тёплый золотисто-бежевый фон */
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.photo-frame img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 12px;
}
/* Бургер-меню */
.burger-menu {
  display: none; /* по умолчанию скрыт */
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background: #D4AF37; /* золотой */
  margin: 6px 0;
  border-radius: 2px;
}

/* Показывать бургер только на мобилках */
@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .nav.open {
    display: flex;
  }
}
/* --- Header base to position burger --- */
.header, .header .header__row, .header .container { position: relative; }

/* Desktop NAV is always visible; burger hidden */
@media (min-width: 769px) {
  .burger-menu { display: none !important; }
  .nav{
    display: flex !important;
    position: static !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    gap: 22px;
  }
}

/* Burger look (gold) */
.burger-menu{
  display:none;
  position:absolute;
  top:18px;
  right:18px;
  cursor:pointer;
  z-index:1001;
}
.burger-menu span{
  display:block;
  width:32px;
  height:3px;
  margin:6px 0;
  background:#D4AF37; /* золото */
  border-radius:2px;
}

/* Mobile menu behavior */
@media (max-width:768px){
  .burger-menu{ display:block; }
  .nav{
    display:none;              /* скрыто по умолчанию */
    position:absolute;
    top:64px; right:12px;
    width:240px;
    padding:12px;
    background:#fff;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
    border-radius:10px;
    flex-direction:column;
    gap:10px;
    z-index:1000;
  }
  .nav.open{ display:flex; }
}

/* Logo x2 (для твоего текущего селектора подставь нужный) */
.brand__logo{ width:96px; height:96px; }     /* было ~48px */
/* --- базовое позиционирование --- */
.header, .header .header__row, .header .container { position: relative; }

/* Десктоп: бургер скрыт, меню всегда видно */
@media (min-width: 769px) {
  .burger-menu { display: none !important; }
  .nav {
    display: flex !important;
    position: static !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    gap: 22px;
  }
}

/* Бургер (золотой) */
.burger-menu {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  z-index: 1001;
}
.burger-menu span {
  display: block;
  width: 32px;
  height: 3px;
  margin: 6px 0;
  background: #D4AF37; /* золото */
  border-radius: 2px;
}

/* Мобильное меню */
@media (max-width: 768px) {
  .burger-menu { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    width: 240px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    border-radius: 10px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
  }
  .nav.open { display: flex; }
}

/* Логотип в 2 раза больше */
.brand__logo {
  width: 96px;
  height: 96px;
}/* ===== v27 header fixes (safe override) ===== */
:root{
  --logo-size-mobile: 56px;   /* было меньше — x2 от прежнего тип. 28 */
  --logo-size-desktop: 72px;
}

/* 1) ЛОГО: увеличить и держать пропорции */
.header .brand__logo{
  width: var(--logo-size-mobile) !important;
  height: var(--logo-size-mobile) !important;
  object-fit: contain;
}
@media (min-width: 1024px){
  .header .brand__logo{
    width: var(--logo-size-desktop) !important;
    height: var(--logo-size-desktop) !important;
  }
}

/* базовая высота шапки и относительное позиционирование для бургера */
.header .header__row{
  position: relative;
  min-height: 72px;
  align-items: center;
}

/* 2) БУРГЕР: стиль и поведение */
.burger-menu{
  display: none;              /* по умолчанию скрыт (десктоп) */
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 28px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.burger-menu span{
  display: block;
  width: 100%;
  height: 3px;
  background: #B8860B;        /* «золото» */
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

/* 3) MOBILE: показываем бургер, прячем меню; делаем дропдаун */
@media (max-width: 991.98px){
  .burger-menu{ display: flex; }
  .nav{
    display: none !important;
  }
  .nav.open{
    display: flex !important;
    position: absolute;
    inset: auto 0 0 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    z-index: 20;
  }
}

/* 4) DESKTOP: меню — в одну строку, бургер скрыт */
@media (min-width: 992px){
  .nav{
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    gap: 24px;
    align-items: center;
    white-space: nowrap;
  }
  .burger-menu{ display: none !important; }
}
             /* Увеличиваем главный заголовок и убираем отступ сверху */
.slogan {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  margin: 0 0 8px;
  color: #8a5b18;
  font-weight: 800;
}

/* Красивый шрифт для девиза */
.hero .subtitle:first-of-type {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: #996918;
  margin: 8px 0 16px;
  font-weight: 600;
}
             /* Исправляем отступы hero-секции */
.hero {
  padding: 40px 0 60px;
}

/* Правильные стили для заголовков */
.slogan {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin: 0 0 12px 0;
  color: #8a5b18;
  font-weight: 800;
  line-height: 1.2;
}

/* Девиз */
.hero .subtitle:first-of-type {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #996918;
  margin: 0 0 16px 0;
  font-weight: 600;
}

/* Removed a duplicate `.highlight-services` override and its related mobile
   adaptation that conflicted with the main responsive rules.  The
   responsive behaviour for the services grid is handled via the
   `@media (max-width: 1100px)`, `@media (max-width: 1024px)` and
   `@media (max-width: 900px)` queries defined earlier in this file. */



/* ===== Header (единая версия) ===== */
.header{
  position: sticky; top: 0; z-index: 9999;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05);
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header__row{min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:#b8860b; font-family:"Playfair Display",serif; font-weight:700}
.brand__logo{height:108px !important; width:auto !important; display:block !important}
.brand__text{line-height:1.1}
.brand__main{font-size:28px; font-weight:800}
.brand__sub{font-size:18px; font-weight:700}

.nav{display:flex !important; align-items:center; gap:20px; flex-wrap:nowrap; white-space:nowrap; margin-left:auto !important}
.nav a{color:#333; text-decoration:none; font-weight:600; transition:color .2s}
.nav a:hover{color:#b8860b}

.burger{display:none; width:40px; height:40px; border:1px solid rgba(0,0,0,.08); border-radius:10px; background:#fff; position:relative}
.burger span{position:absolute; left:9px; right:9px; height:2px; background:#6b4a1c; border-radius:2px}
.burger span:nth-child(1){top:12px} .burger span:nth-child(2){top:19px} .burger span:nth-child(3){top:26px}

/* mobile */
@media (max-width: 1080px){
  .burger{display:block}
  .nav{
    display:none !important; position:absolute; right:18px; top:92px; left:18px;
    flex-direction:column; gap:12px; background:#fff; padding:14px;
    border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.12); z-index:1000;
  }
  .nav.open{display:flex !important}
}

/* --- Header tweaks (logo bigger) --- */
/* Already adjusted min-height and logo height above */
@media (max-width: 1080px){
  .brand__logo{ height:92px !important; }
  .header__row{ min-height:84px; }
}

/* --- Hero typography tweaks --- */
.hero .slogan,
.hero h1{
  font-family:"Playfair Display", serif !important;
  font-weight:800 !important;
  font-size:clamp(32px,3.8vw,44px) !important;
  line-height:1.15 !important;
  color:#0f172a;
  margin:0 0 12px 0 !important;
}
.hero .subtitle:first-of-type{
  font-family:"Playfair Display", serif !important;
  font-style:italic !important;
  font-weight:600 !important;
  font-size:clamp(16px,2vw,22px) !important;
  color:#8a5b18 !important;
  margin:6px 0 18px 0 !important;
}
             /* ===== MOBILE NAV — авторитетный блок (только для телефонов) ===== */
@media (max-width: 900px){
  /* показываем кнопку-бургер */
  .burger{
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px; background: #fff; cursor: pointer;
    z-index: 1001;
  }

  /* меню по умолчанию скрыто */
  .header .nav, .nav{
    display: none !important;
    position: absolute; top: 92px; right: 12px; left: 12px;
    flex-direction: column; gap: 12px;
    background: #fff; padding: 14px;
    border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.12);
    z-index: 1000; min-width: 220px;
  }

  /* только при .open показываем список */
  .header .nav.open, .nav.open{
    display: flex !important;
  }
}
/* Бургер по умолчанию скрыт */
.burger { display: none; }

/* На мобильных показываем и позиционируем в шапке */
@media (max-width: 900px){
  .header .container { position: relative; }  /* чтобы абсолют работал относительно шапки */

  .burger{
    position: absolute; top: 18px; right: 18px;
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid #f1e2bf; border-radius: 10px;
    background: #fff; box-shadow: var(--shadow);
    z-index: 1001; cursor: pointer;
  }
  .burger span{
    display: block; width: 22px; height: 2px;
    background: #1f2937; border-radius: 2px;
  }
  .burger span + span{ margin-top: 5px; }
}
            

