/* ========== Page-specific styles ========== */

/* Page hero (smaller than landing hero) */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 24px; }
.page-hero .lede { max-width: 64ch; }

/* Service detail block */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-detail:last-child { border-bottom: 0; }
.service-detail .sd-num {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.service-detail h2 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 18px 0 24px;
}
.service-detail h2 em { font-style: normal; font-weight: 700; color: var(--accent); }
.service-detail .body p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 60ch;
}
.service-detail .body ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.service-detail .body ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-detail .body ul li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.service-detail .price-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.service-detail .price-card .price {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.service-detail .price-card .price em { font-style: normal; color: var(--accent); }
.service-detail .price-card .price small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* About — stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-row .stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.stats-row .stat:last-child { border-right: 0; }
.stats-row .stat .num {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stats-row .stat .num em { font-style: normal; color: var(--accent); }
.stats-row .stat .lbl {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 24ch;
}

/* About — history */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.history-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.history-list .year {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  font-style: normal;
}
.history-list h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.history-list p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 58ch;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-card .photo {
  aspect-ratio: 4/5;
  background:
    radial-gradient(80% 70% at 50% 30%, #2C3E62 0%, transparent 60%),
    linear-gradient(180deg, #1B2A4A, #0E1F3A);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.35);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
}
.team-card .info { padding: 20px 22px 24px; }
.team-card .name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.team-card .role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.team-card .exp {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  line-height: 1.5;
}

/* Licenses */
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.license {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  position: relative;
}
.license .seal {
  position: absolute;
  top: 24px; right: 24px;
  width: 56px; height: 56px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 16px;
}
.license .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.license h3 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.license .body { color: var(--muted); font-size: 13.5px; line-height: 1.55; flex: 1; }
.license .issuer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink);
}
.license .issuer strong { font-family: var(--font-sans); font-size: 14px; font-weight: 600; display:block; margin-top:4px;}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-block:last-child { border-bottom: 0; }
.contact-block .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.contact-block .big {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.contact-block .big em { font-style: normal; font-weight: 700; color: var(--accent); }
.contact-block .small { color: var(--muted); font-size: 14px; max-width: 50ch; }
.contact-block .messengers {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.contact-block .messengers a {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.contact-block .messengers a:hover { border-color: var(--ink); }

/* Contact form */
.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
}
.form-card h2 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.form-card h2 em { font-style: normal; font-weight: 700; color: var(--accent); }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-field textarea.input {
  height: auto;
  padding: 14px;
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-sans);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 1024px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail .body ul { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row .stat { border-bottom: 1px solid var(--line); }
  .stats-row .stat:nth-child(2) { border-right: 0; }
  .history-grid { grid-template-columns: 1fr; gap: 32px; }
  .history-list li { grid-template-columns: 80px 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .license-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-row .stat { border-right: 0 !important; }
  .team-grid { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
