@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/roboto-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Roboto Condensed";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-condensed-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Roboto Condensed";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/roboto-condensed-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Roboto Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-condensed-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Roboto Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/roboto-condensed-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Вигляд за архівною головною beautified.dk (тема Neve, 12.2021): шапка й футер кольору #a67f78, чорна назва сайта
   вузьким шрифтом, світле меню праворуч; заголовки Roboto Condensed великими літерами з розрядкою, текст Roboto #111,
   тонка лінія під H1, ряд портретних фото; футер у колонках із заголовками великими літерами й © по центру. */
:root {
  --rose: #a67f78;
  --rose-dark: #8c6660;
  --sand: #f0d0a7;
  --gold: #daae60;
  --ink: #111;
  --muted: #4d4545;
  --line: #e5d7cd;
  --soft: #f7f1ec;
  --bg: #fff;
  --wrap: 1170px;
  --read: 780px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 "Roboto", Arial, Helvetica, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* Шапка */
.site-header { background: var(--rose); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 66px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font: 700 30px/1 "Roboto Condensed", Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #000; text-decoration: none; }
.brand small { font-size: .5em; letter-spacing: .04em; margin-left: .08em; }
.brand:hover { color: #000; text-decoration: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.menu a { color: #fff; font: 500 16px/1.4 "Roboto", Arial, sans-serif; text-decoration: none; padding: 6px 0; display: block; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--sand); }

main.wrap { padding-top: 40px; padding-bottom: 72px; }

/* Заголовки */
h1, h2, h3 { font-family: "Roboto Condensed", Arial, Helvetica, sans-serif; font-weight: 400; color: var(--ink); text-transform: uppercase; }
h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.15; letter-spacing: .06em; margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; letter-spacing: .09em; margin: 52px 0 14px; scroll-margin-top: 24px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; max-width: 900px; }

/* Головна: ряд портретних фото, як на архівній головній */
.section-title { margin: 44px 0 20px; font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.card { margin: 0; }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { margin: 12px 0 0; font: 400 17px/1.3 "Roboto Condensed", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--rose-dark); }
/* Плитки без фото: кольори архівної теми (#a67f78, пісочний #f0d0a7), номер вузьким шрифтом */
.tile-link { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; min-height: 200px; padding: 22px 20px 20px; background: var(--soft); border-top: 4px solid var(--rose); text-decoration: none; transition: background .2s ease; }
.tile-link:hover { background: var(--line); color: var(--ink); }
.tile-num { font: 700 40px/1 "Roboto Condensed", Arial, sans-serif; color: var(--rose); }
.tile-title { font: 400 20px/1.25 "Roboto Condensed", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tile-sub { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cards:has(.tile) { gap: 16px; }

/* Текст */
.prose { max-width: var(--read); }
.prose p, .prose ul { margin: 0 0 18px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--rose); }
.home-text { margin-top: 64px; }
.home-text h2:first-child { margin-top: 0; }
.checklist { margin-top: 56px; padding: 6px 28px 10px; background: var(--soft); border-left: 4px solid var(--rose); }
.checklist h2 { margin-top: 24px; }

/* Службові сторінки */
.page h1 { max-width: var(--read); }
.not-found { text-align: center; padding: 24px 0; max-width: none; }
.not-found h1 { border-bottom: 0; padding-bottom: 0; }
.not-found .code { font: 700 88px/1 "Roboto Condensed", Arial, sans-serif; color: var(--line); margin-bottom: 12px; }
.btn { display: inline-block; margin-top: 12px; padding: 12px 28px; background: var(--rose); color: #fff; font: 400 16px/1.2 "Roboto Condensed", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--rose-dark); color: #fff; }

/* Футер */
.site-footer { background: var(--rose); color: #000; border-top: 4px solid var(--rose-dark); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-title { font: 700 20px/1.3 "Roboto", Arial, sans-serif; text-transform: uppercase; margin-bottom: 14px; }
.footer-main p { margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; text-transform: uppercase; }
.footer-links a { color: #000; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #000; }
.footer-bottom { text-align: center; padding: 6px 0 22px; font-weight: 500; text-transform: uppercase; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .menu ul { justify-content: center; gap: 0 16px; }
  .menu a { font-size: 15px; }
  main.wrap { padding-top: 28px; }
  .lead { font-size: 16.5px; }
  .cards { gap: 22px 12px; }
  .card-title { font-size: 15px; }
  .checklist { padding: 4px 18px 6px; }
  .cards:has(.tile) { grid-template-columns: 1fr; gap: 10px; }
  .tile-link { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; row-gap: 2px; min-height: 0; padding: 14px 16px; border-top: 0; border-left: 4px solid var(--rose); }
  .tile-num { grid-row: span 2; font-size: 30px; align-self: center; }
  .tile-title { font-size: 17px; letter-spacing: .06em; }
  .tile-sub { font-size: 14px; }
  .footer-main { grid-template-columns: 1fr; }
}
