:root {
    --sn-bg: #f6f4f1;
    --sn-dark: #1b1b1b;
    --sn-accent: #f06f21;
    --sn-accent-2: #0e7c86;
    --sn-light: #ffffff;
    --sn-gray: #6c6c6c;
    --sn-border: #e4ddd5;
    --text: #1b1b1b;
    --text-muted: #6c6c6c;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, 0.75);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--sn-bg);
    line-height: 1.6;
}

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

h2,
h3 {
    color: var(--text);
}

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

.sn-main {
    overflow: hidden;
}

.sn-section__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 2.4vw, 2.6rem);
    margin: 0 0 1rem;
    color: var(--text);
}

.sn-section__subtitle {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    max-width: 720px;
}

.sn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sn-btn--accent {
    background: #ff7a1a;
    color: var(--sn-light);
}

.sn-btn--ghost {
    background: transparent;
    border: 2px solid #ff7a1a;
    color: #ff7a1a;
}

.sn-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 244, 241, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--sn-border);
}

.sn-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.sn-header__brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.sn-header__logo {
    width: 140px;
    height: auto;
}

.sn-header__text {
    font-weight: 700;
    white-space: nowrap;
}

.sn-header__messengers {
    display: inline-flex;
    gap: 0.6rem;
}

.sn-header__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    justify-self: end;
}

.sn-header__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--sn-border);
    color: var(--sn-dark);
}

.sn-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.sn-header__contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    text-align: right;
}

.sn-header__phone,
.sn-header__email {
    white-space: nowrap;
}

.sn-header__email {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.sn-header__cta {
    display: flex;
    justify-content: flex-end;
}

.sn-header__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sn-dark);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    background: #fff;
    flex-direction: column;
}

.sn-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--sn-dark);
}

.sn-footer {
    background: #124170;
    color: var(--sn-light);
    padding: 3rem 0 2rem;
}

.sn-footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.sn-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sn-brand__logo {
    width: 160px;
}

.sn-footer__menu .sn-menu {
    flex-direction: column;
    gap: 0.6rem;
}

.sn-footer__links {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.sn-footer__links a {
    color: inherit;
}

.sn-footer__bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.sn-form {
    display: grid;
    gap: 1rem;
}

.sn-form__field {
    display: grid;
    gap: 0.5rem;
}

.sn-form__field input,
.sn-form__field textarea {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--sn-border);
    background: #fff;
}

.sn-form__status {
    min-height: 1.2rem;
    font-weight: 600;
}

.sn-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.sn-modal.is-open {
    display: flex;
}

.sn-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.sn-modal__dialog {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    z-index: 1;
}

.sn-modal__dialog h3,
.sn-modal__dialog .sn-modal__title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.sn-modal__close {
    border: none;
    background: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

.sn-form__checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sn-back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #ff7a1a;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 80;
}

.sn-back-to-top.is-visible {
    display: inline-flex;
}

.sn-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 120;
}

.sn-lightbox.is-open {
    display: block;
}

.sn-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.sn-lightbox__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.sn-lightbox__image {
    max-width: min(90vw, 1000px);
    max-height: 80vh;
    width: auto;
    height: auto;
    background: #fff;
    border-radius: 12px;
}

.sn-lightbox__close,
.sn-lightbox__nav {
    border: none;
    background: #ffffff;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.sn-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.is-dark {
    background: linear-gradient(140deg, #124170, #0f3257);
    color: var(--on-dark);
}

.is-dark .sn-section__title,
.is-dark h2,
.is-dark h3,
.is-dark h4 {
    color: var(--on-dark);
}

.is-dark .sn-section__subtitle {
    color: var(--on-dark-muted);
}

.sn-archive {
    padding: 3.5rem 0;
}

.sn-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.sn-archive__card {
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sn-archive__thumb {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.sn-archive__thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sn-archive__card h3,
.sn-archive__card .sn-archive__title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: inherit;
}

.sn-archive__note {
    margin-top: 1.8rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    color: var(--sn-dark);
}

.sn-page {
    padding: 3.5rem 0;
}

.sn-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.sn-breadcrumbs a {
    color: inherit;
}

.sn-breadcrumbs__sep {
    color: var(--text-muted);
}

.sn-breadcrumbs-section {
    padding: 1.5rem 0 0;
}

.sn-page__content {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
}

.sn-offcanvas {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 90;
}

.sn-offcanvas.is-open {
    display: block;
}

.sn-offcanvas__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.sn-offcanvas__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(85vw, 360px);
    height: 100%;
    background: #141414;
    color: var(--on-dark);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding: 1rem 1.2rem;
}

.sn-offcanvas.is-open .sn-offcanvas__panel {
    transform: translateX(0);
}

.sn-offcanvas__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.sn-offcanvas__close {
    background: transparent;
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sn-offcanvas__nav {
    overflow-y: auto;
    flex: 1;
}

.sn-offcanvas__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.sn-offcanvas .sn-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.sn-offcanvas__menu a {
    color: var(--on-dark);
}

.sn-offcanvas .sn-menu a {
    color: var(--on-dark);
}

.sn-offcanvas__menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0.4rem 0 0;
    display: none;
}

.sn-offcanvas .sn-menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0.4rem 0 0;
    display: none;
}

.sn-offcanvas__menu .menu-item.is-open > .sub-menu {
    display: grid;
    gap: 0.4rem;
}

.sn-offcanvas .sn-menu .menu-item.is-open > .sub-menu {
    display: grid;
    gap: 0.4rem;
}

.sn-offcanvas__toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--on-dark);
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.sn-offcanvas__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.menu-item.is-open > .sn-offcanvas__item .sn-offcanvas__toggle {
    transform: rotate(90deg);
}

.sn-offcanvas__cta {
    padding-top: 1rem;
}

.sn-offcanvas__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.sn-offcanvas__contacts .sn-header__phone,
.sn-offcanvas__contacts .sn-header__email {
    display: block;
    max-width: 100%;
}

.sn-offcanvas__contacts .sn-header__messengers {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.sn-offcanvas__cta .sn-btn {
    width: 100%;
}

.sn-body-locked {
    overflow: hidden;
}

.sn-section--bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 991px) {
    .sn-header__inner {
        grid-template-columns: auto 1fr;
    }

    .sn-header__aside {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .sn-header__contacts {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .sn-header__inner {
        grid-template-columns: 1fr auto;
        row-gap: 0.75rem;
    }

    .sn-header__brand {
        grid-column: 1 / -1;
    }

    .sn-header__aside {
        display: contents;
    }

    .sn-header__contacts {
        grid-column: 1 / 2;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
    }

    .sn-header__cta {
        grid-column: 1 / -1;
        width: 100%;
    }

    .sn-header__cta .sn-btn {
        width: 100%;
        max-width: 100%;
    }

    .sn-header__nav {
        display: none;
    }

    .sn-header__toggle {
        display: inline-flex;
        grid-column: 2 / 3;
        align-self: center;
        justify-self: end;
    }
}

@media (max-width: 576px) {
    .sn-header__inner {
        row-gap: 0.6rem;
    }

    .sn-header__brand {
        gap: 0.4rem;
    }
}

@media (max-width: 420px) {
    .sn-header .sn-brand__logo {
        width: 120px;
    }

    .sn-header__text {
        font-size: 0.95rem;
    }
}
