/* ============================================================
   АППТС PROTOTYPE — ABC Design
   Font: Ubuntu Sans | Stack: HTML5 + CSS + Vanilla JS
   Colors: #4B588D / #E4E7F5 / #B8C1E5 / #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Ubuntu Sans', ui-sans-serif, system-ui, sans-serif; background-color: #E4E7F5; color: #4B588D; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: #4B588D; text-decoration: none; }
a:hover { color: #3a4570; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --primary: #4B588D;
  --primary-dark: #3a4570;
  --primary-light: #5d6ea8;
  --bg-main: #E4E7F5;
  --accent: #B8C1E5;
  --white: #FFFFFF;
  --text-muted: #6b7a99;
  --border: #c8cfe8;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(75,88,141,0.10);
  --shadow-md: 0 4px 24px rgba(75,88,141,0.14);
}

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; color: var(--primary); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; line-height: 1.25; color: var(--primary); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--primary); }
h4 { font-size: 1.0625rem; font-weight: 600; color: var(--primary); }
p { color: #4B588D; line-height: 1.7; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 1rem; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 2.5rem; }
.section-header .eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 0.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }
.divider { width: 3.5rem; height: 3px; background-color: var(--primary); margin: 0.875rem 0 1.25rem; border-radius: 2px; }
.section-header.centered .divider { margin: 0.875rem auto 1.25rem; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit; font-weight: 600; font-size: 0.9375rem; padding: 0.75rem 1.875rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all 0.2s; white-space: nowrap; line-height: 1; }
.btn-primary { background-color: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-white { background-color: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background-color: var(--accent); border-color: var(--accent); }
.btn-outline-white { background-color: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background-color: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-sm { font-size: 0.8125rem; padding: 0.5rem 1.25rem; }
.btn-lg { font-size: 1.0625rem; padding: 0.9375rem 2.25rem; }

/* ===== CARDS ===== */
.card { background-color: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.card-accent { background-color: var(--accent); border-radius: var(--radius); padding: 1.75rem; }
.card-primary { background-color: var(--primary); border-radius: var(--radius); padding: 1.75rem; color: var(--white); }
.card-primary h3, .card-primary h4, .card-primary p { color: var(--white); }
.card:hover { box-shadow: var(--shadow-md); }

/* ===== BADGE ===== */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; }
.badge-default { background-color: var(--accent); color: var(--primary); }
.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-info { background-color: #dbeafe; color: #1e40af; }
.badge-neutral { background-color: #f3f4f6; color: #374151; }

/* ===== ========================================== =====
   HEADER
   ===== ========================================== ===== */
.site-header { background-color: var(--white); box-shadow: 0 2px 8px rgba(75,88,141,0.10); position: sticky; top: 0; z-index: 100; }

/* Top bar */
.header-top { background-color: var(--primary); padding: 0.4rem 0; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; }
.header-top-left { display: flex; align-items: center; gap: 1.5rem; }
.header-top-right { display: flex; align-items: center; gap: 1rem; }
.header-phone { color: var(--white); font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.header-phone svg { opacity: 0.8; }
.header-email { color: var(--accent); font-size: 0.8125rem; }
.header-email:hover { color: var(--white); }

/* Language switcher */
.lang-switcher { display: flex; align-items: center; gap: 0.25rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; cursor: pointer; position: relative; }
.lang-switcher:hover { color: var(--white); }
.lang-switcher span.current { color: var(--white); font-weight: 700; }
.lang-switcher svg { width: 10px; height: 10px; opacity: 0.7; }

/* Search */
.header-search-btn { color: var(--accent); display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; cursor: pointer; background: none; border: none; font-family: inherit; }
.header-search-btn:hover { color: var(--white); }

/* Написать обращение в топ-баре */
.header-napisat { color: var(--accent); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.header-napisat:hover { color: var(--white); }

/* Main nav bar */
.header-main { padding: 0; }
.header-main .container { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; }
.header-logo { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 0; flex-shrink: 0; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; background-color: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.logo-icon span { color: var(--white); font-weight: 800; font-size: 1.125rem; letter-spacing: -1px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-weight: 800; font-size: 0.9rem; color: var(--primary); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.03em; }
.logo-text .tagline { font-size: 0.6rem; color: var(--text-muted); font-weight: 400; line-height: 1.3; max-width: 160px; }

/* Main navigation */
.main-nav { display: flex; align-items: stretch; }
.main-nav > ul { display: flex; align-items: stretch; margin: 0; padding: 0; gap: 0; }
.main-nav > ul > li { position: relative; display: flex; align-items: stretch; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0 0.6875rem; font-size: 0.8125rem; font-weight: 600;
  color: var(--primary); white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.6875rem;
  right: 0.6875rem;
  height: 3px;
  background-color: transparent;
  border-radius: 2px 2px 0 0;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--primary-dark); }
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after { background-color: var(--primary); }
.main-nav > ul > li > a svg { width: 10px; height: 10px; opacity: 0.5; margin-top: 1px; }

/* Dropdown */
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); min-width: 230px; padding: 0.5rem 0; z-index: 200; display: none; border-top: 2px solid var(--primary); }
.main-nav > ul > li:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 0.5625rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--primary); transition: background-color 0.15s; }
.dropdown a:hover { background-color: var(--bg-main); color: var(--primary-dark); }

/* CTA button area */
.header-cta { display: flex; align-items: center; padding: 0.75rem 0; flex-shrink: 0; }

/* ===== ========================================== =====
   FOOTER
   ===== ========================================== ===== */
.site-footer { background-color: var(--primary); color: var(--white); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .logo-text .name { color: var(--white); }
.footer-brand .logo-text .tagline { color: var(--accent); }
.footer-brand .logo-icon { background-color: rgba(255,255,255,0.15); }
.footer-desc { color: var(--accent); font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; max-width: 260px; }
.footer-contacts { margin-top: 1.25rem; }
.footer-contacts a, .footer-contacts p { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--accent); font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-contacts a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9375rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: var(--accent); font-size: 0.875rem; font-weight: 400; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: var(--accent); font-size: 0.8125rem; }
.footer-bottom a { color: var(--accent); font-size: 0.8125rem; }
.footer-bottom a:hover { color: var(--white); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background-color: var(--primary); color: var(--white); padding: 3rem 0 2.5rem; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .page-hero-desc { color: var(--accent); font-size: 1rem; max-width: 680px; margin-bottom: 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem 0.5rem; font-size: 0.8125rem; color: var(--accent); margin-bottom: 1.125rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--white); }

/* ===== SIDEBAR LAYOUT ===== */
.content-with-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.sidebar-nav { background-color: var(--white); border-radius: var(--radius); padding: 0.75rem 0; box-shadow: var(--shadow); }
.sidebar-nav .nav-title { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); padding: 0.5rem 1.25rem 0.75rem; }
.sidebar-nav a { display: block; padding: 0.5625rem 1.25rem; font-size: 0.9rem; font-weight: 500; color: var(--primary); border-left: 3px solid transparent; transition: all 0.15s; }
.sidebar-nav a:hover { background-color: var(--bg-main); border-left-color: var(--accent); }
.sidebar-nav a.active { background-color: #eef0f9; border-left-color: var(--primary); font-weight: 700; }

/* ===== TABLE ===== */
.table-wrapper { background-color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead { background-color: var(--primary); }
.data-table thead th { color: var(--white); padding: 0.875rem 1rem; text-align: left; font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.data-table tbody tr { border-bottom: 1px solid var(--bg-main); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background-color: #f7f8fd; }
.data-table tbody td { padding: 0.875rem 1rem; color: var(--primary); vertical-align: middle; }
.data-table tbody td a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); }
.data-table tbody td a:hover { color: var(--primary-dark); }

/* ===== FILTER BAR ===== */
.filter-bar { background-color: var(--white); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-bar input[type="search"], .filter-bar select { border: 1.5px solid var(--accent); border-radius: 4px; padding: 0.5rem 0.875rem; font-family: inherit; font-size: 0.875rem; color: var(--primary); background-color: var(--bg-main); outline: none; }
.filter-bar input[type="search"]:focus, .filter-bar select:focus { border-color: var(--primary); }
.filter-bar input[type="search"] { min-width: 220px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 0.375rem; }
.form-label .req { color: #e53e3e; margin-left: 2px; }
.form-control { width: 100%; border: 1.5px solid var(--accent); border-radius: 4px; padding: 0.625rem 0.875rem; font-family: inherit; font-size: 0.9375rem; color: var(--primary); background-color: var(--white); outline: none; transition: border-color 0.15s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75,88,141,0.10); }
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234B588D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-card { background-color: var(--white); border-radius: var(--radius); padding: 2rem 2.25rem; box-shadow: var(--shadow); }

/* ===== STEP LIST ===== */
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 2.75rem; height: 2.75rem; background-color: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; margin-top: 0.125rem; }
.step-body h4 { margin-bottom: 0.25rem; }
.step-body p { color: var(--text-muted); font-size: 0.9375rem; }

/* ===== STAT BOX ===== */
.stat-box { background-color: var(--white); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow); text-align: center; }
.stat-box .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.375rem; }
.stat-box .stat-label { font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }

/* ===== NEWS CARD ===== */
.news-card { background-color: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-img { width: 100%; aspect-ratio: 16/9; background-color: var(--accent); display: flex; align-items: center; justify-content: center; }
.news-card-img span { color: var(--primary); font-size: 0.75rem; font-weight: 600; opacity: 0.6; }
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.news-card-date { font-size: 0.8125rem; color: var(--text-muted); }
.news-card-body h4 { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.news-card-body p { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.news-card-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-top: 1rem; }
.news-card-link:hover { color: var(--primary-dark); }

/* ===== MEMBER CARD ===== */
.member-card { background-color: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1.25rem; }
.member-logo { width: 64px; height: 48px; background-color: var(--bg-main); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.member-info h4 { font-size: 0.9375rem; margin-bottom: 0.125rem; }
.member-info p { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== PARTNER LOGO ===== */
.partner-logo { background-color: var(--white); border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; min-height: 80px; }
.partner-logo span { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); }

/* ===== ACCORDION ===== */
.accordion-item { background-color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 0.75rem; overflow: hidden; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 1.125rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.accordion-header:hover { background-color: #f7f8fd; }
.accordion-header svg { flex-shrink: 0; transition: transform 0.2s; }
.accordion-header.open svg { transform: rotate(180deg); }
.accordion-body { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--text-muted); display: none; }
.accordion-body.open { display: block; }

/* ===== ALERT / NOTICE ===== */
.notice { border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.9375rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.notice-info { background-color: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
.notice-warning { background-color: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.notice-success { background-color: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.notice-danger { background-color: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 0.375rem; margin-top: 2rem; justify-content: center; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 4px; font-size: 0.875rem; font-weight: 600; color: var(--primary); background-color: var(--white); border: 1.5px solid var(--border); transition: all 0.15s; }
.pagination a:hover { background-color: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active { background-color: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== TAGS ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { display: inline-flex; align-items: center; gap: 0.25rem; background-color: var(--bg-main); color: var(--primary); font-size: 0.8125rem; font-weight: 500; padding: 0.3125rem 0.875rem; border-radius: 4px; border: 1px solid var(--border); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.875rem; top: 0; bottom: 0; width: 2px; background-color: var(--accent); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2.5rem; top: 0.125rem; width: 1rem; height: 1rem; background-color: var(--primary); border-radius: 50%; border: 3px solid var(--bg-main); }
.timeline-year { font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.timeline-item h4 { margin-bottom: 0.25rem; }
.timeline-item p { font-size: 0.9375rem; color: var(--text-muted); }

/* ===== CALCULATOR ===== */
.calc-result { background-color: var(--primary); color: var(--white); border-radius: var(--radius); padding: 1.5rem 2rem; margin-top: 1.5rem; }
.calc-result .result-label { font-size: 0.875rem; color: var(--accent); margin-bottom: 0.375rem; }
.calc-result .result-value { font-size: 2rem; font-weight: 800; color: var(--white); }
.calc-result .result-note { font-size: 0.8125rem; color: var(--accent); margin-top: 0.5rem; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay { display: none; position: fixed; inset: 0; background-color: rgba(75,88,141,0.75); z-index: 1000; align-items: flex-start; justify-content: center; padding-top: 15vh; }
.search-overlay.open { display: flex; }
.search-box { background-color: var(--white); border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 600px; box-shadow: var(--shadow-md); }
.search-box input { width: 100%; border: 2px solid var(--primary); border-radius: 4px; padding: 0.875rem 1rem; font-size: 1.0625rem; font-family: inherit; color: var(--primary); outline: none; }

/* ===== LANG DROPDOWN ===== */
.lang-dropdown { position: absolute; top: 100%; right: 0; background-color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 0.375rem 0; min-width: 80px; z-index: 300; display: none; }
.lang-dropdown.open { display: block; }
.lang-dropdown a { display: block; padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 600; color: var(--primary); }
.lang-dropdown a:hover { background-color: var(--bg-main); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: flex; }
}
.mobile-menu-btn { display: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; color: var(--primary); }
