
:root {
  --bg: #ffffff;
  --ink: #1f1b17;
  --muted: #6f665d;
  --line: #e8e0d7;
  --soft: #f8f5f0;
  --soft-2: #fbfaf7;
  --accent: #8f5f2f;
  --accent-2: #b58b54;
  --shadow: 0 18px 60px rgba(36, 26, 18, .10);
  --radius: 24px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(181,139,84,.10), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(143,95,47,.08), transparent 24%);
  z-index: -1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 230px; color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  transform: rotate(22.5deg);
  flex: 0 0 auto;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent-2);
}
.brand strong { display: block; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.brand span { display: block; color: var(--muted); font-size: .86rem; margin-top: -2px; }
.nav-links, .language-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a, .language-links a {
  color: var(--ink);
  font-size: .92rem;
  padding: 8px 11px;
  border-radius: 999px;
}
.nav-links a:hover, .language-links a:hover, .language-links a.active {
  background: var(--soft);
  text-decoration: none;
}
.language-links { justify-content: flex-end; }
.hero { padding: 74px 0 50px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: 48px; align-items: center; }
.kicker { color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: .77rem; font-weight: 700; margin: 0 0 18px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; font-weight: 500; color: var(--ink); }
h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); margin: 0 0 10px; letter-spacing: -.055em; }
.subtitle { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.42rem, 3vw, 2.38rem); line-height: 1.18; margin: 0 0 26px; color: #382d24; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #423b35; max-width: 760px; margin: 0 0 18px; }
.hero-note { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; color: var(--accent); margin-top: 16px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--ink); color: var(--ink); font-weight: 650;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.hero-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--soft-2); box-shadow: var(--shadow); }
.hero-card img { border-radius: calc(var(--radius) - 8px); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-card figcaption { padding: 12px 4px 2px; color: var(--muted); font-size: .95rem; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.stat { border-top: 1px solid var(--line); padding-top: 15px; }
.stat strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .94rem; }
.section { padding: 58px 0; border-top: 1px solid var(--line); }
.section-header { max-width: 780px; margin-bottom: 30px; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin: 0 0 12px; letter-spacing: -.035em; }
.section-header p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .material-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; }
.card { padding: 18px; }
.card img { border-radius: 16px; background: var(--soft); width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.card h3, .material-card h3 { font-size: 1.32rem; margin: 16px 0 6px; }
.card p, .material-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.material-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--soft); }
.material-card .pad { padding: 18px; }
.material-card.cover img { object-fit: contain; padding: 18px; }
.quote-band { margin: 58px 0 0; padding: 28px; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); }
.quote-band p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.3; }
.rules-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.rules-toc { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: #fff; }
.rules-toc strong { display: block; margin-bottom: 8px; }
.rules-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: .95rem; }
.rule-content {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 44px);
  background: #fff;
  box-shadow: 0 12px 42px rgba(36,26,18,.055);
}
.rule-content h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin: 0 0 18px; }
.rule-content h2, .rule-content h3, .rule-content p strong { font-family: Georgia, "Times New Roman", serif; color: var(--ink); }
.rule-content p, .rule-content li { font-size: 1.02rem; color: #342f2a; }
.rule-content ul { padding-left: 1.2rem; }
.rule-content table { width: 100% !important; border-collapse: separate; border-spacing: 12px; margin: 22px 0; }
.rule-content td { vertical-align: top; text-align: center; }
.rule-content img { margin: 6px auto; max-height: 420px; object-fit: contain; border-radius: 14px; }
.rule-content a:has(img) { display: inline-block; }
.rule-content [align="center"] { text-align: center; }
.rule-content br + br { display: none; }
.rule-content .center { text-align: center; }
.details-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; margin-top: 18px; }
details summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); background: var(--soft); }
details[open] summary { border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; align-items: stretch; }
.gallery a { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--soft); min-height: 220px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:nth-child(2) img, .gallery a:nth-child(3) img { object-fit: contain; padding: 16px; }
.footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer strong { color: var(--ink); }
.back-top { position: fixed; right: 18px; bottom: 18px; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 14px; font-size: .9rem; box-shadow: var(--shadow); }
@media (max-width: 960px) {
  .navbar { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .hero-grid, .rules-shell { grid-template-columns: 1fr; }
  .rules-toc { position: static; }
  .grid-4, .grid-3, .gallery { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding-top: 46px; }
  .grid-4, .grid-3, .gallery { grid-template-columns: 1fr; }
  .nav-links a, .language-links a { padding-left: 8px; padding-right: 8px; }
  .rule-content table, .rule-content tbody, .rule-content tr, .rule-content td { display: block; width: 100% !important; }
  .back-top { display: none; }
}


.brand-signature {
  width: min(280px, 46vw);
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}
.brand:has(.brand-signature) {
  min-width: 280px;
}
.image-feature {
  display: grid;
  gap: 14px;
  max-width: 980px;
}
.image-feature a.image-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.image-feature img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.more-images {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  padding: 10px 0;
}
.more-images::after {
  content: "↗";
  font-size: .95em;
}




/* Updated signature + left-aligned rules */
.brand-signature {
  width: min(520px, 68vw);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
}
.brand:has(.brand-signature) {
  min-width: 340px;
}
.rule-content,
.rule-content * {
  text-align: left;
}
.rule-content td {
  text-align: left;
  vertical-align: top;
}
.rule-content img {
  margin: 8px 0;
}
.rule-content ul,
.rule-content ol {
  padding-left: 1.35rem;
  margin: 0.5rem 0 1rem;
  list-style-position: outside;
}
.rule-content .simple-bullets {
  list-style: disc;
}
.rule-content .simple-bullets li {
  margin: 0 0 .4rem;
}
@media (max-width: 960px) {
  .brand-signature {
    width: min(440px, 82vw);
    max-height: 126px;
  }
}
@media (max-width: 620px) {
  .brand-signature {
    width: min(92vw, 420px);
    max-height: 112px;
  }
}


/* Final requested refinements: larger signature, left-aligned rules, plain bullets */
.brand-signature {
  width: min(560px, 70vw);
  max-height: 165px;
  object-fit: contain;
  object-position: left center;
}
.brand:has(.brand-signature) {
  min-width: min(560px, 70vw);
}
.rule-content,
.rule-content * {
  text-align: left !important;
}
.rule-content td {
  text-align: left !important;
  vertical-align: top;
}
.rule-content img {
  margin: 8px 0;
}
.rule-content ul,
.rule-content ol {
  padding-left: 1.35rem;
  margin: 0.5rem 0 1rem;
  list-style-position: outside;
}
.rule-content .simple-bullets {
  list-style: disc;
}
.rule-content .simple-bullets li {
  margin: 0 0 .4rem;
}
@media (max-width: 960px) {
  .brand-signature {
    width: min(480px, 86vw);
    max-height: 142px;
  }
  .brand:has(.brand-signature) {
    min-width: min(480px, 86vw);
  }
}
@media (max-width: 620px) {
  .brand-signature {
    width: min(94vw, 440px);
    max-height: 120px;
  }
}


/* Two-row language switcher: English / Greek, then Russian / French */
.language-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-auto-rows: min-content;
  gap: 6px 8px;
  justify-content: end;
  justify-items: end;
  align-items: center;
}
.language-links a {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .language-links {
    justify-content: start;
    justify-items: start;
  }
}


/* Requested visual refinements: header signature, title scale, centered compact gallery */
.site-header .container {
  width: calc(100% - 40px);
  max-width: none;
  margin-inline: 20px;
}
.navbar {
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  align-items: flex-start;
}
.brand-signature {
  width: min(430px, 42vw);
  max-height: 175px;
  object-fit: contain;
  object-position: left top;
}
.brand:has(.brand-signature) {
  min-width: min(430px, 42vw);
}
h1 {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
}
.subtitle {
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
}
.section h2 {
  font-size: clamp(1rem, 2.1vw, 1.7rem);
}
.rule-content h1 {
  font-size: clamp(1.1rem, 2.5vw, 2.2rem);
}
.card h3,
.material-card h3 {
  font-size: .95rem;
}
.image-feature {
  max-width: 490px;
  margin-inline: auto;
}
.image-feature a.image-frame {
  width: 100%;
}
@media (max-width: 960px) {
  .site-header .container {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }
  .brand-signature {
    width: min(360px, 72vw);
    max-height: 145px;
  }
  .brand:has(.brand-signature) {
    min-width: min(360px, 72vw);
  }
}
@media (max-width: 620px) {
  .brand-signature {
    width: min(320px, 88vw);
    max-height: 130px;
  }
  .brand:has(.brand-signature) {
    min-width: min(320px, 88vw);
  }
}


/* Requested fixes: show full printable board image and slightly enlarge final images */
.grid-3 .material-card:nth-child(2) img {
  object-fit: contain;
  background: #ffffff;
  padding: 14px;
}
.image-feature {
  max-width: 620px;
}
