/* ====================================================
   sagrada-familia.jp — стиль v1
   Антифутпринт: уникальные имена классов, новая палитра
   Шрифты: Noto Serif JP + Noto Sans JP (японская пара)
   Цвет: тёплый терракота #b45309 (под GYG) + светло-каменный
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ── ПАЛИТРА ── */
:root {
  --terra:      #b45309;   /* основной — тёплый терракота */
  --terra-dk:   #92400e;   /* тёмнее — hover */
  --terra-lt:   #fef3c7;   /* светло-янтарный фон */
  --terra-pale: #fffbeb;   /* почти белый тёплый */
  --stone:      #f5f0e8;   /* каменный фон секций */
  --stone-dk:   #e8e0d0;   /* разделители */
  --ink:        #1c1008;   /* тёмно-коричневый текст */
  --ink-mid:    #44342a;
  --muted:      #7c6a5a;   /* приглушённый */
  --white:      #ffffff;
  --border:     #e5d9c8;

  --ff-head: 'Noto Serif JP', 'Georgia', serif;
  --ff-body: 'Noto Sans JP', system-ui, sans-serif;
  --mw:     860px;
  --mw-w:   1080px;
  --r:      6px;
  --r-lg:   14px;
  --sh:     0 4px 20px rgba(180,83,9,.11);
}

/* ── СБРОС ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--terra-dk); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-wrap  { max-width: var(--mw);   margin: 0 auto; }
.page-wide  { max-width: var(--mw-w); margin: 0 auto; }

/* ── ХЕДЕР ── */
.top-bar {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.top-bar-inner {
  max-width: var(--mw-w); margin: 0 auto;
  padding: 0 22px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-logo {
  font-family: var(--ff-head); font-size: 1.2rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap;
}
.brand-logo span { color: var(--terra); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: .77rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); text-decoration: none;
  padding: 6px 11px; border-radius: var(--r);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.ima { color: var(--ink); background: var(--terra-lt); }
.nav-btn {
  background: var(--terra) !important; color: var(--white) !important;
  border-radius: 22px !important; padding: 8px 18px !important;
  font-weight: 700 !important; font-size: .77rem !important;
  letter-spacing: .04em !important;
}
.nav-btn:hover { background: var(--terra-dk) !important; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mob-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--white); flex-direction: column;
  padding: 72px 26px 28px; gap: 0; overflow-y: auto;
}
.mob-nav.hiraku { display: flex; }
.mob-nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink-mid);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border); transition: color .15s;
}
.mob-nav a:hover { color: var(--terra); }
.mob-nav .mob-cta-btn { color: var(--terra); font-weight: 700; border-bottom: none; }
.mob-close-btn {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--muted);
}

/* ── ПАНИРОВОЧНЫЕ КРОШКИ ── */
.pan-kuzu { background: var(--stone); border-bottom: 1px solid var(--border); padding: 8px 22px; }
.pan-kuzu-uchi {
  max-width: var(--mw-w); margin: 0 auto;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
}
.pan-kuzu-uchi a { color: var(--terra-dk); font-weight: 500; }
.pan-kuzu-uchi a:hover { color: var(--terra); }
.pan-sep { color: var(--border); }

/* ── HERO ── */
.hero-block {
  position: relative; width: 100%; overflow: hidden;
  background: #1a0f08;
  min-height: 480px;
  display: flex; align-items: flex-end;
}
.hero-block img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: .72;
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--mw); margin: 0 auto;
  padding: 52px 22px 56px;
}
.hero-label-badge {
  display: inline-block; margin-bottom: 14px;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fcd78a; padding: 5px 14px;
  border: 1px solid rgba(252,215,138,.4); border-radius: 20px;
}
.hero-content h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; color: var(--white);
  margin-bottom: 16px; letter-spacing: -.01em;
}
.hero-content h1 em { font-style: normal; color: #fcd78a; }
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.8);
  max-width: 560px; line-height: 1.8; margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-main {
  display: inline-flex; align-items: center;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 14px 30px; border-radius: 26px;
  background: var(--terra); color: var(--white);
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn-main:hover { background: var(--terra-dk); transform: translateY(-1px); text-decoration: none; color: var(--white); }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border-radius: 26px;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; color: var(--white); }

/* ── КНОПКИ В КОНТЕНТЕ ── */
.btn-terra {
  display: inline-flex; align-items: center;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 13px 28px; border-radius: 26px;
  background: var(--terra); color: var(--white);
  transition: background .2s, transform .15s;
}
.btn-terra:hover { background: var(--terra-dk); transform: translateY(-1px); text-decoration: none; color: var(--white); }
.btn-ring {
  display: inline-flex; align-items: center;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 12px 24px; border-radius: 26px;
  background: transparent; color: var(--terra-dk);
  border: 1.5px solid var(--terra);
  transition: background .2s, color .2s;
}
.btn-ring:hover { background: var(--terra); color: var(--white); text-decoration: none; }

/* ── СЕКЦИИ ── */
.sct { padding: 64px 22px; }
.sct-white  { background: var(--white); }
.sct-stone  { background: var(--stone); }
.sct-warm   { background: var(--terra-lt); }
.sct-amber  { background: #fef9ee; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sct h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 700; color: var(--ink);
  margin-bottom: 10px; line-height: 1.25; letter-spacing: -.01em;
}
.sct h2::after {
  content: ''; display: block; width: 44px; height: 3px;
  background: var(--terra); border-radius: 2px; margin-top: 9px;
}
.sct h3 {
  font-family: var(--ff-head); font-size: 1.35rem;
  font-weight: 600; color: var(--ink); margin: 36px 0 10px;
}
.sct h3::after { display: none; }
.sct p { color: var(--ink-mid); margin-bottom: 15px; font-size: 1.0625rem; line-height: 1.85; }
.sct p:last-child { margin-bottom: 0; }
.sct strong { color: var(--ink); font-weight: 700; }
.txt-link { color: var(--terra-dk); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lead-txt { font-size: 1.08rem; color: var(--ink-mid); margin-bottom: 28px; max-width: 680px; }

/* Фото после H2 */
.section-photo {
  display: block; width: 100%;
  height: 280px; object-fit: cover; object-position: center;
  border-radius: var(--r-lg); margin: 14px 0 28px;
}

/* ── ВИДЖЕТ ── */
.widget-area { margin: 28px 0; min-height: 60px; }

/* ── МАРКИРОВАННЫЕ СПИСКИ ── */
.dot-list { list-style: none; display: grid; gap: 8px; margin: 14px 0 20px; padding: 0; }
.dot-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 1rem; color: var(--ink-mid);
  padding: 10px 14px;
  background: var(--terra-pale); border-radius: var(--r);
  border-left: 3px solid var(--terra-lt);
}
.dot-list li::before { display: none; }
.dot-icon {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px;
  background: var(--terra); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .58rem; font-weight: 900;
}

/* ── ТАБЛИЦА ── */
.tbl-scroll { overflow-x: auto; margin: 18px 0 26px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table thead th {
  background: var(--terra); color: var(--white);
  text-align: left; padding: 11px 16px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.data-table thead th:first-child { border-radius: var(--r-lg) 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 var(--r-lg) 0 0; }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--terra-pale); }
.data-table tbody td { padding: 10px 16px; color: var(--ink-mid); vertical-align: top; line-height: 1.5; }
.td-head { font-weight: 700; color: var(--ink); }
.td-price { font-weight: 700; color: var(--terra-dk); white-space: nowrap; }
.td-hl { background: var(--terra-lt) !important; }
@media(max-width:600px){
  .data-table { display: block; }
  .data-table thead { display: none; }
  .data-table tbody { display: block; }
  .data-table tbody tr { display: block; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
  .data-table tbody tr:nth-child(even) { background: var(--white); }
  .data-table tbody td { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; font-size: .9rem; border-bottom: 1px solid var(--border); }
  .data-table tbody td:last-child { border-bottom: none; }
  .data-table tbody td::before { content: attr(data-col); font-weight: 700; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; min-width: 80px; padding-top: 2px; }
}

/* ── БЛОК ПАРТНЁРА GYG ── */
.partner-box {
  background: linear-gradient(135deg, var(--terra-pale) 0%, var(--white) 100%);
  border: 2px solid var(--terra);
  border-radius: var(--r-lg); padding: 26px; margin: 24px 0;
}
.partner-badge {
  display: inline-block; background: var(--terra); color: var(--white);
  font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 18px; margin-bottom: 10px;
}
.partner-box h3 { font-family: var(--ff-head); font-size: 1.3rem; color: var(--ink); margin: 0 0 12px; }
.partner-box h3::after { display: none; }
.check-list { list-style: none; display: grid; gap: 9px; margin: 0 0 20px; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 1rem; color: var(--ink-mid); }
.check-list li::before { display: none; }
.chk-icon { flex-shrink: 0; width: 20px; height: 20px; background: var(--terra); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 900; margin-top: 3px; }
.partner-box .btn-terra { display: block; text-align: center; }

/* ── FAQ ── */
.faq-stack { margin: 8px 0 32px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: .75rem; overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: 0 3px 12px rgba(180,83,9,.1); border-color: var(--terra); }
.faq-trigger {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; cursor: pointer; user-select: none; padding: 15px 18px;
}
.faq-trigger h3 {
  flex: 1; font-family: var(--ff-head); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); margin: 0; line-height: 1.4;
}
.faq-trigger h3::after { display: none; }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.1rem;
  transition: transform .25s, border-color .2s, color .2s, background .2s;
  margin-top: 1px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg); border-color: var(--terra);
  color: var(--white); background: var(--terra);
}
.faq-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--border); }
.faq-body p { margin-top: 14px; font-size: 1rem; color: var(--ink-mid); line-height: 1.85; margin-bottom: 0; }
.faq-item.open .faq-body { display: block; }

/* Заголовки групп FAQ */
.faq-group-head {
  font-family: var(--ff-head); font-size: 1.45rem; font-weight: 700;
  color: var(--ink); margin: 44px 0 14px; letter-spacing: -.01em;
}
.faq-group-head::after {
  content: ''; display: block; width: 34px; height: 3px;
  background: var(--terra); border-radius: 2px; margin-top: 7px;
}

/* ── INFO БОКСЫ ── */
.info-box {
  background: var(--terra-lt); border-left: 3px solid var(--terra);
  border-radius: var(--r); padding: 14px 16px; margin: 16px 0;
  font-size: 1rem; color: var(--ink-mid); line-height: 1.75;
}
.warn-box {
  background: #fff8ed; border-left: 3px solid #d97706;
  border-radius: var(--r); padding: 14px 16px; margin: 16px 0;
  font-size: 1rem; color: #78350f; line-height: 1.75;
}
.info-box a, .warn-box a { color: var(--terra-dk); font-weight: 500; text-decoration: underline; }

/* ── СТРАНИЦА 404 ── */
.error-page {
  min-height: 58vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 22px 60px;
}
.error-num {
  font-family: var(--ff-head); font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700; line-height: 1; color: var(--terra-lt);
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.error-page h1 { font-family: var(--ff-head); font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.error-page h1::after { display: none; }
.error-page p { font-size: 1.05rem; color: var(--muted); max-width: 440px; line-height: 1.75; margin-bottom: 34px; }
.error-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── ТЕХНИЧЕСКИЕ СТРАНИЦЫ ── */
.page-inner { max-width: var(--mw); margin: 0 auto; padding: 50px 22px; }
.page-inner h1 { font-family: var(--ff-head); font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.page-inner h1::after { content: ''; display: block; width: 44px; height: 3px; background: var(--terra); border-radius: 2px; margin-top: 9px; margin-bottom: 26px; }
.page-inner h2 { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 32px 0 10px; }
.page-inner h2::after { display: none; }
.page-inner p { font-size: 1rem; color: var(--ink-mid); line-height: 1.85; margin-bottom: 13px; }
.page-inner ul { padding-left: 1.4rem; margin-bottom: 13px; }
.page-inner li { font-size: 1rem; color: var(--ink-mid); line-height: 1.85; margin-bottom: 5px; }
.page-inner a { color: var(--terra-dk); text-decoration: underline; }
.page-inner strong { color: var(--ink); }

/* ── ФУТЕР ── */
.site-foot { background: #1a0f08; color: rgba(255,255,255,.5); padding: 50px 22px 26px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.foot-logo { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 700; color: var(--white); display: block; margin-bottom: 10px; text-decoration: none; }
.foot-logo span { color: var(--terra); }
.foot-about p { font-size: .86rem; line-height: 1.65; }
.foot-addr { margin-top: 10px; font-size: .86rem; line-height: 1.7; }
.foot-addr strong { color: rgba(255,255,255,.55); display: block; margin-bottom: 2px; }
.foot-addr a { color: rgba(255,255,255,.42); text-decoration: underline; }
.foot-addr a:hover { color: var(--white); }
.foot-col h4 { font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 12px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.foot-col a { font-size: .88rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-bar { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.foot-bar a { color: rgba(255,255,255,.35); text-decoration: none; }
.foot-bar a:hover { color: var(--white); }
.foot-note { font-size: .78rem; color: rgba(255,255,255,.28); line-height: 1.6; margin-top: 8px; }

/* ── АДАПТИВ ── */
@media(max-width:900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media(max-width:768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-block { min-height: 380px; }
  .sct { padding: 44px 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-about { grid-column: auto; }
  .foot-bar { flex-direction: column; text-align: center; gap: 7px; }
  .top-bar-inner { padding: 0 18px; }
}
@media(max-width:480px) {
  .hero-content h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .brand-logo { font-size: 1rem; }
}
