:root {
    --color-bg: #ffffff;
    --color-dark: #0f2137;
    --color-dark-2: #16324f;
    --color-accent: #e8551a;
    --color-accent-dark: #c8440f;
    --color-text: #2a2f36;
    --color-muted: #67707a;
    --color-line: #e4e8ee;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 33, 55, 0.08);
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo__icon {
    color: var(--color-accent);
    display: flex;
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-dark);
}

.logo__tagline {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-weight: 500;
    color: var(--color-dark);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--color-accent);
}

.header__cta {
    flex-shrink: 0;
    padding: 12px 22px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 33, 55, 0.55);
    backdrop-filter: blur(2px);
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 560px;
    width: 100%;
    padding: 32px 32px 28px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal__close:hover {
    color: var(--color-accent);
}

.modal__title {
    margin: 0 0 16px;
    font-size: 1.4rem;
    color: var(--color-dark);
    padding-right: 24px;
}

.modal__text {
    margin: 0 0 16px;
    color: var(--color-text);
}

.modal__email {
    color: var(--color-accent);
    font-weight: 600;
}

.modal__email:hover {
    text-decoration: underline;
}

.modal__list {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text);
}

.modal__list li {
    margin-bottom: 10px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
    color: #fff;
    padding: 90px 0;
}

.hero__inner {
    max-width: 720px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0 0 18px;
    line-height: 1.15;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 32px;
}

.hero__small {
    font-size: 1.00rem;
    color: rgba(255, 255, 255, 0.30);
    margin: 15px 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn--primary:hover {
    background: var(--color-accent-dark);
}

.btn--outline {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section--dark {
    background: var(--color-dark);
    color: #fff;
}

.section__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0 0 12px;
    text-align: center;
    color: inherit;
}

.section:not(.section--dark) .section__title {
    color: var(--color-dark);
}

.section__lead {
    text-align: center;
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto 48px;
}

.section--dark .section__lead {
    color: rgba(255, 255, 255, 0.75);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 33, 55, 0.14);
}

.card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f5;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.card:hover .card__image img {
    transform: scale(1.06);
}

.card__body {
    padding: 20px 22px 24px;
}

.card__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--color-dark);
}

.card__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Video */
.video {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contacts */
.contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contacts__item {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 300px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow);
}

.contacts__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    font-weight: 600;
}

.contacts__value {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 500;
}

/* Footer */
.footer {
    background: #0a1826;
    color: rgba(255, 255, 255, 0.7);
    padding: 24px 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Large screens: pin CTA to the right corner of the viewport */
@media (min-width: 1200px) {
    .header .container {
        max-width: none;
        padding: 0 32px;
    }

    .header .nav {
        flex: 1;
        justify-content: center;
    }
}

/* Article page */
.article {
    padding: 60px 0 80px;
}

.article__inner {
    max-width: 820px;
    margin: 0 auto;
}

.breadcrumbs {
    margin: 0 0 24px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.breadcrumbs a {
    color: var(--color-accent);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 6px;
    color: var(--color-muted);
}

.article__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 24px;
    color: var(--color-dark);
    line-height: 1.15;
}

.article__cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 0 32px;
    display: block;
}

.article__body p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: var(--color-text);
}

.article__body h2 {
    font-size: 1.4rem;
    margin: 32px 0 12px;
    color: var(--color-dark);
}

.article__back {
    display: inline-block;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 720px) {
    .header__inner {
        flex-wrap: wrap;
        gap: 12px;
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav {
        display: none;
    }

    .logo__name {
        font-size: 0.95rem;
    }

    .header__cta {
        width: 100%;
        display: block;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 64px 0;
    }

    .section {
        padding: 60px 0;
    }
}
