/* TWSite CDO: one accessible template, three switchable visual profiles. */
html { scroll-behavior: smooth; }
body.cdo-page {
    --cdo-bg: #ffffff;
    --cdo-width: 1280px;
    --cdo-surface: #ffffff;
    --cdo-surface-soft: #eaf5fb;
    --cdo-text: #0d1c38;
    --cdo-muted: #43536b;
    --cdo-line: #dce7ef;
    --cdo-brand: #006cad;
    --cdo-brand-strong: #075089;
    --cdo-on-brand: #ffffff;
    --cdo-accent: #ffdb2d;
    --cdo-accent-text: #0d1c38;
    --cdo-focus: #2563eb;
    --cdo-shadow: 0 16px 45px rgba(15, 70, 76, .12);
    --cdo-radius: 20px;
    --cdo-heading: Arial, Helvetica, sans-serif;
    --cdo-body: Arial, Helvetica, sans-serif;
    margin: 0;
    min-width: 300px;
    background: var(--cdo-bg);
    color: var(--cdo-text);
    font: 16px/1.62 var(--cdo-body);
}

body.cdo-page[data-cdo-style="creative"] {
    --cdo-bg: #fbf5ec;
    --cdo-surface: #fffdf8;
    --cdo-surface-soft: #f4e6d9;
    --cdo-text: #382d31;
    --cdo-muted: #766267;
    --cdo-line: #e8d3c7;
    --cdo-brand: #792b50;
    --cdo-brand-strong: #551b38;
    --cdo-accent: #ef7256;
    --cdo-accent-text: #32100a;
    --cdo-focus: #2563eb;
    --cdo-shadow: 0 18px 50px rgba(86, 31, 57, .13);
    --cdo-radius: 28px;
    --cdo-heading: Georgia, "Times New Roman", serif;
}

body.cdo-page[data-cdo-style="future"] {
    --cdo-bg: #f1f6ff;
    --cdo-surface: #ffffff;
    --cdo-surface-soft: #e6efff;
    --cdo-text: #17243c;
    --cdo-muted: #5b6880;
    --cdo-line: #cad9f3;
    --cdo-brand: #155cdb;
    --cdo-brand-strong: #0c3e9e;
    --cdo-accent: #a8e927;
    --cdo-accent-text: #1a3100;
    --cdo-focus: #ff7a18;
    --cdo-shadow: 0 18px 52px rgba(28, 84, 190, .15);
    --cdo-radius: 14px;
}

body.cdo-page[data-cdo-theme="dark"] {
    --cdo-bg: #0b182b;
    --cdo-surface: #10233b;
    --cdo-surface-soft: #19334c;
    --cdo-text: #eef8f7;
    --cdo-muted: #b4c9c8;
    --cdo-line: #385158;
    --cdo-brand: #54c8d1;
    --cdo-brand-strong: #8de4e8;
    --cdo-on-brand: #10233b;
    --cdo-accent-text: #241800;
    --cdo-shadow: 0 18px 52px rgba(0, 0, 0, .28);
    color-scheme: dark;
}

body.cdo-page[data-cdo-style="creative"][data-cdo-theme="dark"] {
    --cdo-bg: #20171b;
    --cdo-surface: #2b1f24;
    --cdo-surface-soft: #3b2931;
    --cdo-text: #fff7f3;
    --cdo-muted: #d3bcc4;
    --cdo-line: #573d48;
    --cdo-brand: #f19bbb;
    --cdo-brand-strong: #ffc3d8;
    --cdo-on-brand: #2b1f24;
}

body.cdo-page[data-cdo-style="future"][data-cdo-theme="dark"] {
    --cdo-bg: #091226;
    --cdo-surface: #101e38;
    --cdo-surface-soft: #172b4f;
    --cdo-text: #f0f6ff;
    --cdo-muted: #b5c5df;
    --cdo-line: #2c4775;
    --cdo-brand: #71a7ff;
    --cdo-brand-strong: #a9c9ff;
    --cdo-on-brand: #101e38;
}

.cdo-page *, .cdo-page *::before, .cdo-page *::after { box-sizing: border-box; }
.cdo-page a { color: var(--cdo-brand-strong); text-underline-offset: 3px; }
.cdo-page a:hover { color: var(--cdo-brand); }
.cdo-page img { max-width: 100%; height: auto; }
.cdo-page button, .cdo-page input { font: inherit; }
.cdo-page :focus-visible { outline: 3px solid var(--cdo-focus); outline-offset: 3px; }

.cdo-skip {
    position: fixed; left: 16px; top: -100px; z-index: 10000;
    padding: 12px 18px; border-radius: 0 0 10px 10px;
    background: var(--cdo-brand-strong); color: var(--cdo-on-brand) !important;
}
.cdo-skip:focus { top: 0; }
.cdo-shell { min-height: 100vh; }

.cdo-header { position: relative; z-index: 20; background: var(--cdo-surface); border-bottom: 1px solid var(--cdo-line); }
.cdo-header__main, .cdo-navigation > ul, .cdo-utility, .cdo-layout, .cdo-footer {
    width: min(var(--cdo-width), calc(100% - 64px)); margin-inline: auto;
}
.cdo-header__main { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.cdo-brand { display: inline-flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: var(--cdo-text) !important; }
.cdo-brand__symbol { display: block; width: 94px; height: 72px; flex: 0 0 94px; }
.cdo-brand__identity { display: flex; flex-direction: column; min-width: 0; padding-left: 22px; border-left: 1px solid var(--cdo-line); }
.cdo-brand__name { font: 800 clamp(20px, 2.1vw, 27px)/1.12 var(--cdo-heading); letter-spacing: -.025em; overflow-wrap: anywhere; }
.cdo-brand__official { margin-top: 7px; color: var(--cdo-muted); font-size: 12px; }
.cdo-header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cdo-header .cdo-accessibility-slot #tw-a11y-root { width: auto !important; }
.cdo-header .tw-a11y-launcher { margin: 0 !important; border: 1px solid var(--cdo-line) !important; border-radius: 8px !important; background: var(--cdo-surface) !important; color: var(--cdo-text) !important; font-size: 13px !important; white-space: nowrap; }
.cdo-header .tw-a11y-panel { position: absolute !important; top: 100%; right: 0; width: min(780px, calc(100vw - 32px)) !important; max-height: 75vh; overflow: auto; }
.cdo-theme-button { display: grid; place-items: center; width: 44px; min-height: 44px; flex: 0 0 44px; border: 1px solid var(--cdo-line); border-radius: 10px; background: var(--cdo-surface); color: var(--cdo-text); cursor: pointer; }
.cdo-theme-button__icon { font-size: 24px; line-height: 1; }
.cdo-theme-button__text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.cdo-popup { position: relative; }
.cdo-popup summary { list-style: none; cursor: pointer; }
.cdo-popup summary::-webkit-details-marker { display: none; }
.cdo-popup[open] > summary { background: var(--cdo-surface-soft); }
.cdo-appearance summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--cdo-line); border-radius: 10px; font-size: 13px; }
.cdo-appearance__panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 210px; padding: 8px; border: 1px solid var(--cdo-line); border-radius: 12px; background: var(--cdo-surface); box-shadow: var(--cdo-shadow); }
.cdo-style-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--cdo-surface); color: var(--cdo-text); cursor: pointer; text-align: left; }
.cdo-style-button:hover { background: var(--cdo-surface-soft); }
.cdo-style-button b { font-size: 14px; }
.cdo-style-button span { width: 10px; height: 10px; border-radius: 50%; background: #006cad; }
.cdo-style-button[data-cdo-style="creative"] span { background: #ef7256; }
.cdo-style-button[data-cdo-style="future"] span { background: #4a83ee; }
.cdo-style-button.is-active { background: var(--cdo-surface-soft); }
.cdo-style-button.is-active::after { content: '\2713'; margin-left: auto; color: var(--cdo-brand-strong); }

.cdo-nav-toggle { display: none; align-items: center; gap: 9px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--cdo-line); border-radius: 12px; background: var(--cdo-surface); color: var(--cdo-text); cursor: pointer; }
.cdo-nav-toggle__icon { width: 21px; display: grid; gap: 4px; }
.cdo-nav-toggle__icon i { display: block; height: 2px; background: currentColor; }

.cdo-navigation { background: var(--cdo-surface); }
.cdo-navigation ul { margin: 0; padding: 0; list-style: none; }
.cdo-navigation > ul { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 auto; padding: 10px 0; border-top: 1px solid var(--cdo-line); }
.cdo-navigation a, .cdo-navigation summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 7px; color: var(--cdo-text); text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.cdo-navigation a:hover, .cdo-navigation summary:hover { background: var(--cdo-surface-soft); }
.cdo-navigation a.is-current { background: var(--cdo-brand-strong); color: var(--cdo-on-brand); }
.cdo-navigation details { position: relative; }
.cdo-navigation summary { list-style: none; font-size: 14px; padding-inline: 12px; }
.cdo-navigation summary::-webkit-details-marker { display: none; }
.cdo-section-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; max-height: 65vh; overflow: auto; padding: 12px; border: 1px solid var(--cdo-line); border-radius: 10px; background: var(--cdo-surface); box-shadow: var(--cdo-shadow); }
.cdo-section-menu a { justify-content: flex-start; padding: 8px 12px; font-size: 15px; }
.cdo-section-menu li.sdoc { padding: 8px 12px; color: var(--cdo-brand-strong); font-weight: 700; }
.cdo-section-menu li ul { margin-left: 16px; border-left: 1px solid var(--cdo-line); }

.cdo-search-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 440px; max-width: calc(100vw - 32px); padding: 20px; border: 1px solid var(--cdo-line); border-radius: 12px; background: var(--cdo-surface); box-shadow: var(--cdo-shadow); }
.cdo-search-panel label { display: block; margin-bottom: 10px; font-weight: 700; }
.cdo-search-panel__fields { display: flex; gap: 8px; }
.cdo-search-panel input[type="search"] { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--cdo-line); border-radius: 8px; color: var(--cdo-text); background: var(--cdo-bg); font-size: 16px; }
.cdo-search-panel button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; color: var(--cdo-on-brand); background: var(--cdo-brand-strong); cursor: pointer; }

.cdo-admin { position: relative; z-index: 15; width: min(var(--cdo-width), calc(100% - 64px)); margin: 10px auto 0; }
.cdo-admin:empty { display: none; }

/* Both halves share one bounded composition, including on ultrawide screens. */
.cdo-hero { display: none; background: var(--cdo-surface); }
.cdo-page--home .cdo-hero { display: block; }
.cdo-hero__inner { position: relative; isolation: isolate; width: min(var(--cdo-width), calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: 48% 52%; align-items: center; min-height: 460px; }
.cdo-hero__content { position: relative; z-index: 2; padding: 48px 0 60px 12px; }
.cdo-hero__eyebrow { margin-bottom: 14px; color: var(--cdo-brand); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
[data-cdo-style="calm"] .cdo-hero__eyebrow { display: none; }
.cdo-hero__title { margin: 0; color: var(--cdo-text); font: 800 clamp(36px, 3.7vw, 50px)/1.1 var(--cdo-heading); letter-spacing: -.035em; }
.cdo-hero__lead { max-width: 490px; margin: 22px 0 0; color: var(--cdo-muted); font-size: clamp(18px, 1.8vw, 23px); line-height: 1.4; }
.cdo-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cdo-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 54px; padding: 10px 24px; border: 2px solid transparent; border-radius: 14px; text-decoration: none; font-size: 20px; font-weight: 800; }
.cdo-button--primary { background: var(--cdo-accent); color: var(--cdo-accent-text) !important; }
.cdo-button--primary:hover { filter: brightness(.96); }
.cdo-button--primary span { font-size: 32px; line-height: 1; font-weight: 400; }
.cdo-hero__picture { width: 117%; margin-left: -17%; align-self: end; position: relative; z-index: 1; }
.cdo-page .cdo-hero__image { display: block; width: 100%; height: auto; max-width: none; }
[data-cdo-style="creative"] .cdo-hero__picture, [data-cdo-style="future"] .cdo-hero__picture { width: 100%; margin-left: 0; align-self: center; }
[data-cdo-style="creative"] .cdo-hero__image, [data-cdo-style="future"] .cdo-hero__image { border-radius: 24px; }
[data-cdo-theme="dark"] .cdo-hero__picture { filter: brightness(.92); }

.cdo-directions { display: none; width: min(var(--cdo-width), calc(100% - 64px)); margin: 0 auto; padding: 12px 0 28px; }
.cdo-page--home .cdo-directions { display: block; }
.cdo-section-title { margin: 0 0 24px; color: var(--cdo-text); font: 800 clamp(26px, 2.8vw, 36px)/1.2 var(--cdo-heading); letter-spacing: -.025em; }
.cdo-section-title::after { content: ""; display: block; width: 58px; height: 5px; margin-top: 12px; background: #08c8d3; border-radius: 4px; }
.cdo-directions__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cdo-direction { display: flex; align-items: center; gap: 18px; min-width: 0; min-height: 108px; padding: 18px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card-bg); text-decoration: none; transition: transform .15s ease; }
.cdo-page .cdo-direction { color: var(--cdo-text); }
.cdo-direction:hover { transform: translateY(-3px); }
.cdo-direction svg { width: 58px; height: 58px; flex: 0 0 58px; color: var(--card-ink); }
.cdo-direction span { font-size: 22px; font-weight: 800; line-height: 1.15; }
.cdo-direction b { margin-left: auto; font-size: 29px; font-weight: 400; }
.cdo-direction--art { --card-bg: #fff8e4; --card-line: #ffdf85; --card-ink: #8b6516; }
.cdo-direction--sport { --card-bg: #eaf3ff; --card-line: #abd1ff; --card-ink: #07568d; }
.cdo-direction--science { --card-bg: #e4f8fa; --card-line: #9ee5e9; --card-ink: #087b90; }
.cdo-direction--tourism { --card-bg: #f0f9e9; --card-line: #c7e8b7; --card-ink: #408b4d; }
[data-cdo-theme="dark"] .cdo-direction { background: var(--cdo-surface); }
[data-cdo-theme="dark"] .cdo-direction svg { color: var(--card-line); }

.cdo-utility { min-height: 55px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 10px; color: var(--cdo-muted); font-size: 14px; }
.cdo-breadcrumb, .cdo-utility__links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cdo-utility__links span + span { padding-left: 12px; border-left: 1px solid var(--cdo-line); }

.cdo-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 52px; }

.cdo-main { min-width: 0; padding: clamp(24px, 4vw, 58px); border: 1px solid var(--cdo-line); border-radius: var(--cdo-radius); background: var(--cdo-surface); box-shadow: var(--cdo-shadow); }
.cdo-page-meta { margin-bottom: 12px; }
.cdo-page--home .cdo-page-meta, .cdo-page--home .cdo-prose > h1:first-child { display: none; }
.cdo-page-type { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: var(--cdo-surface-soft); color: var(--cdo-brand-strong); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cdo-content { min-width: 0; overflow-wrap: anywhere; }
/* Public page typography and restored WordPress blocks live in content.css. */

/* Hub pages turn their CMSimple submenu into cards. */
.cdo-page--hub .cdo-submenu ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.cdo-page--hub .cdo-submenu a { display: flex; align-items: center; min-height: 104px; padding: 18px; border: 1px solid var(--cdo-line); border-radius: 14px; background: var(--cdo-bg); color: var(--cdo-text); text-decoration: none; font-weight: 800; }
.cdo-page--hub .cdo-submenu a::after { content: '\2192'; margin-left: auto; color: var(--cdo-brand); font-size: 24px; }
.cdo-page--hub .cdo-submenu a:hover { border-color: var(--cdo-brand); transform: translateY(-2px); }

/* Program and association pages. */
.cdo-page--program .cdo-main { border-top: 6px solid var(--cdo-accent); }

/* Contacts and hotlines. */
.cdo-page--contacts .cdo-prose a[href^="tel:"], .cdo-page--contacts .cdo-prose a[href^="mailto:"] { display: inline-flex; margin: 4px 0; padding: 8px 12px; border-radius: 9px; background: var(--cdo-surface-soft); font-weight: 800; text-decoration: none; }
.cdo-page--contacts .cdo-main { background: linear-gradient(145deg, var(--cdo-surface), var(--cdo-surface-soft)); }

/* News archive. Groups are created only in the presentation layer. */
.cdo-news-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cdo-news-card { min-width: 0; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--cdo-line); border-radius: 15px; background: var(--cdo-surface); }
.cdo-news-more { display: block; margin: 24px auto 0; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--cdo-brand-strong); color: var(--cdo-on-brand); cursor: pointer; }
.cdo-news-card.is-cdo-hidden { display: none; }

.cdo-submenu:empty { display: none; }
.cdo-pager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--cdo-line); }
.cdo-pager span:nth-child(2) { text-align: center; }
.cdo-pager span:nth-child(3) { text-align: right; }
.cdo-pager a { font-weight: 700; }

.cdo-footer__brand, .cdo-footer__meta { display: flex; align-items: center; gap: 12px; }

/* Home content is assembled from the existing CMS pages. */
.cdo-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.cdo-section-heading .cdo-section-title { margin-bottom: 24px; }
.cdo-text-link { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; font-size: 15px; font-weight: 700; text-decoration: none; }
.cdo-text-link:hover { text-decoration: underline; }
.cdo-home-news, .cdo-parent-section, .cdo-contact-section, .cdo-feedback { width: min(var(--cdo-width), calc(100% - 64px)); margin: 0 auto; }
.cdo-home-news { padding: 16px 0 44px; }
.cdo-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cdo-event { min-width: 0; overflow: hidden; border: 1px solid var(--cdo-line); border-radius: 16px; background: var(--cdo-surface); }
.cdo-event__photo { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: var(--cdo-surface-soft); }
.cdo-event__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cdo-event__body { padding: 22px; }
.cdo-event__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--cdo-muted); font-size: 12px; }
.cdo-event__meta span { padding: 3px 8px; border-radius: 5px; background: var(--cdo-surface-soft); }
.cdo-event h3 { margin: 14px 0 10px; font: 700 20px/1.3 var(--cdo-heading); }
.cdo-event h3 a { color: var(--cdo-text); text-decoration: none; }
.cdo-event h3 a:hover { color: var(--cdo-brand-strong); text-decoration: underline; }
.cdo-event p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cdo-muted); }
.cdo-event-anchor { display: block; scroll-margin-top: 24px; }
.cdo-parent-section { padding: 16px 0 44px; }
.cdo-parent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cdo-parent-grid a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-content: start; gap: 6px 16px; padding: 24px; border-radius: 14px; border: 1px solid var(--cdo-line); background: var(--cdo-surface-soft); color: var(--cdo-text); text-decoration: none; }
.cdo-parent-grid a:hover { border-color: var(--cdo-brand); }
.cdo-parent-grid strong { font-size: 18px; line-height: 1.3; }
.cdo-parent-grid a > span:last-child { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--cdo-muted); }
.cdo-parent-icon { grid-row: span 2; display: grid; place-items: center; align-self: start; width: 40px; height: 40px; border: 1px solid var(--cdo-line); border-radius: 10px; background: var(--cdo-surface); font-size: 25px; color: var(--cdo-brand-strong); }
.cdo-page--home .cdo-utility, .cdo-page--home .cdo-pager, .cdo-page--home .cdo-submenu { display: none; }
.cdo-page--home .cdo-main { padding: 32px; box-shadow: none; background: var(--cdo-surface); }
.cdo-page--home .cdo-layout { padding-bottom: 40px; }
.cdo-contact-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; padding: 16px 0 48px; }
.cdo-contact-panel { padding: 28px; border-radius: 16px; background: var(--cdo-surface-soft); font-style: normal; }
.cdo-contact-panel p { margin: 0 0 5px; }
.cdo-contact-panel p:first-child, .cdo-contact-panel p:nth-child(2) { font-weight: 700; }
.cdo-contact-phone { display: inline-block; margin-top: 18px; color: var(--cdo-brand-strong); text-decoration: none; font-size: 25px; font-weight: 700; }
.cdo-feedback { padding: 20px 0 40px; border-top: 1px solid var(--cdo-line); }
.cdo-footer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; min-height: 130px; padding-block: 26px; border-top: 1px solid var(--cdo-line); }
.cdo-footer__brand { max-width: 600px; }
.cdo-footer__brand .cdo-brand__symbol { width: 54px; height: 44px; flex-basis: 54px; }
.cdo-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 13px; }
.cdo-footer__links span:empty { display: none; }
.cdo-footer__meta { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; color: var(--cdo-muted); font-size: 12px; }

@media (max-width: 1180px) {
    .cdo-navigation a { padding-inline: 12px; font-size: 14px; }
    .cdo-brand__name { font-size: 23px; }
    .cdo-header__tools { gap: 8px; }
    .cdo-hero__inner { min-height: 390px; }
    .cdo-hero__content { padding: 48px 0; }
    .cdo-hero__title { font-size: 42px; }
    .cdo-direction { gap: 12px; padding: 14px; }
    .cdo-direction svg { width: 42px; height: 42px; flex-basis: 42px; }
    .cdo-direction span { font-size: 18px; }
}

@media (max-width: 900px) {
    .cdo-header__main { min-height: 92px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
    .cdo-brand__symbol { width: 68px; height: 52px; flex-basis: 68px; }
    .cdo-brand__identity { padding-left: 12px; }
    .cdo-brand__name { font-size: 21px; }
    .cdo-header__tools { order: 3; width: 100%; margin: 0; justify-content: space-between; }
    .cdo-header .tw-a11y-panel { right: auto; left: 0; }
    .cdo-nav-toggle { display: inline-flex; margin-left: auto; }
    .cdo-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 180px); overflow-y: auto; background: var(--cdo-surface); border-top: 1px solid var(--cdo-line); box-shadow: var(--cdo-shadow); }
    .cdo-navigation.is-open { display: block; }
    .cdo-navigation > ul { width: 100%; display: block; padding: 12px 16px 20px; }
    .cdo-navigation a, .cdo-navigation summary { justify-content: flex-start; min-height: 45px; font-size: 16px; }
    .cdo-section-menu { position: static; width: 100%; max-height: none; box-shadow: none; border: 0; }
    .cdo-hero__inner { grid-template-columns: 1fr; min-height: 0; }
    .cdo-hero__content { padding: 36px 0 8px; }
    .cdo-hero__title { max-width: 680px; font-size: clamp(34px, 5.5vw, 46px); }
    .cdo-hero__lead { max-width: 600px; font-size: 21px; margin-top: 18px; }
    .cdo-hero__picture, [data-cdo-style] .cdo-hero__picture { width: min(100%, 680px); margin: 0 auto; }
    .cdo-hero__actions { margin-top: 22px; }
    .cdo-directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdo-event-grid, .cdo-parent-grid { gap: 16px; }
    .cdo-event__body, .cdo-parent-grid a { padding: 16px; }
    .cdo-search-panel { position: static; width: 100%; max-width: none; box-shadow: none; }
    .cdo-contact-section { gap: 24px; }
    .cdo-page--hub .cdo-submenu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .cdo-header__main, .cdo-utility, .cdo-layout, .cdo-footer, .cdo-admin, .cdo-hero__inner, .cdo-directions { width: calc(100% - 32px); }
    .cdo-brand { gap: 8px; }
    .cdo-brand__symbol { width: 50px; height: 42px; flex-basis: 50px; }
    .cdo-brand__name { font-size: clamp(14px, 3.8vw, 21px); }
    .cdo-brand__official { font-size: 10px; }
    .cdo-header__tools { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
    .cdo-accessibility-slot { grid-column: 1 / -1; }
    .cdo-header .tw-a11y-launcher { width: 100%; }
    .cdo-theme-button { grid-column: 2; grid-row: 2; }
    .cdo-appearance { grid-column: 1; grid-row: 2; }
    .cdo-appearance__panel { left: 0; right: auto; }
    .cdo-home-news, .cdo-parent-section, .cdo-contact-section, .cdo-feedback { width: calc(100% - 32px); }
    .cdo-section-heading { align-items: flex-start; gap: 12px; flex-direction: column; margin-bottom: 20px; }
    .cdo-section-heading .cdo-section-title { margin-bottom: 0; }
    .cdo-event-grid, .cdo-parent-grid, .cdo-contact-section { grid-template-columns: 1fr; }
    .cdo-event__body { padding: 20px; }
    .cdo-parent-grid a { padding: 20px; }
    .cdo-contact-section { gap: 20px; }
    .cdo-page--home .cdo-main { padding: 24px 18px; }
    .cdo-footer { display: flex; }
    .cdo-footer__links { justify-content: flex-start; }
    .cdo-brand__identity { padding-left: 8px; }
    .cdo-nav-toggle { padding: 8px; border: 0; }
    .cdo-nav-toggle > span:last-child { display: none; }
    .cdo-hero__title { font-size: clamp(29px, 7.5vw, 40px); letter-spacing: -.03em; }
    .cdo-hero__lead { font-size: 18px; }
    .cdo-button { width: 100%; min-height: 50px; padding-inline: 16px; font-size: 18px; }
    .cdo-directions { padding-top: 8px; }
    .cdo-section-title { font-size: 26px; }
    .cdo-directions__grid { grid-template-columns: 1fr; gap: 10px; }
    .cdo-direction { min-height: 68px; padding: 10px 16px; gap: 18px; }
    .cdo-direction span { font-size: 18px; }
    .cdo-utility { align-items: flex-start; flex-direction: column; }
    .cdo-main { padding: 24px 18px; }
    .cdo-page--hub .cdo-submenu ul, .cdo-news-grid { grid-template-columns: 1fr; }
    .cdo-footer { align-items: flex-start; flex-direction: column; }
    .cdo-footer__meta { justify-content: flex-start; }
}

@media print {
    .cdo-header__tools, .cdo-navigation, .cdo-admin, .cdo-utility__links, .cdo-pager, .cdo-footer, .cdo-hero, .cdo-directions { display: none !important; }
    .cdo-layout, .cdo-utility { width: 100%; display: block; }
    .cdo-main { border: 0; box-shadow: none; padding: 0; }
    .cdo-home-news, .cdo-parent-section, .cdo-contact-section, .cdo-feedback { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cdo-page *, .cdo-page *::before, .cdo-page *::after { transition: none !important; animation: none !important; }
}
