:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .76);
  --weak: rgba(255, 255, 255, .54);
  --glass: rgba(14, 24, 36, .58);
  --glass-strong: rgba(9, 17, 27, .72);
  --line: rgba(255, 255, 255, .16);
  --accent: #f2a348;
  --accent-blue: #1e77c8;
  --danger: #ff655f;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --script: "Segoe Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    linear-gradient(90deg, rgba(14, 20, 31, .80), rgba(10, 18, 30, .48) 42%, rgba(6, 12, 20, .76)),
    linear-gradient(180deg, rgba(9, 12, 18, .15), rgba(6, 12, 18, .78)),
    url("assets/background.svg") center / cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 38vw) minmax(500px, 1fr);
  gap: clamp(34px, 4.6vw, 78px);
  align-items: center;
  width: min(1600px, calc(100% - 72px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.profile-panel {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
}

.identity {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 28px;
  align-items: center;
}

.brand-mark {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background:
    linear-gradient(135deg, transparent 31%, #f08a18 32% 68%, transparent 69%),
    linear-gradient(135deg, var(--accent-blue), #075ca7);
  transform: rotate(45deg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
}

.brand-mark span {
  transform: rotate(-45deg);
  font-size: 54px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.welcome {
  margin: 0 0 8px;
  font-family: var(--script);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: 0;
}

h1 {
  display: inline-block;
  margin: 0;
  padding: 6px 10px 10px;
  border: 4px solid rgba(255, 101, 95, .95);
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 500;
  letter-spacing: .04em;
}

.site-type {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.quote-card,
.motto-card,
.time-card,
.link-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.quote-card {
  position: relative;
  min-height: 150px;
  padding: 36px 58px 32px;
  border-radius: 8px;
}

.quote-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--script);
  font-size: 24px;
}

.quote-card p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  font-weight: 700;
}

.quote-mark {
  position: absolute;
  left: 24px;
  top: 18px;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.quote-mark.end {
  inset: auto 24px 14px auto;
}

.contact-row {
  display: flex;
  gap: 28px;
  padding-left: 22px;
}

.contact-row a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 31px;
  border-radius: 7px;
  transition: transform .2s ease, background .2s ease;
}

.contact-row a:hover,
.contact-row a:focus-visible {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}

.content-panel {
  display: grid;
  align-content: center;
  gap: 34px;
}

.top-cards {
  display: grid;
  grid-template-columns: minmax(230px, .88fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.motto-card {
  display: grid;
  align-content: center;
  min-height: 176px;
  padding: 32px 34px;
  border-radius: 8px;
}

.motto-card p {
  margin: 0 0 22px;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.45;
}

.motto-card strong {
  justify-self: end;
  color: rgba(255,255,255,.9);
  font-size: 22px;
}

.time-card {
  min-height: 214px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 22px 30px;
  border: 4px solid var(--danger);
  border-radius: 4px;
  background: var(--glass-strong);
  text-align: center;
}

.time-card p {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
}

.time-card time {
  display: block;
  margin: 16px 0 14px;
  font-family: "DS-Digital", "Digital-7", "Courier New", monospace;
  font-size: clamp(44px, 4.2vw, 62px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.time-card small {
  display: block;
  margin-top: 8px;
  color: var(--weak);
  font-size: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.section-title span {
  font-size: 34px;
  color: #fff;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: .03em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px;
}

.link-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  align-content: center;
  gap: 6px 18px;
  padding: 22px 28px;
  border-radius: 7px;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.link-card:nth-child(1),
.link-card:nth-child(4) {
  background: rgba(132, 121, 83, .66);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.36);
  background: rgba(19, 31, 45, .82);
}

.icon {
  grid-area: icon;
  align-self: center;
  font-size: 40px;
}

.link-card strong {
  grid-area: title;
  align-self: end;
  font-size: 23px;
  letter-spacing: .04em;
}

.link-card small {
  grid-area: desc;
  color: var(--weak);
  font-size: 13px;
}

.details {
  background: #f5f0e7;
  color: #18232e;
}

.detail-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 86px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.details article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(24,35,46,.14);
  border-radius: 8px;
  background: #fffaf2;
}

.details h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.details p {
  margin: 0;
  color: #5e676d;
  line-height: 1.85;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 24px;
  color: #cfd8df;
  background: #101a24;
  font-size: 14px;
}

.site-footer p { margin: 0; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.simple-page {
  background: #f5f0e7;
  color: #18232e;
}

.simple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1020px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.simple-header a { color: #18232e; font-weight: 800; }
.simple-header .home-link { color: #a45032; }

.simple-main {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 90px;
}

.simple-main h1 {
  border: 0;
  padding: 0;
  margin-bottom: 34px;
  color: #18232e;
  font-size: clamp(42px, 8vw, 72px);
}

.legal-block {
  padding: 24px 0;
  border-top: 1px solid rgba(24,35,46,.16);
}

.legal-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal-block p {
  margin: 0;
  color: #5e676d;
  line-height: 1.9;
}

.inline-link {
  color: #a45032;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(920px, calc(100% - 64px));
    gap: 52px;
  }

  .profile-panel { gap: 38px; }
  .identity { max-width: 760px; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }

  .page-shell {
    width: calc(100% - 32px);
    padding: 36px 0 48px;
  }

  .identity {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 15px;
  }

  .brand-mark {
    width: 74px;
    height: 74px;
    border-radius: 19px;
  }

  .brand-mark span { font-size: 32px; }
  .welcome { font-size: clamp(42px, 13vw, 54px); }
  h1 { font-size: clamp(30px, 9vw, 42px); border-width: 3px; }
  .site-type { font-size: 13px; }

  .quote-card {
    min-height: auto;
    padding: 30px 38px 30px;
  }

  .quote-card p { font-size: 16px; }
  .contact-row { gap: 13px; padding-left: 0; }
  .contact-row a { width: 44px; height: 44px; font-size: 26px; }

  .top-cards,
  .link-grid,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .top-cards { gap: 18px; }
  .motto-card { min-height: 148px; padding: 28px; }
  .time-card { min-height: 196px; }
  .time-card time { font-size: clamp(42px, 12vw, 58px); }
  .link-card { min-height: 110px; padding: 22px 28px; }
  .detail-inner { width: calc(100% - 32px); padding: 48px 0 58px; }
  .details article { min-height: auto; }
  .site-footer { display: block; text-align: center; }
  .site-footer a { display: inline-block; margin-top: 8px; }
}
