/* ITECH Electric frontend redesign foundation — PHP/admin independent. */
:root {
  --ink: #102238;
  --ink-soft: #40536a;
  --paper: #f4f7f9;
  --surface: #ffffff;
  --line: #dce4ea;
  --brand: #e2262d;
  --brand-dark: #b9151c;
  --accent: #1a6078;
  --max: 1260px;
  --radius: 18px;
  --shadow: 0 20px 55px rgba(16, 34, 56, 0.12);
}

html { scroll-behavior: smooth; }
body.redesign {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.redesign *, body.redesign *::before, body.redesign *::after { box-sizing: border-box; }
body.redesign img { max-width: 100%; height: auto; }
body.redesign a { color: inherit; }
.site-shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.site-header { position: relative; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.14); background: #0d1d30; color: #fff; }
.header-row { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; padding: 4px 7px; border-radius: 4px; background: #fff; }
.brand img { display: block; width: auto; height: 70px; filter: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 12px; border-radius: 8px; color: #dce5ed; font-size: .9rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.language-switch { display: flex; gap: 5px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
.language-switch a { min-width: 38px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; font-size: .76rem; font-weight: 800; text-align: center; text-decoration: none; }
.language-switch a.active { border-color: var(--brand); background: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0 104px; color: #fff; background: #0d1d30; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 78% 15%, rgba(32,132,161,.42), transparent 30%), linear-gradient(125deg, #0d1d30 0%, #132d46 58%, #153e52 100%); }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; right: -150px; bottom: -335px; z-index: -1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 72px; align-items: end; }
.hero h1 { max-width: 790px; margin: 0; color: #fff; font-size: clamp(2.65rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 690px; margin: 28px 0 0; color: #cbd7e2; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: #fff !important; }
.button-primary:hover, .button-primary:focus { background: var(--brand-dark); }
.button-secondary { border-color: rgba(255,255,255,.35); color: #fff !important; background: rgba(255,255,255,.06); }
.hero-proof { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.12); box-shadow: var(--shadow); }
.proof-item { padding: 22px 24px; background: rgba(8,24,40,.66); backdrop-filter: blur(8px); }
.proof-item strong { display: block; color: #fff; font-size: 1.02rem; }
.proof-item span { display: block; margin-top: 3px; color: #aebdca; font-size: .87rem; }

.section { padding: 88px 0; }
.section-white { background: var(--surface); }
.section-soft { background: var(--paper); }
.section-dark { background: var(--ink); color: #fff; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { max-width: 680px; margin: 0; color: inherit; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.07; letter-spacing: -.04em; }
.section-heading p { max-width: 580px; margin: 0; color: var(--ink-soft); }
.section-dark .section-heading p { color: #b9c7d3; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.capability-card { min-height: 275px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.capability-number { color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.capability-card h3 { margin: 48px 0 12px; color: var(--ink); font-size: 1.28rem; line-height: 1.2; }
.capability-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.international-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.international-copy h2 { margin: 0 0 22px; color: #fff; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.international-copy > p { color: #bdcbd6; }
.market-panel { position: relative; min-height: 410px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); }
.market-panel::before, .market-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.market-panel::before { width: 340px; height: 340px; right: -70px; top: 35px; }
.market-panel::after { width: 200px; height: 200px; left: -50px; bottom: -60px; }
.market-route { position: absolute; inset: 50% auto auto 50%; width: 68%; height: 1px; transform: translate(-50%,-50%) rotate(-12deg); background: linear-gradient(90deg, var(--brand), #48a6be); }
.market-route::before, .market-route::after { content: ""; position: absolute; top: -7px; width: 15px; height: 15px; border: 4px solid #fff; border-radius: 50%; background: var(--brand); }
.market-route::before { left: 0; }
.market-route::after { right: 0; background: #48a6be; }
.market-label { position: absolute; padding: 7px 10px; border-radius: 6px; background: rgba(6,19,32,.88); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.market-label.from { left: 10%; top: 58%; }
.market-label.to { right: 8%; top: 35%; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-step { position: relative; padding: 28px 28px 0 0; }
.process-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.process-step strong { display: block; margin-bottom: 8px; color: var(--ink); }
.process-step p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.cta-band { padding: 40px 0; background: var(--brand); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-row h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 3vw, 2.45rem); }
.cta-row .button { flex: 0 0 auto; border-color: rgba(255,255,255,.55); background: #fff; color: var(--ink) !important; }
.site-footer { padding: 55px 0 30px; background: #081625; color: #aebdca; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 50px; }
.footer-brand img { display: block; width: auto; height: 88px; padding: 6px 8px; border-radius: 4px; background: #fff; filter: none; }
.footer-title { display: block; margin-bottom: 12px; color: #fff; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #b9c7d3; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-note { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

/* Phase 2 public-page system. */
.page-hero { position: relative; overflow: hidden; padding: 78px 0 72px; color: #fff; background: linear-gradient(125deg, #0d1d30, #173a52); }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -210px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin: 0; color: #fff; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.page-hero-inner > p:last-child { max-width: 720px; margin: 22px 0 0; color: #c7d4df; font-size: 1.08rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 9px 30px rgba(16,34,56,.06); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { display: grid; min-height: 260px; overflow: hidden; place-items: center; background: #dfe7ec; text-decoration: none; }
.project-media img { width: 100%; height: 260px !important; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-media img { transform: scale(1.025); }
.media-fallback { display: grid; width: 100%; min-height: inherit; place-items: center; color: rgba(255,255,255,.82); background: linear-gradient(135deg, #19354a, #1d6980); font-size: 1.3rem; font-weight: 850; letter-spacing: .2em; }
.project-card-body { display: flex; min-height: 205px; flex: 1; flex-direction: column; padding: 25px 26px 27px; }
.project-type { display: inline-flex; width: max-content; margin-bottom: 12px; padding: 5px 9px; border-radius: 5px; color: var(--accent); background: #e9f3f6; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-card h2 { margin: 0; color: var(--ink); font-size: 1.27rem; line-height: 1.25; }
.project-card h2 a { text-decoration: none; }
.project-card p { margin: 13px 0 0; color: var(--ink-soft); font-size: .9rem; }
.previous-experience-card .project-card-body { min-height: 150px; }
.project-card .project-location { margin-top: 10px; color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-card-link { display: inline-flex; width: max-content; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; color: var(--ink) !important; font-size: .88rem; font-weight: 800; text-decoration: none; }
.project-card-link span { color: var(--brand); font-size: 1.15rem; transition: transform .2s ease; }
.project-card-link:hover span, .project-card-link:focus span { transform: translateX(4px); }
.project-detail-location { margin: 0; color: #c7d4df; font-size: 1.05rem; font-weight: 700; }
.project-browser { padding-top: 38px; }
.project-category-bar { width: 100%; margin-bottom: 62px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #eef2f5; box-shadow: 0 8px 28px rgba(16,34,56,.07); }
.project-category-list { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.project-category-list li { display: flex; min-width: 0; flex: 1 1 0; margin: 0; padding: 0; }
.project-category-tab { position: relative; display: flex !important; width: 100%; min-height: 56px; align-items: center; justify-content: center; padding: 12px 18px; overflow: hidden; border: 1px solid #cbd5dd; border-radius: 8px; background: #fff; color: var(--ink) !important; font-size: .95rem; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none !important; box-shadow: 0 1px 2px rgba(16,34,56,.04); transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.project-category-tab:hover { border-color: var(--brand); background: #fff8f7; color: var(--brand) !important; box-shadow: 0 5px 14px rgba(16,34,56,.1); transform: translateY(-1px); }
.project-category-tab:focus { outline: 3px solid rgba(214,41,38,.22); outline-offset: 2px; border-color: var(--brand); }
.project-category-tab.active, .project-category-tab[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff !important; box-shadow: 0 8px 20px rgba(16,34,56,.2); }
.project-category-tab.active::after, .project-category-tab[aria-current="page"]::after { content: ""; position: absolute; right: 18px; bottom: 8px; left: 18px; height: 3px; border-radius: 3px; background: var(--brand); }
.project-category-tab.active:hover, .project-category-tab[aria-current="page"]:hover { border-color: var(--ink); background: var(--ink); color: #fff !important; transform: none; }
.project-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.project-results-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.08; letter-spacing: -.04em; }
.section-link, .back-link { color: var(--brand) !important; font-weight: 750; text-decoration: none; }
.empty-state { grid-column: 1 / -1; padding: 58px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty-state h2 { margin: 0 0 10px; color: var(--ink); font-size: 1.8rem; }
.empty-state p { margin: 0 auto 24px; color: var(--ink-soft); }
.project-detail-hero { padding: 68px 0 62px; color: #fff; background: #0d1d30; }
.project-detail-heading { display: grid; gap: 18px; }
.project-detail-heading .back-link { width: max-content; color: #c4d5df !important; }
.project-detail-heading .project-type { margin: 0; }
.project-detail-heading h1 { max-width: 960px; margin: 0; color: #fff; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.045em; }
.project-content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 58px; align-items: start; }
.project-cover { display: grid; min-height: 410px; overflow: hidden; place-items: center; border-radius: var(--radius); background: #dfe7ec; box-shadow: var(--shadow); }
.project-cover img { width: 100%; min-height: 410px; max-height: 650px; object-fit: cover; }
.rich-content { min-width: 0; color: var(--ink-soft); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content strong { color: var(--ink); }
.rich-content h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.rich-content a { color: var(--accent); overflow-wrap: anywhere; }
.rich-content ul, .rich-content ol { padding-left: 1.25rem; }
.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 54px; }
.gallery-card { overflow: hidden; margin: 0; border-radius: 12px; background: #e4eaee; }
.gallery-card img { display: block; width: 100%; height: 240px !important; object-fit: cover; }
.page-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.side-nav { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.side-nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: #fff; background: var(--ink); }
.page-layout > .content-panel:only-child { grid-column: 1 / -1; }
.content-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 36px rgba(16,34,56,.07); }
.content-media { max-height: 380px; overflow: hidden; background: #e3e9ed; }
.content-media img { width: 100%; height: 380px !important; object-fit: cover; }
.content-media-banner { max-height: none; background: #056b91; }
.content-media-banner img { height: auto !important; object-fit: contain; }
.content-panel .rich-content { padding: clamp(28px, 5vw, 58px); }
.contact-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 30px; align-items: start; }
.contact-card, .contact-form { padding: clamp(27px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 36px rgba(16,34,56,.07); }
.contact-card h2, .contact-form h2 { margin: 0 0 20px; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-card address { margin-bottom: 22px; color: var(--ink-soft); font-style: normal; }
.contact-line { display: block; margin: 8px 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-card .button { margin-top: 22px; border-color: var(--line); color: var(--ink) !important; background: var(--paper); }
.contact-form { display: grid; gap: 17px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: .88rem; font-weight: 750; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c8d2d9; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(26,96,120,.17); border-color: var(--accent); }
.contact-form .button { width: max-content; cursor: pointer; font: inherit; }

/* Legacy inner page responsive bridge. */
body.legacy-page .ortala { width: min(calc(100% - 32px), var(--max)); }
body.legacy-page #header { min-height: 112px; height: auto; padding-top: 14px; }
body.legacy-page #nav { max-width: calc(100% - 230px); height: auto; }
body.legacy-page #nav li { margin-bottom: 4px; }
body.legacy-page .page-top { overflow: hidden; }
body.legacy-page .page-top img { width: 100%; height: clamp(110px, 16vw, 180px); object-fit: cover; }
body.legacy-page #contanier { min-height: 340px; height: auto; }
body.legacy-page #container { width: 100% !important; height: auto !important; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
body.legacy-page #container .element { position: relative !important; inset: auto !important; width: auto; margin: 0; }
body.legacy-page #container .element img { width: 100%; object-fit: cover; }
body.legacy-page .footer { height: auto; min-height: 210px; }
body.legacy-page iframe { max-width: 100%; }
.content-empty { margin: 34px 0 70px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.content-empty h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); }
.content-empty p { max-width: 620px; margin: 0 auto; color: var(--ink-soft); }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; }
.error-shell { width: min(calc(100% - 40px), 660px); padding: 50px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.05); text-align: center; }
.error-shell h1 { margin: 0; color: #fff; font-size: clamp(5rem, 18vw, 9rem); line-height: .9; }
.error-shell h2 { color: #fff; }
.error-shell p { color: #c0cdd8; }

@media (max-width: 1120px) {
  .site-nav { position: absolute; left: 20px; right: 20px; top: 78px; display: none; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #10243a; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { display: block; }
  .nav-toggle { display: block; }
  .language-switch { margin-left: 0; }
  .hero-grid, .international-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-category-list { flex-wrap: wrap; }
  .project-category-list li { flex: 1 1 calc(50% - 4px); }
  .project-category-list li:last-child:nth-child(odd) { flex-basis: 100%; }
  .project-content-grid { grid-template-columns: 1fr; }
  body.legacy-page #nav { max-width: 100%; clear: both; }
  body.legacy-page #container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .site-shell { width: min(calc(100% - 28px), var(--max)); }
  .header-row { min-height: 76px; gap: 12px; }
  .brand img { width: auto; height: 60px; }
  .language-switch { padding-left: 8px; }
  .hero { padding: 76px 0 68px; }
  .hero-grid { gap: 34px; }
  .hero-proof { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .capability-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 220px; }
  .capability-card h3 { margin-top: 28px; }
  .process-grid { gap: 22px; border-top: 0; }
  .process-step { padding: 20px 0 0; border-top: 1px solid var(--line); }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .market-panel { min-height: 310px; }
  .project-grid, .project-gallery, .page-layout, .contact-grid { grid-template-columns: 1fr; }
  .project-category-bar { margin-bottom: 44px; padding: 7px; border-radius: 12px; }
  .project-category-list { gap: 7px; }
  .project-category-list li { flex: 1 1 calc(50% - 4px); }
  .project-category-tab { min-height: 60px; padding: 11px 9px; font-size: .88rem; }
  .project-category-tab.active::after, .project-category-tab[aria-current="page"]::after { right: 10px; bottom: 6px; left: 10px; }
  .project-media, .project-media img { min-height: 220px; height: 220px !important; }
  .project-cover, .project-cover img { min-height: 280px; }
  .page-hero { padding: 58px 0 54px; }
  .empty-state { padding: 36px 22px; }
  body.legacy-page .ortala { width: calc(100% - 24px); }
  body.legacy-page #header { padding-bottom: 12px; }
  body.legacy-page #header h1 { float: none; }
  body.legacy-page #nav { float: none; display: flex; overflow-x: auto; width: 100%; padding-bottom: 8px; }
  body.legacy-page #nav li { flex: 0 0 auto; }
  body.legacy-page #container { grid-template-columns: 1fr; }
  body.legacy-page .content, body.legacy-page .detay, body.legacy-page .sol, body.legacy-page .sag { float: none; width: 100%; }
  .error-shell { padding: 35px 22px; }
}

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