@font-face {
  font-family: "OG Editorial";
  src: url("/assets/cormorant.ttf") format("truetype");
  font-display: swap;
}
html { background: #102a31; }
.shell { max-width: 1328px; padding: 0 clamp(12px, 3vw, 44px) 20px; }
.top { padding: 16px 4px; border-color: #385155; }
.modules {
  --ink: #173338;
  --muted: #40575a;
  --paper: #f6f7f3;
  --edge: clamp(18px, 4.5vw, 68px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 18px;
  overflow: clip;
}
.module-hero {
  padding: clamp(22px, 3vw, 40px) var(--edge) clamp(35px, 5vw, 76px);
  background-color: #123037;
  background-image: linear-gradient(90deg,#102e35 3%,rgba(16,46,53,.98) 34%,rgba(16,46,53,.86) 49%,rgba(16,46,53,.14) 78%),url("/assets/ogarnij-home-collage-v1-web.webp");
  background-position: center, right 54%;
  background-size: cover, 82% auto;
  background-repeat: no-repeat;
  color: #fffaf0;
}
.module-hero .crumb { margin: 0 0 clamp(24px,4vw,55px); font-size: .88rem; color: #c6d5d4; }
.module-hero .crumb a { color: inherit; }
.module-status, .module-name { margin: 0; font-weight: 800; font-size: .87rem; line-height: 1.5; }
.module-status { color: #edca88; letter-spacing: .09em; text-transform: uppercase; }
.module-hero h1, .module-group h2, .module-app h2 {
  font-family: "OG Editorial", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.035em;
}
.module-hero h1 { font-size: clamp(2.65rem,5.6vw,5.4rem); line-height: .98; max-width: 13ch; margin: 14px 0 22px; }
.module-hero .lead { color: #e0e9e6; font-size: clamp(1rem,1.4vw,1.15rem); max-width: min(49ch,53%); margin: 0; line-height: 1.65; }
.module-menu { padding: 14px var(--edge); display: flex; flex-wrap: wrap; gap: 6px 12px; background: #e8eeea; border-bottom: 1px solid #ccd9d3; }
.module-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 13px; border: 1px solid #b3c6bd; border-radius: 24px; color: #244c46; text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.module-menu a:hover { background: #d5e4db; border-color: #72988a; }
.modules :focus-visible { outline: 3px solid #ae691a; outline-offset: 3px; }
.module-group { margin: clamp(38px,5vw,72px) var(--edge) 0; scroll-margin-top: 20px; }
.dom { --accent: #256557; --line: #80aa97; --wash: #e9f2ed; }
.codziennosc { --accent: #2a5976; --line: #85a6bb; --wash: #e8f0f4; }
.bliscy { --accent: #7b474b; --line: #bf9994; --wash: #f7eeea; }
.module-group h2 { color: var(--ink); margin: 0 0 18px; display: flex; align-items: center; gap: 18px; font-size: clamp(2rem,3.1vw,3rem); line-height: 1.15; }
.module-group h2::after { content: ""; height: 1px; background: var(--line); flex: 1; opacity: .7; }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.module-card {
  scroll-margin-top: 18px;
  background: linear-gradient(123deg, var(--wash), #fff 83%);
  border: 1px solid #d3ddda;
  border-inline-start: 3px solid var(--line);
  border-radius: 12px;
  padding: clamp(19px,2.1vw,32px);
}
.module-card:target, .module-app:target { outline: 3px solid #a16923; outline-offset: 3px; }
.module-name { color: var(--accent,#315c52); }
.module-card h3 { margin: 8px 0 12px; font-size: clamp(1.18rem,1.6vw,1.48rem); line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.module-card p:not(.module-name), .module-app p:not(.module-name) { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.68; }
.module-app { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; background: #e5ede8; border: 1px solid #c7d7ce; border-radius: 14px; overflow: hidden; margin: clamp(36px,5vw,68px) var(--edge) 20px; }
.module-app > div { padding: clamp(22px,3vw,46px); }
.module-app h2 { margin: 6px 0 12px; line-height: 1.06; font-size: clamp(2rem,3vw,3rem); }
.module-app img { display: block; width: 100%; height: auto; }
.module-app a,.module-related a { color: #1d554d; font-weight: 700; }
.module-related { padding: 0 var(--edge) clamp(28px,4vw,48px); }
.module-related p { color: var(--muted); max-width: 82ch; line-height: 1.65; }
@media(max-width: 700px) {
  .shell { padding-inline: 10px; }
  .module-hero { background-size: cover,auto 100%; background-image: linear-gradient(90deg,rgba(12,40,46,.97) 0%,rgba(12,40,46,.9) 58%,rgba(12,40,46,.70)),url("/assets/ogarnij-home-collage-v1-web.webp"); }
  .module-hero .lead { max-width: 42ch; }
  .module-grid,.module-app { grid-template-columns: 1fr; }
  .module-grid { gap: 10px; }
  .module-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .module-menu a { justify-content: center; text-align: center; padding-inline: 5px; }
  .module-app img { width: min(100%,420px); justify-self: center; }
}
@media print {
  .module-hero,.module-menu,.modules,.module-card,.module-app { color: #111; background: white; }
  .module-hero .lead,.module-status { color: #222; }
  .module-menu,.module-app img { display: none; }
  .module-card { break-inside: avoid; }
}
@media (max-width: 360px) {
  .shell > .og-global-nav { padding-inline: 5px; gap: 3px; }
  .shell > .og-global-nav .og-home-button { padding-inline: 7px; }
}
