* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-text: #24313f;
    --color-muted: #66768a;
    --color-border: #dde6ef;
    --color-soft: #f3f7fb;
    --color-surface: #ffffff;
    --color-primary: #1f6fb6;
    --color-primary-dark: #174f83;
    --color-accent: #c7352f;
    --shadow-soft: 0 16px 40px rgba(26, 61, 96, 0.10);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #f7fbff 0, #fff 360px);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

#header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 26px rgba(26, 61, 96, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 0;
}

#main-nav {
    flex: 0 1 auto;
}

.logo img {
    display: block;
    max-height: 68px;
    width: auto;
}

#main-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    display: block;
    border-radius: 999px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 10px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#main-nav li.current > a,
#main-nav a:hover,
#main-nav a:focus-visible {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(31, 111, 182, 0.22);
}

#main-nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 270px;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

#main-nav li:hover ul,
#main-nav li:focus-within ul {
    display: block;
}

#main-nav li ul a {
    border-radius: 12px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle span:not(.visually-hidden) {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#main-content {
    padding: 46px 0 64px;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(260px, 0.75fr);
    gap: 34px;
    align-items: start;
}

.main-content-col,
.sidebar-section,
.service-item,
.hero-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.main-content-col {
    padding: 30px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(199, 53, 47, 0.12), transparent 36%),
        linear-gradient(135deg, #ffffff 0%, #eef6fd 100%);
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
}

.hero-panel h1,
.main-content-col > h1,
.content h1 {
    margin-bottom: 16px;
    color: #172536;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.main-content-col > h1 {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.main-content-col > h1::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    content: "";
}

.hero-panel p {
    max-width: 760px;
    color: var(--color-muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 18px;
    text-decoration: none;
}

.button:hover,
.button:focus-visible {
    text-decoration: none;
}

.button-primary {
    background: var(--color-primary);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--color-primary-dark);
    color: #fff;
}

.button-accent {
    background: var(--color-accent);
    color: #fff;
}

.button-accent:hover,
.button-accent:focus-visible {
    background: #a72a26;
    color: #fff;
}

.button-muted {
    background: #e8eef5;
    color: var(--color-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 26px 0 6px;
}

.service-item {
    min-height: 100%;
    padding: 24px 18px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-item:hover {
    border-color: rgba(31, 111, 182, 0.35);
    box-shadow: 0 18px 44px rgba(31, 111, 182, 0.14);
    transform: translateY(-4px);
}

.service-item img {
    display: block;
    width: 104px;
    margin: 0 auto 16px;
}

.service-item p {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.content {
    color: #324154;
}

.content p {
    margin-bottom: 16px;
}

.content > p:first-child {
    color: #4d5c6d;
    font-size: 17px;
}

.content h1 {
    margin-bottom: 20px;
}

.content h3,
.content h4 {
    margin: 28px 0 14px;
    color: var(--color-primary-dark);
    font-size: 20px;
    line-height: 1.3;
}

.content h3 {
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.content h3:first-child {
    padding-top: 0;
    border-top: 0;
}

.content ul {
    margin: 14px 0 22px 24px;
    padding-left: 14px;
}

.content li {
    margin-bottom: 8px;
}

.content strong {
    color: #172536;
}

.content hr,
.main-content-col > hr {
    height: 1px;
    margin: 26px 0;
    border: 0;
    background: var(--color-border);
}

.header-image {
    overflow: hidden;
    margin: 0 0 24px;
    border-radius: 16px;
    background: var(--color-soft);
}

.header-image img {
    display: block;
    width: 100%;
}

.sidebar-col {
    display: grid;
    gap: 20px;
}

.sidebar-section {
    padding: 24px;
}

.sidebar-section h3,
footer h2 {
    margin-bottom: 14px;
    color: #172536;
    font-size: 18px;
    line-height: 1.25;
}

.sidebar-section h3::after {
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--color-accent);
    content: "";
}

.contact-info p {
    margin-bottom: 8px;
}

.eshops-list,
footer ul {
    list-style: none;
}

.eshops-list {
    display: grid;
    gap: 8px;
}

.eshops-list a {
    display: inline-flex;
    font-weight: 700;
}

.logo-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 0;
    list-style: none;
}

.logo-list a {
    display: grid;
    min-height: 118px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(26, 61, 96, 0.07);
}

.logo-list img {
    max-height: 58px;
    width: auto;
}

#footer {
    background: #172536;
    color: #d9e2ec;
    padding-top: 42px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

#footer h2 {
    color: #fff;
}

#footer a {
    color: #e8f2ff;
}

#footer li {
    margin-bottom: 8px;
}

.copyright {
    margin-top: 36px;
    padding: 18px 0;
    background: #101b28;
    text-align: center;
}

.copyright p {
    color: #aebccc;
    font-size: 14px;
}

#cookie_background[hidden],
#cookie_settings[hidden],
#ca_banner[hidden] {
    display: none !important;
}

#cookie_background {
    position: fixed;
    inset: 0;
    z-index: 12042;
    display: block;
    background: rgba(14, 24, 35, 0.55);
}

.cookie-overlay-button {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#cookie_settings {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 12043;
    display: block;
    width: min(620px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

#cookie_settings h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

#cookie_settings h3 {
    margin: 18px 0 8px;
    font-size: 17px;
}

#cookie_settings p {
    margin-bottom: 12px;
    color: #4d5c6d;
    font-size: 15px;
}

#cookie_settings hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 18px 0;
}

#ca_banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12041;
    display: block;
    background: rgba(16, 27, 40, 0.97);
    color: #fff;
    padding: 22px 0;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.22);
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

#ca_banner h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

#ca_banner p {
    color: #dbe5ef;
    font-size: 15px;
}

#ca_banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#ca_banner .button,
#cookie_settings .button {
    background: #E6E6E6;
    color: #222;
}

#ca_banner .button:hover,
#ca_banner .button:focus-visible,
#cookie_settings .button:hover,
#cookie_settings .button:focus-visible {
    background: #d6d6d6;
    color: #222;
}

#ca_banner .closeRed,
#cookie_settings .closeRed {
    background: #4a4a4a;
    color: #fff;
}

#ca_banner .closeRed:hover,
#ca_banner .closeRed:focus-visible,
#cookie_settings .closeRed:hover,
#cookie_settings .closeRed:focus-visible {
    background: #3d3d3d;
    color: #fff;
}

@media (max-width: 980px) {
    #main-nav ul {
        justify-content: flex-end;
    }

    .main-grid,
    .cookie-banner-inner {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    #main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

    #main-nav.is-open {
        display: block;
    }

    #main-nav ul {
        display: grid;
        width: 100%;
        gap: 4px;
        justify-content: stretch;
        padding-top: 10px;
    }

    #main-nav a {
        border-radius: 12px;
        padding: 9px 11px;
    }

    #main-nav li ul {
        position: static;
        display: grid;
        min-width: 0;
        margin: 4px 0 4px 12px;
        padding: 4px;
        border-radius: 12px;
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .container,
    .cookie-banner-inner {
        width: min(100% - 28px, 1120px);
    }

    #main-content {
        padding: 28px 0 44px;
    }

    .main-content-col,
    .hero-panel,
    .sidebar-section {
        padding: 22px;
    }

    .services-grid,
    .logo-list {
        grid-template-columns: 1fr;
    }

    .services-grid {
        display: grid;
    }

    .hero-actions,
    .cookie-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
