/* ==========================================================================
   Styles&Wood Group Plc - Global stylesheet
   Use on every page:  <link rel="stylesheet" href="/css/styleswood.css">
   Fonts (add once in <head>):
   <link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet">

   Contents
   01. Tokens
   02. Reset & base
   03. Typography
   04. Layout helpers
   05. Header & navigation
   06. Page banner & breadcrumbs
   07. Home slider
   08. Content: prose, cards, grids, sidebar
   09. Buttons
   10. Tables
   11. Forms
   12. Alerts, badges, pagination
   13. News / project listings
   14. Footer
   15. Back-to-top & cookie notice
   16. Utilities
   17. Responsive
   18. Accessibility & print
   ========================================================================== */


/* 01. Tokens
   ========================================================================== */
:root {
  /* Colour */
  --navy: #12263f;
  --navy-2: #1c3a5e;
  --teal: #1f9bb0;
  --teal-dark: #167a8c;
  --teal-soft: #e6f4f7;
  --ink: #1f2a37;
  --muted: #5b6776;
  --line: #e3e8ee;
  --bg: #f5f7fa;
  --white: #fff;
  --success: #1e8a5a;
  --warning: #b7791f;
  --danger: #c0392b;

  /* Type */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lato", "Open Sans", sans-serif;

  /* Shape */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(18, 38, 63, .12);
  --shadow-sm: 0 2px 12px rgba(18, 38, 63, .06);

  /* Layout */
  --container: 1170px;
  --header-h: 76px;
}


/* 02. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--navy); }


/* 03. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
h5, h6 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
strong, b { font-weight: 700; color: var(--navy); }
small { font-size: .85em; color: var(--muted); }

blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  background: var(--teal-soft);
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  font-size: 1.1rem;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}
code { background: var(--white); border: 1px solid var(--line); padding: .1em .4em; border-radius: 4px; }
pre { background: var(--navy); color: #dbe5f0; padding: 1.2rem; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }


/* 04. Layout helpers
   ========================================================================== */
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #c6d2e0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Main content with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.layout--no-sidebar { grid-template-columns: minmax(0, 1fr); }
.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }


/* 05. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}
.logo { margin: 0; line-height: 0; }
.logo img { height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.menu > li { position: relative; }
.menu a {
  display: block; padding: 10px 14px;
  font: 700 .8rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); border-radius: 6px;
  transition: background .2s, color .2s;
}
.menu > li > a:hover,
.menu > li:focus-within > a { background: var(--bg); color: var(--teal-dark); }
.menu > li.active > a,
.menu > li.current > a { color: var(--white); background: var(--navy); }

.menu > li.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border: solid currentColor; border-width: 0 2px 2px 0; padding: 2.5px; transform: rotate(45deg);
}

.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; padding: 12px 14px; }
.sub-menu a:hover { background: var(--bg); color: var(--teal-dark); }
.sub-menu .active > a { color: var(--teal-dark); background: var(--teal-soft); }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: var(--white);
  border: 0; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--teal-dark); color: var(--white); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }


/* 06. Page banner & breadcrumbs
   ========================================================================== */
.page-banner {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 56px 0 72px;
  overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--teal);
}
.page-banner h1 { color: var(--white); margin: 0; }
.page-banner p { margin: 12px 0 0; max-width: 680px; color: #c6d2e0; font-size: 1.1rem; }

.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: #9fb3c9; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--white); }

/* Content area that overlaps the banner */
.page-content { padding: 56px 0 80px; }
.page-content--lift { margin-top: -40px; position: relative; z-index: 2; }

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 56px);
  border-top: 5px solid var(--teal);
}


/* 07. Home slider
   ========================================================================== */
.hero { background: var(--navy); }
.slider { position: relative; overflow: hidden; aspect-ratio: 1170 / 600; max-height: 640px; width: 100%; background: var(--navy); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,38,63,.55), rgba(18,38,63,0) 45%);
}
.slide h2 {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 22px max(20px, calc((100% - var(--container)) / 2 + 20px));
  font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,.95);
  border-top: 4px solid var(--teal);
}
.slider-btn {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--teal); color: var(--white); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-btn svg { width: 20px; height: 20px; }
.dots { position: absolute; z-index: 3; top: 18px; right: 22px; display: flex; gap: 8px; }
.dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--white);
  background: transparent; padding: 0; cursor: pointer; transition: background .2s;
}
.dots button.is-active { background: var(--white); }

/* Intro card used on the home page */
.intro { padding: 72px 0 80px; }
.intro-card {
  max-width: 900px; margin: -110px auto 0; position: relative; z-index: 4;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 56px clamp(24px, 6vw, 72px); text-align: center;
  border-top: 5px solid var(--teal);
}
.intro-card h1 { margin-bottom: 22px; }
.intro-card p { font-size: 1.08rem; color: var(--muted); }
.intro-card p:last-child { margin-bottom: 0; }


/* 08. Content: prose, cards, lists
   ========================================================================== */
.prose { max-width: 75ch; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; padding-bottom: .4em; border-bottom: 2px solid var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31,155,176,.45); }
.prose a:hover { text-decoration-color: currentColor; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; margin: .4em 0; }
.prose ul li::before {
  content: ""; position: absolute; left: -1.2em; top: .7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.prose ol li { margin: .4em 0; padding-left: .3em; }
.prose ol li::marker { color: var(--teal-dark); font-weight: 700; }

figure { margin: 1.8rem 0; }
figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }

/* Card */
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
a.card:hover, .card--link:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; margin-bottom: .4em; }
.card__meta { font-size: .85rem; color: var(--muted); margin-bottom: .8em; }
.card__text { color: var(--muted); margin-bottom: 1em; }
.card__footer { margin-top: auto; }

/* Widget (sidebar boxes) */
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.widget h3 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
  position: relative; padding-bottom: 12px; margin-bottom: 16px;
}
.widget h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--teal); border-radius: 2px; }
.widget ul { list-style: none; }
.widget li + li { border-top: 1px solid var(--line); }
.widget li a { display: block; padding: 10px 0; color: var(--ink); font-weight: 600; }
.widget li a:hover, .widget li.active a { color: var(--teal-dark); }

/* Highlight stats / facts */
.fact { text-align: center; padding: 28px 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.fact__value { font: 900 2.4rem/1 var(--font-head); color: var(--teal-dark); }
.fact__label { margin-top: 8px; color: var(--muted); font-size: .92rem; }


/* 09. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 2px solid var(--navy); border-radius: 8px;
  background: var(--navy); color: var(--white);
  font: 700 .85rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: .78rem; }
.btn--lg { padding: 16px 34px; font-size: .95rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.link-more { font-weight: 700; }
.link-more::after { content: " \203A"; }


/* 10. Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--navy); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--navy); color: var(--white);
  font: 700 .8rem var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: var(--teal-soft); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }


/* 11. Forms
   ========================================================================== */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 6px; }
label, .label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.required::after { content: " *"; color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="password"], input[type="number"], input[type="date"],
select, textarea {
  width: 100%; padding: 13px 16px;
  font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #cdd5df; border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8b96a5; }
input:hover, select:hover, textarea:hover { border-color: var(--teal); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,155,176,.18);
}
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--danger); }
.help { font-size: .85rem; color: var(--muted); }
.error { font-size: .85rem; color: var(--danger); }

input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--teal-dark); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }


/* 12. Alerts, badges, pagination
   ========================================================================== */
.alert {
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); border-left-width: 5px;
  background: var(--white); margin-bottom: 1.2rem;
}
.alert--info { border-left-color: var(--teal); background: var(--teal-soft); }
.alert--success { border-left-color: var(--success); background: #e8f6ee; }
.alert--warning { border-left-color: var(--warning); background: #fbf3e2; }
.alert--danger { border-left-color: var(--danger); background: #fbeae8; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-dark);
  font: 700 .75rem var(--font-head); letter-spacing: .05em; text-transform: uppercase;
}
.badge--navy { background: var(--navy); color: var(--white); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; margin: 40px 0 0; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font-weight: 700; color: var(--navy);
}
.pagination a:hover { border-color: var(--teal); color: var(--teal-dark); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }


/* 13. News / project listings
   ========================================================================== */
.post-list { display: grid; gap: 28px; }
.post {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.post__media img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.post__body { padding: 24px 28px 24px 0; }
.post__date { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post__title { font-size: 1.3rem; margin-bottom: .4em; }
.post__title a { color: var(--navy); }
.post__title a:hover { color: var(--teal-dark); }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.project-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }


/* 14. Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #c6d2e0; font-size: .95rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 64px 0 48px;
}
.site-footer h3, .site-footer label {
  display: block; color: var(--white); font-size: 1rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
  position: relative; padding-bottom: 12px;
}
.site-footer h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--teal); border-radius: 2px;
}
.site-footer a { color: #dbe5f0; }
.site-footer a:hover { color: var(--white); }
.footer-list { list-style: none; }
.footer-list li { padding: 5px 0; color: #c6d2e0; }
.footer-note { margin: 0; color: #c6d2e0; }

.price-box {
  display: block; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 18px 20px; color: var(--white); transition: background .2s;
}
.price-box:hover { background: rgba(255,255,255,.12); }
.SWprice { font: 900 2.2rem/1 var(--font-head); color: var(--white); }
.SPTxt { font-size: .9rem; color: #9fb3c9; }
.delay { margin-top: 10px; font-size: .85rem; color: #9fb3c9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 28px 0; display: flex; flex-wrap: wrap; gap: 20px 32px;
  align-items: center; justify-content: space-between;
}
.social { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social .title { font: 700 .8rem var(--font-head); letter-spacing: .12em; color: var(--white); margin-right: 8px; }
.social a {
  display: block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); color: #dbe5f0;
  font-size: .82rem; font-weight: 600; transition: background .2s, border-color .2s;
}
.social a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.copyright { display: flex; align-items: center; gap: 16px; }
.copyright img { height: 36px; width: auto; }
.copyright p { margin: 0; font-size: .88rem; color: #9fb3c9; }


/* 15. Back-to-top & cookie notice
   ========================================================================== */
#totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  padding: 12px 16px; border-radius: 999px; background: var(--teal); color: var(--white);
  font: 700 .78rem var(--font-head); letter-spacing: .1em; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
#totop.show { opacity: 1; visibility: visible; transform: none; }
#totop:hover { background: var(--teal-dark); color: var(--white); }

.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 420px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  border-left: 5px solid var(--teal); padding: 20px 22px; font-size: .88rem; color: var(--muted);
}
.cookie[hidden] { display: none; }
.cookie strong { display: block; color: var(--navy); font-size: .95rem; margin-bottom: 8px; }
.cookie p { margin: 0 0 14px; }
.cookie button {
  background: var(--navy); color: var(--white); border: 0; border-radius: 6px;
  padding: 9px 18px; font: 700 .8rem var(--font-head); cursor: pointer;
}
.cookie button:hover { background: var(--teal-dark); }


/* 16. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-teal { color: var(--teal-dark); }
.mt-0 { margin-top: 0; }  .mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 32px; }  .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 32px; } .mb-4 { margin-bottom: 48px; }
.flex { display: flex; gap: 16px; flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.clearfix::after { content: ""; display: table; clear: both; }


/* 17. Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 20px 18px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 10px; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0;
  }
  .menu > li.has-sub > a::after { display: none; }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .page-banner { padding: 40px 0 56px; }
  .grid--2, .grid--3, .grid--4, .form-row { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 0; }
  .post__body { padding: 20px 22px 24px; }
  .post__media img { min-height: 0; aspect-ratio: 16 / 9; }
  .search-form { flex-direction: column; }
}

@media (max-width: 640px) {
  .slider { aspect-ratio: 4 / 3; }
  .slider-btn { width: 40px; height: 40px; }
  .intro-card { margin-top: -50px; padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}


/* 18. Accessibility & print
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cookie, #totop, .slider-btn, .dots, .sidebar { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .card, .post { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
  .page-banner { background: none; color: #000; padding: 0 0 16px; }
  .page-banner h1 { color: #000; }
}