:root {
    --primary: #173B67;
    --secondary: #2878C8;
    --accent: #16B8A6;
    --bg-light: #F5F8FC;
    --text-dark: #202B3C;
    --white: #fff;
    --border: #dfeaf5;
    --shadow: 0 16px 45px rgba(23, 59, 103, 0.12);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 80px 0; }
.section-title { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 14px; }
.section-lead { color: #53657b; max-width: 760px; margin: 0 auto 30px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
    border-radius: 999px; padding: 14px 24px; font-weight: 600; transition: 0.2s ease;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0f2e54; text-decoration: none; }
.btn-secondary { background: var(--accent); color: var(--white); }
.btn-secondary:hover { background: #10a293; text-decoration: none; }
.grid { display: grid; gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.site-main { min-height: 55vh; }
.page-hero {
    background: linear-gradient(135deg, rgba(23, 59, 103, 0.96), rgba(40, 120, 200, 0.88));
    color: var(--white); padding: 90px 0 60px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.9); }
.breadcrumbs { font-size: 0.95rem; color: rgba(255,255,255,0.9); margin-bottom: 14px; }
.content-block { max-width: 1100px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 1rem; background: var(--white);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.result-box {
    margin-top: 24px; padding: 22px; border-radius: 18px; background: #eef9ff; border: 1px solid #d4efff; font-weight: 600;
}
.result-box .result-value { font-size: clamp(1.5rem, 3vw, 2.4rem); display: block; margin-top: 12px; }
.inline-note { font-size: 0.92rem; color: #5a6777; }
.not-found { text-align: center; padding: 120px 0; }
.table-scroll { overflow-x: auto; }
.table-like { width: 100%; border-collapse: collapse; }
.table-like th, .table-like td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.faq-list { display: grid; gap: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-question { width: 100%; background: transparent; border: none; text-align: left; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; font-weight: 700; color: var(--text-dark); cursor: pointer; }
.faq-answer { display: none; padding: 0 20px 18px; color: #4c5a6d; }
.faq-item.active .faq-answer { display: block; }
.faq-item[open] .faq-answer { display: block; }

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .page-hero { padding-top: 74px; }
    .form-actions { flex-direction: column; }
    .btn { width: 100%; }
}
