:root {
  --color-bg: #f3f4f7;
  --color-surface: #ffffff;
  --color-text: #18223a;
  --color-muted: #5a6172;
  --color-accent: #3558a2;
  --color-border: #dbe1ef;
  --shadow-soft: 0 20px 60px rgba(24, 34, 58, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Times New Roman", Times, serif; color: var(--color-text); background: linear-gradient(180deg, #eef1f8 0%, #f8fafc 100%); line-height: 1.7; font-size: 1.25rem; }
a { color: inherit; }
a:hover { color: var(--color-accent); }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(53, 88, 162, 0.45); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--color-accent); border-bottom: none; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: grid; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 0.95rem; color: #fff; }
.brand-title { color: rgba(255,255,255,0.65); font-size: 0.79rem; }

.site-nav { position: fixed; top: 77px; left: 0; right: 0; bottom: 0; z-index: 99; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.32s ease; background: rgba(14, 22, 45, 0.97); }
.site-nav.is-open { opacity: 1; pointer-events: auto; }
.site-nav-panel { display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-nav-main { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.site-nav-label { display: none; }
.site-nav a { display: block; text-decoration: none; color: rgba(255, 255, 255, 0.65); font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 300; line-height: 1.2; padding: 10px 24px; border-radius: 8px; border: none; transition: color 0.18s; letter-spacing: -0.01em; }
.site-nav a:hover, .site-nav a.is-active { color: #fff; background: transparent; border: none; }
.site-nav-side { display: none; }

.nav-toggle { display: inline-block; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 10px; background: rgba(255,255,255,0.12); cursor: pointer; }
.nav-toggle[aria-expanded="true"] { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { padding-top: 88px; }
.section { padding: 42px 0; scroll-margin-top: 96px; }
.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 26px; box-shadow: var(--shadow-soft); padding: clamp(22px, 4vw, 40px); }
.hero { padding-top: 34px; }
.hero-grid, .section-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
.section-grid { align-items: start; }

.kicker { margin: 0 0 10px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.45rem); }
h3 { font-size: 1.1rem; }
.hero-text { font-size: 1.08rem; color: var(--color-muted); margin: 18px 0 0; max-width: 680px; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 999px; text-decoration: none; background: var(--color-accent); color: #fff; border: 1px solid transparent; font-weight: 600; }
.button:hover { color: #fff; filter: brightness(1.06); }
.button-light { background: #fff; color: var(--color-accent); border-color: var(--color-border); }

.portrait-card { margin: 0; border: 1px solid var(--color-border); border-radius: 20px; overflow: hidden; background: #f5f7fd; }
.portrait-card img { width: 100%; object-fit: cover; }
.portrait-card figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--color-muted); background: #fff; }

.section-body > p { margin: 0; color: var(--color-muted); }
.check-list, .card-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--color-border); }
.check-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); position: absolute; left: 0; top: 18px; }
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-list li { border: 1px solid var(--color-border); border-radius: 14px; padding: 14px; background: #f9fbff; font-weight: 600; }

.ref-intro { margin: 8px 0 20px; color: var(--color-muted); }
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ref-card { border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; cursor: pointer; background: none; padding: 0; text-align: left; transition: box-shadow 0.2s, transform 0.2s; }
.ref-card:hover { box-shadow: 0 8px 28px rgba(24,34,58,0.18); transform: translateY(-2px); }
.ref-card-img { aspect-ratio: 4/3; overflow: hidden; background: #e8ecf4; }
.ref-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.38s ease; }
.ref-card:hover .ref-card-img img { transform: scale(1.07); }
.ref-card-caption { padding: 10px 12px; background: #fff; }
.ref-card-caption strong { display: block; font-size: 0.8rem; line-height: 1.3; color: var(--color-text); }
.ref-card-caption span { font-size: 0.72rem; color: var(--color-accent); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 30, 0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 100%; max-height: 75vh; border-radius: 12px; object-fit: contain; }
.lightbox-caption { color: rgba(255,255,255,0.6); margin-top: 14px; font-size: 0.88rem; text-align: center; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 2.8rem; line-height: 1; cursor: pointer; padding: 0; transition: color 0.15s; }
.lightbox-close:hover { color: #fff; }

.contact-card { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; font-style: normal; }
.contact-card strong { margin-bottom: 4px; }
.contact-card a { text-decoration: none; color: var(--color-accent); }

.legal-page { padding: 124px 0 72px; }
.legal-content { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border); border-radius: 24px; padding: clamp(24px, 4vw, 42px); }
.legal-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 24px; }
.legal-content h2 { margin-top: 28px; font-size: 1.25rem; }

.site-footer { border-top: 1px solid var(--color-border); margin-top: 30px; padding: 24px 0; color: var(--color-muted); background: rgba(255, 255, 255, 0.65); }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 14px; }

@media (max-width: 920px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
