:root {
    --color-bg: #ffffff;
    --color-surface: #f0f6fb;
    --color-accent: #5dade2;
    --color-accent-strong: #2e86c1;
    --color-text: #2c3e50;
    --color-muted: #6c7a89;
    --radius-sm: 10px;
    --radius-md: 16px;
    --shadow-soft: 0 12px 30px rgba(46, 134, 193, 0.12);
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 80%);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

.page {
    min-height: 100vh;
}

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(93, 173, 226, 0.2);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-accent-strong);
}

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

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.hero {
    padding: 70px 0 40px;
    background: radial-gradient(circle at 20% 20%, rgba(93, 173, 226, 0.18), transparent 60%);
}

.hero__content {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero__text {
    display: grid;
    gap: 18px;
}

.hero__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.hero__subtitle {
    font-size: 17px;
    color: var(--color-muted);
    margin: 0;
    max-width: 520px;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    color: var(--color-accent-strong);
}

.hero__image img {
    width: min(360px, 100%);
    justify-self: center;
    box-shadow: var(--shadow-soft);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button--primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(46, 134, 193, 0.2);
}

.button--ghost {
    background: rgba(93, 173, 226, 0.12);
    color: var(--color-accent-strong);
    border: 1px solid rgba(46, 134, 193, 0.2);
}

.button--ghost:hover {
    background: rgba(46, 134, 193, 0.18);
}

.section {
    padding: 64px 0;
}

.section--light {
    background: var(--color-surface);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section__header h2,
.section__header h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 36px);
}

.section__header p {
    margin: 0;
    color: var(--color-muted);
}

.features {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.feature-card h3 {
    margin-top: 0;
}

.category-preview {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
}

.category-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card__link {
    color: var(--color-accent-strong);
    font-weight: 500;
}

.category-card__body {
    margin: 0;
    color: var(--color-muted);
}

.gallery-preview {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-preview__item {
    display: block;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-preview__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(46, 134, 193, 0.18);
}

.gallery-preview__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.gallery-preview__caption {
    padding: 16px 18px;
    font-weight: 500;
}

.footer {
    background: #1e2f3f;
    color: rgba(255, 255, 255, 0.82);
    padding: 32px 0;
    margin-top: 40px;
}

.footer__inner {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer__contacts {
    display: grid;
    gap: 8px;
}

.gallery-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid__item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
    display: grid;
    gap: 12px;
}

.gallery-grid__item figcaption {
    display: grid;
    gap: 4px;
}

.gallery-grid__item strong {
    font-size: 16px;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    z-index: 40;
}

.lightbox.is-visible {
    display: flex;
}

.lightbox__image {
    max-width: min(90vw, 800px);
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.lightbox__caption {
    color: #ffffff;
    text-align: center;
    max-width: 600px;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
}

.catalog-list {
    display: grid;
    gap: 20px;
}

.catalog-category {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.catalog-category__header {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    cursor: pointer;
}

.catalog-category__header h2 {
    margin: 0 0 8px;
}

.catalog-category__header p {
    margin: 0;
    color: var(--color-muted);
}

.catalog-category__toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    position: relative;
    flex-shrink: 0;
}

.catalog-category__toggle::before,
.catalog-category__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: var(--color-accent-strong);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.catalog-category__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.catalog-category.is-open .catalog-category__toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.catalog-category__content {
    display: none;
    padding: 0 28px 28px;
}

.catalog-category.is-open .catalog-category__content {
    display: block;
}

.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(46, 134, 193, 0.15);
}

.product-card__media {
    cursor: zoom-in;
}

.product-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card__body h3 {
    margin: 0 0 8px;
}

.product-card__body p {
    margin: 0;
    color: var(--color-muted);
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price {
    font-weight: 600;
    color: var(--color-accent-strong);
}

.product-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 50;
}

.product-modal[hidden] {
    display: none;
}

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

.product-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    display: grid;
    gap: 16px;
    max-width: 420px;
    box-shadow: 0 22px 44px rgba(46, 134, 193, 0.25);
    z-index: 1;
}

.product-modal__content {
    display: grid;
    gap: 12px;
}

.product-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 32px;
    color: var(--color-muted);
    cursor: pointer;
    line-height: 1;
}

.product-modal__media {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f9fd;
    border-radius: var(--radius-sm);
    padding: 12px;
}

.product-modal__media img {
    width: 100%;
    max-height: min(60vh, 360px);
    object-fit: contain;
}

.product-modal__price {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-accent-strong);
}

.product-modal__long {
    margin: 0;
    color: var(--color-text);
    line-height: 1.5;
}

.product-modal__thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-modal__thumbnails[hidden] {
    display: none;
}

.product-modal__thumbnail {
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.product-modal__thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.product-modal__thumbnail.is-active {
    border-color: var(--color-accent-strong);
    transform: translateY(-2px);
}

.contacts-layout {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contacts-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.contacts-card__image {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 0;
    background: #f5f9fd;
    padding: 12px;
}

.contacts-card__body {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.contact-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.contact-list dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}

.contact-list dd {
    margin: 4px 0 0;
}

.contacts-form {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 16px;
}

.contacts-form form {
    display: grid;
    gap: 16px;
}

.contacts-form label {
    display: grid;
    gap: 6px;
    font-weight: 500;
}

.contacts-form input,
.contacts-form textarea {
    border: 1px solid rgba(46, 134, 193, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font: inherit;
    resize: vertical;
}

.contacts-form input:focus,
.contacts-form textarea:focus {
    outline: 2px solid rgba(93, 173, 226, 0.45);
    border-color: transparent;
}

.form-status {
    min-height: 20px;
    font-size: 14px;
    color: var(--color-muted);
}

@media (max-width: 720px) {
    .nav {
        display: none;
    }

    .site-header__inner {
        justify-content: center;
    }

    .hero {
        padding-top: 40px;
    }

    .hero__image img {
        width: min(280px, 80vw);
    }

    .button {
        width: 100%;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

