:root {
    --navy: #0c2945;
    --blue: #173f63;
    --steel: #5e7184;
    --light: #f3f6f9;
    --line: #d9e1e8;
    --red: #a83c43;
    --ink: #182533;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 1180px;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.section-inner {
    width: 1120px;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--navy);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
    width: 1180px;
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 210px;
    height: 54px;
    object-fit: contain;
    background: var(--white);
    padding: 6px 10px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.site-nav a,
.nav-dropdown-button,
.avatar-button {
    color: var(--white);
}

.nav-dropdown,
.avatar-menu {
    position: relative;
}

.nav-dropdown-button,
.avatar-button {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown-menu,
.avatar-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 250px;
    padding: 14px 10px 10px;
    display: none;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(10, 32, 52, 0.18);
}

.nav-dropdown-menu a,
.avatar-dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
}

.nav-dropdown-menu a:hover,
.avatar-dropdown a:hover {
    background: var(--red);
    color: var(--white);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.avatar-menu.open .avatar-dropdown {
    display: block;
}

.avatar-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    font-weight: 700;
}

.hero {
    min-height: 540px;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-inner {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1,
.page-hero h1 {
    width: 760px;
    margin: 0;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: 0;
}

.hero p {
    width: 650px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 150px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.button-primary {
    background: var(--red);
    color: var(--white);
}

.category-section,
.section {
    padding: 76px 0;
    background: var(--white);
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2,
.contact-layout h2,
.profile-panel h2,
.parameter-panel h2,
.rich-copy h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    min-height: 300px;
    border: 1px solid var(--line);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.category-card img {
    height: 230px;
    width: 100%;
    object-fit: cover;
}

.category-card span {
    padding: 20px;
    color: var(--navy);
    font-weight: 700;
}

.contact-band {
    padding: 76px 0;
    background: var(--light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form,
.auth-card,
.profile-panel,
.parameter-panel,
.contact-details {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 18px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

textarea {
    resize: vertical;
}

.site-footer {
    background: #081f36;
    color: var(--white);
    padding: 42px 0;
}

.footer-inner {
    width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-company {
    display: grid;
    gap: 8px;
    max-width: 560px;
}

.footer-policies {
    display: grid;
    gap: 8px;
    text-align: right;
}

.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
}

.compact-hero {
    padding: 82px 0;
}

.page-hero p:not(.eyebrow) {
    width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.rich-copy,
.policy-copy {
    max-width: 900px;
}

.rich-copy p,
.policy-copy p,
.contact-details p,
.profile-panel p {
    margin: 0 0 18px;
}

.solution-layout {
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 48px;
    align-items: start;
}

.solution-main-image {
    width: 410px;
    height: 330px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.parameter-panel {
    margin-top: 22px;
}

dl {
    margin: 0;
}

dl div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

dt {
    font-weight: 700;
    color: var(--navy);
}

dd {
    margin: 0;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.process-step {
    border: 1px solid var(--line);
    padding: 22px;
    background: var(--light);
}

.process-step span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
}

.auth-section {
    min-height: 620px;
    padding: 84px 0;
    background: var(--light);
}

.auth-card {
    width: 520px;
    margin: 0 auto;
}

.auth-card h1 {
    margin: 0 0 22px;
    color: var(--navy);
}

.stacked-form {
    display: grid;
}

.auth-note {
    margin: 18px 0 0;
}

.auth-note a,
.contact-details a,
.footer-company a {
    color: var(--red);
}

.profile-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.history-table th {
    color: var(--navy);
}

.flash {
    width: 1120px;
    margin: 22px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: var(--light);
}

.flash-success {
    border-color: #7da67d;
}

.flash-error {
    border-color: var(--red);
}
