:root {
  --blue: #225c86;        /* links / headings */
  --teal: #5d9bab;        /* borders / footer / gradient base */
  --teal-line: #9ac4cb;   /* light borders */
  --box: #f5f7f8;         /* panel background */
  --page: #dfe6eb;        /* page background */
  --ink: #2d2b2b;
  --muted: #777;
  --price: #a64470;       /* the original's pink price colour */
  --hover: #f60;          /* orange link hover */
}

* { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  font: 13px/1.55 arial, "liberation sans", freesans, sans-serif;
  color: var(--ink);
  /* Subtle on-theme texture for the page margins (swap for the original stamp_bg.jpg if you have it) */
  background-color: var(--page);
  background-image: radial-gradient(rgba(93, 155, 171, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
}

a { color: var(--blue); font-weight: bold; text-decoration: none; }
a:visited { color: #4d2f99; }
a:hover { color: var(--hover); text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }

/* white rounded container (responsive — original was a rigid 1300px) */
.wrap {
  max-width: none; margin: 20px; background: #fff;   /* full-width with a uniform 20px frame */
  padding: 12px; border-radius: 10px; box-shadow: 0 0 15px #aaa;
}

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 14px; }
.site-header .logo img { height: 86px; }
.header-contacts { text-align: right; font-size: 13px; }
.header-contacts .phone { font-size: 22px; font-weight: bold; }
.header-contacts .phone a { color: var(--teal); }
.header-search { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.header-search input { min-width: 190px; }

/* teal menu bar (CSS-only, no JS) */
.row-menu { background: linear-gradient(to bottom, #7db0bf, #5d9bab); border-radius: 6px; margin-top: 6px; }
.row-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.row-menu li { margin: 0; }
.row-menu a { display: block; color: #fff; font-weight: bold; text-transform: uppercase; font-size: 12px; padding: 9px 16px; }
.row-menu a:hover { background: #6588a0; color: #fff; text-decoration: none; }

/* CSS-only dropdowns (no JS): open on hover OR keyboard/tap focus */
.row-menu li { position: relative; }
.row-menu .has-sub > a::after { content: " \25BE"; font-size: 10px; }
.row-menu li ul {
  display: none; position: absolute; left: 0; top: 100%; z-index: 100;
  min-width: 210px; margin: 0; padding: 0; list-style: none;
  background: #5d9bab; border-radius: 0 0 6px 6px; box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.row-menu li:hover > ul, .row-menu li:focus-within > ul { display: block; }
.row-menu li ul li { display: block; }
.row-menu li ul a { padding: 8px 14px; text-transform: none; font-weight: normal; border-bottom: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.row-menu li ul a:hover { background: #6588a0; }

.content { display: grid; grid-template-columns: 215px minmax(0, 1fr) 255px; gap: 16px; align-items: start; padding: 14px 6px; }
.col-left, .col-center, .col-right { min-width: 0; }
.year-links a { display: inline-block; font-size: 11px; margin: 0 5px 2px 0; }
@media (max-width: 980px) {
  .content { grid-template-columns: 1fr; }
  .col-center { order: -1; }   /* content first on small screens */
}
.layout-2col { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.col-side, .col-main { min-width: 0; }

/* panels (.box / .box-header / .box-cont) — the original's signature look */
.box { background: var(--box); border: 1px solid var(--teal-line); border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.box-center { border: 3px solid var(--teal); border-radius: 14px; }
.box-header {
  background: linear-gradient(to bottom, #7db0bf, #5d9bab);
  color: #fff; text-transform: uppercase; font-weight: bold; font-size: 12px; letter-spacing: .3px;
  padding: 7px 12px; margin: 0; border-bottom: 1px solid #fff;
}
.box-cont { padding: 12px 14px; }

h1, h2, h3 { color: var(--blue); margin: .2em 0 .5em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }

/* lists / cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--teal-line); border-radius: 6px; padding: 10px; }
.card h3 { font-size: 14px; margin: 0 0 4px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 8px 0; border-bottom: 1px dotted var(--teal-line); display: flex; justify-content: space-between; gap: 10px; }
.stamp-mini { list-style: none; margin: 0; padding: 0; }
.stamp-mini li { padding: 7px 0; border-bottom: 1px dotted var(--teal-line); display: flex; justify-content: space-between; gap: 8px; }

/* catalogue */
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stamp-card { background: #fff; border: 1px solid var(--teal-line); border-radius: 6px; padding: 12px; }
.stamp-card h3 { font-size: 14px; margin: 0 0 4px; }
.price { color: var(--price); font-weight: bold; }
.price.big { font-size: 22px; }
.muted { color: var(--muted); font-size: 12px; }

/* forms */
input, select, textarea, button { font: inherit; padding: 7px 9px; border: 1px solid #b9cdd6; border-radius: 4px; background: #fff; }
button { background: linear-gradient(to bottom, #78d4e9, #3fadd4); color: #fff; border: 0; border-bottom: 3px solid #3fadd4; font-weight: bold; cursor: pointer; }
button:hover { background: #3fadd4; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-search input { flex: 1 1 240px; }

/* comments */
.comments { margin-top: 26px; border-top: 2px solid var(--teal); padding-top: 14px; }
.comment { background: #fff; border: 1px solid var(--teal-line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.comment-meta { margin: 0 0 3px; font-size: 12px; color: var(--muted); }
.comment-form { display: grid; gap: 8px; max-width: 560px; }
.comment-form input, .comment-form textarea { width: 100%; }
.notice { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; padding: 9px 11px; border-radius: 5px; }
.errors { background: #fdecea; border: 1px solid #f5c6c2; color: #b71c1c; padding: 9px 11px 9px 26px; border-radius: 5px; }

/* pager */
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 20px 0; }
.pager .disabled { color: #aaa; }
.pager-info { color: var(--muted); }

/* footer */
.box-footer { background: var(--teal); color: #fff; padding: 14px; border-radius: 6px; margin-top: 14px; }
.box-footer a { color: #fff; text-decoration: underline; }

/* shop */
.cart-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.cart-table th, .cart-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--teal-line); vertical-align: middle; }
.cart-table th { color: var(--blue); font-size: 12px; text-transform: uppercase; }
.link-btn { background: none; border: none; color: #b71c1c; font-size: 18px; cursor: pointer; padding: 0 6px; }
.btn-link { display: inline-block; background: linear-gradient(to bottom, #78d4e9, #3fadd4); color: #fff; padding: 9px 14px; border-radius: 4px; font-weight: bold; }
.btn-link:hover { background: #3fadd4; color: #fff; text-decoration: none; }
.link-inline { background: none; border: 0; color: var(--blue); font-weight: bold; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* social buttons (header) */
.social-vk, .social-dzen { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.social-vk { background: #0077ff; color: #fff !important; }
.social-dzen { background: #111; color: #fff !important; }
.social-vk:hover, .social-dzen:hover { text-decoration: none; opacity: .9; }

/* responsive (the original was desktop-only; this stacks gracefully) */
@media (max-width: 820px) {
  .wrap { margin: 8px; padding: 8px; }
  .layout-2col { grid-template-columns: 1fr; }
  .site-header { justify-content: center; text-align: center; }
  .header-contacts { text-align: center; }
  .header-search { justify-content: center; }
}
