:root {
  --bg: #f7f3ec;
  --surface: #fffaf3;
  --text: #241d18;
  --muted: #6f6257;
  --line: #eadfd1;
  --brand: #8a4b28;
  --brand-dark: #5d321c;
  --accent: #d9a86c;
  --shadow: 0 18px 45px rgba(67, 42, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-toggle,
.mobile-menu,
.mobile-bottom-consult {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  color: var(--brand-dark);
  background: #f0e3d4;
  text-decoration: none;
}

.header-phone {
  padding: 9px 14px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 999px;
  white-space: nowrap;
}

.mobile-menu {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mobile-menu a,
.mobile-menu summary {
  display: block;
  padding: 11px 12px;
  color: var(--text);
  border-radius: 12px;
  font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu summary:hover {
  background: #f0e3d4;
  text-decoration: none;
}

.mobile-menu details a {
  margin-left: 12px;
  color: var(--muted);
}

.hero,
.page-hero,
.contact-hero {
  padding: 72px 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(217, 168, 108, 0.35), transparent 34%),
    linear-gradient(180deg, #fff8ed 0%, var(--bg) 100%);
}

.contact-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
}

.contact-hero-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.contact-quick {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact-quick strong,
.contact-quick a,
.contact-quick span {
  display: block;
}

.contact-quick a {
  margin: 12px 0;
  font-size: 28px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-text,
.lead,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.btn.primary {
  color: #fff;
  background: var(--brand-dark);
}

.btn.ghost {
  color: var(--brand-dark);
  background: #f0e3d4;
}

.hero-card,
.card,
.article-item,
.content-block,
.contact-card,
.meta-box,
.notice,
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-card ul {
  padding-left: 20px;
  margin: 14px 0 0;
}

.section {
  padding: 64px 0;
}

.section.soft {
  background: #fff8ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 26px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.article-item,
.content-block {
  padding: 24px;
}

.card p,
.article-item p,
.content-block p,
.muted {
  color: var(--muted);
}

.text-link {
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list p {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.question-grid a {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 700;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-item span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list section {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-item {
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item summary {
  padding: 15px 16px;
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.related-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--brand-soft);
  border-radius: 14px;
}

.related-inline a {
  color: var(--brand);
  font-weight: 700;
}

.faq-list.compact h3 {
  font-size: 17px;
}

.meta-box {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 20px;
}

.meta-box div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.meta-box dt {
  color: var(--brand);
  font-weight: 700;
}

.meta-box dd {
  margin: 0;
  color: var(--muted);
}

.article-body {
  padding: 28px 0;
  font-size: 18px;
}

.article-image {
  margin: 26px 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.cover-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.notice {
  padding: 20px;
  color: var(--muted);
}

.cta {
  margin-top: 28px;
  padding: 28px;
}

.contact-main,
.contact-side {
  display: grid;
  gap: 18px;
}

.contact-card,
.contact-form-card,
.qr-box,
.map-box {
  padding: 28px;
}

.contact-layout {
  grid-template-areas:
    "info form"
    "prepare qr"
    "faq map";
}

.contact-info-card {
  grid-area: info;
}

.contact-prepare-card {
  grid-area: prepare;
}

.contact-form-area {
  grid-area: form;
}

.contact-faq-card {
  grid-area: faq;
}

.contact-qr {
  grid-area: qr;
}

.contact-map-card {
  grid-area: map;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

.hidden-field {
  display: none !important;
}

.form-success {
  padding: 12px 14px;
  color: #155b31;
  background: #e9f7ef;
  border: 1px solid #bbe6ca;
  border-radius: 14px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.qr-box img {
  width: min(220px, 100%);
  height: auto;
  display: block;
  border-radius: 18px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-list a {
  padding: 9px 12px;
  background: #f0e3d4;
  border-radius: 999px;
  font-weight: 700;
}

.site-footer {
  padding: 44px 0;
  color: #f8efe5;
  background: var(--brand-dark);
}

table {
  max-width: 100%;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #eadaca;
}

@media (max-width: 880px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .two-col,
  .contact-hero-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .meta-box div {
    grid-template-columns: 1fr;
  }

  .section,
  .hero,
  .page-hero,
  .contact-hero {
    padding: 44px 0;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 58px;
  }

  .container,
  .narrow {
    width: min(100% - 24px, 680px);
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 58px;
    padding: 8px 0;
    align-items: center;
    flex-direction: row;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 14px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .desktop-nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    padding: 7px;
    display: grid;
    align-content: center;
    gap: 4px;
    color: var(--brand-dark);
    background: #f0e3d4;
    border: 0;
    border-radius: 14px;
  }

  .menu-toggle span {
    height: 2px;
    display: block;
    background: var(--brand-dark);
    border-radius: 2px;
  }

  .menu-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-header.menu-open .mobile-menu {
    display: block;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 36px);
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  h3 {
    font-size: 18px;
  }

  .hero,
  .page-hero,
  .contact-hero {
    padding: 28px 0 32px;
  }

  .hero-text,
  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    min-height: 42px;
    padding: 9px 12px;
  }

  .hero-card,
  .card,
  .article-item,
  .content-block,
  .contact-card,
  .contact-form-card,
  .qr-box,
  .map-box,
  .meta-box,
  .notice,
  .cta {
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(67, 42, 24, 0.08);
  }

  .hero-card,
  .card,
  .article-item,
  .content-block,
  .contact-card,
  .contact-form-card,
  .qr-box,
  .map-box,
  .cta {
    padding: 18px;
  }

  .section {
    padding: 34px 0;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .cards,
  .article-list,
  .check-list {
    gap: 12px;
  }

  .card p,
  .article-item p,
  .content-block p {
    margin-bottom: 0;
  }

  .question-grid a {
    padding: 14px 16px;
  }

  .article-page {
    padding-top: 28px;
  }

  .article-body {
    padding: 18px 0;
    font-size: 17px;
    line-height: 1.85;
  }

  .article-body p {
    margin: 0 0 16px;
  }

  .article-image {
    margin: 20px 0;
  }

  .meta-box {
    margin: 20px 0;
    padding: 16px;
  }

  .faq-list {
    gap: 10px;
  }

  .faq-item summary {
    padding: 13px 14px;
  }

  .faq-item p {
    padding: 0 14px 14px;
  }

  .contact-hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-areas:
      "qr"
      "info"
      "prepare"
      "form"
      "faq"
      "map";
  }

  .contact-quick a {
    font-size: 24px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 11px 12px;
  }

  .footer-grid {
    gap: 18px;
  }

  .mobile-bottom-consult {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    height: 54px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 250, 243, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(67, 42, 24, 0.12);
  }

  .mobile-bottom-consult a {
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
    border-right: 1px solid var(--line);
  }

  .mobile-bottom-consult a:first-child {
    color: #fff;
    background: var(--brand-dark);
  }

  .mobile-bottom-consult a:last-child {
    border-right: 0;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
