/* Подключение шрифтов */
@font-face {
    font-family: 'PF Fusion Sans Pro';
    src: url('../fonts/PFFusionSansPro-Black-subset.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные */
:root {
    --primary: #FFB800;
    --secondary: #1A1A1A;
    --petg-white: #F5F5F5;
    --petg-black: #2C2C2C;
    --petg-clear: #E8E8E8;
    --accent: #3D7EFF;
    --success: #4CAF50;
    --error: #FF5252;
    --gray-100: #F7F7F7;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    
    /* Шрифты */
    --font-heading: 'PF Fusion Sans Pro', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #007bff;
    --text-color: #333;
    --header-height: 60px;
}

/* Базовые стили */
body {
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--secondary);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Типографика */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
}

/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button-primary {
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.4);
}

.button-secondary {
    background: var(--gray-200);
    color: var(--secondary);
}

.button-secondary:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 1rem;
}

.header__logo {
    display: block;
    position: relative;
    width: 240px;
    height: 56px;
    overflow: hidden;
    margin-top: 2px;
    margin-bottom: 2px;
}

.header__logo-img {
    display: block;
    width: 240px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
    transform: scale(1.15);
    transform-origin: left center;
}

/* Кнопка меню для мобильных */
.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    margin: 5px 0;
    transition: 0.3s ease;
    transform-origin: center;
}

/* Навигация */
.header__nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    height: 100%;
}

.header__menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__menu a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    padding: 0.75rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.header__menu a:not(.button)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.header__menu a:not(.button):hover::after,
.header__menu a:not(.button).active::after {
    transform: scaleX(1);
}

/* Кнопка заказа в меню */
.header__menu .button {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.header__menu .button:hover {
    background: #2b6be0;
    transform: translateY(-2px);
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .header__menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        display: flex;
        flex-direction: column;
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__menu {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        align-items: flex-start;
        height: auto;
    }

    .header__menu li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 1rem;
    }

    .header__menu li:last-child {
        border-bottom: none;
    }

    .header__menu a {
        width: 100%;
        font-size: 1.5rem;
        padding: 0;
        color: var(--secondary);
    }

    .header__menu a:not(.button)::after {
        display: none;
    }

    .header__menu .button {
        width: 100%;
        margin: 1rem 0 0 0;
        padding: 1rem;
        justify-content: center;
        font-size: 1.5rem;
    }

    .header__menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Обновляем отступ для hero-секции */
.hero {
    padding-top: calc(var(--header-height) + 1rem);
}

/* Hero секция */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    max-width: 600px;
    color: white;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__cta {
    display: flex;
    gap: 1rem;
}

.hero__image {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    z-index: 1;
}

.hero__image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Общие стили для всех секций */
.advantages,
.dimensions,
.magnetic,
.card-access,
.modules,
.gallery,
.order {
    padding: 6rem 0;
}

.advantages {
    background: white;
}

.dimensions {
    background: white;
}

.magnetic {
    background: var(--gray-100);
}

.card-access {
    background: white;
}

.modules {
    background: var(--gray-100);
}

.gallery {
    background: white;
}

/* Общие стили для заголовков секций */
.advantages__title,
.dimensions__title,
.magnetic__title,
.card-access__title,
.modules__title,
.gallery__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .advantages,
    .dimensions,
    .magnetic,
    .card-access,
    .modules,
    .gallery,
    .order {
        padding: 4rem 0;
    }

    .advantages__title,
    .dimensions__title,
    .magnetic__title,
    .card-access__title,
    .modules__title,
    .gallery__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Секция преимуществ */
.advantages {
    padding: 6rem 0;
    background: white;
}

.advantages__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-card {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
}

.advantage-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.advantage-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.advantage-card__text {
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1.6;
}

.advantage-card--image {
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--petg-white);
}

.advantage-card__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advantage-card--image:hover .advantage-card__preview {
    transform: scale(1.05);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__image {
        right: -10%;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .advantage-card--image {
        grid-column: span 2;
        grid-row: 1;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 80%;
        margin: 2rem auto 0;
    }

    .hero__cta {
        justify-content: center;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .advantage-card--image {
        grid-column: 1;
        aspect-ratio: 4/3;
    }
}

/* Конфигуратор */
.configurator {
    padding: 6rem 0;
    background: white;
}

.configurator__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.configurator__subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 4rem;
}

.configurator__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Форма конфигуратора */
.config-form {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 16px;
}

.config-form__group {
    margin-bottom: 2rem;
}

.config-form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

/* Радио кнопки */
.config-form__radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-button {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-button input[type="radio"] {
    display: none;
}

.radio-button span {
    position: relative;
    padding-left: 2rem;
}

.radio-button span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.radio-button input[type="radio"]:checked + span::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px var(--gray-100);
}

/* Счетчик */
.config-form__counter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-button {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 8px;
    background: var(--gray-200);
    color: var(--secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-button:hover {
    background: var(--gray-300);
}

.counter-input {
    width: 4rem;
    height: 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

/* Селект */
.config-form__select {
    width: 100%;
    height: 2.5rem;
    padding: 0 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Цвета */
.config-form__colors {
    display: flex;
    gap: 1.5rem;
}

.color-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.color-button input[type="radio"] {
    display: none;
}

.color-sample {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    transition: all 0.2s ease;
}

.color-sample--white {
    background: white;
}

.color-sample--black {
    background: var(--petg-black);
}

.color-sample--clear {
    background: var(--petg-clear);
}

.color-button input[type="radio"]:checked + .color-sample {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Текстовое поле */
.config-form__textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
}

/* Итого */
.config-form__total {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.total-price__label {
    color: var(--gray-400);
}

.total-price__value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.button--large {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* Предпросмотр */
.preview-card {
    position: sticky;
    top: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.preview-card__image {
    width: 100%;
    height: auto;
    display: block;
}

.preview-card__info {
    padding: 1.5rem;
}

.preview-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.preview-card__specs {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--gray-400);
}

.preview-card__specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.preview-card__specs li:last-child {
    border-bottom: none;
}

.preview-card__specs span {
    color: var(--secondary);
    font-weight: 500;
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .configurator__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .preview-card {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .configurator {
        padding: 4rem 0;
    }

    .configurator__title {
        font-size: 2rem;
    }

    .config-form {
        padding: 1.5rem;
    }

    .config-form__colors {
        justify-content: space-around;
    }
}

/* Галерея */
.gallery {
    padding: 6rem 0;
    background: var(--gray-100);
}

.gallery__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__image {
    transform: scale(1.05);
}

.gallery-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-card__description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Медиа-запросы для галереи */
@media (max-width: 768px) {
    .gallery {
        padding: 4rem 0;
    }

    .gallery__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Секция заказа */
.order {
    padding: 6rem 0;
    background: linear-gradient(to bottom right, var(--accent), #2b6be0);
    color: white;
    text-align: center;
}

.order__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.order__subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.order__discount {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: var(--gray-100);
}

.order__cta {
    display: flex;
    justify-content: center;
}

.order .button-primary {
    background: white;
    color: var(--accent);
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
}

.order .button-primary:hover {
    background: var(--gray-100);
}

/* Футер */
.footer {
    padding: 4rem 0;
    background: var(--secondary);
    color: white;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__brand {
    max-width: 300px;
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer__description {
    opacity: 0.8;
    line-height: 1.5;
}

.footer__contact {
    text-align: right;
}

.footer__contact p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Медиа-запросы для новых секций */
@media (max-width: 768px) {
    .order {
        padding: 4rem 0;
    }

    .order__title {
        font-size: 2rem;
    }

    .order__subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer__brand {
        max-width: none;
    }

    .footer__contact {
        text-align: center;
    }
}

/* Размеры */
.dimensions {
    padding: 3rem 0;
    background: white;
}

.dimensions__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.dimensions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.dimensions__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dimensions__images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
}

.dimensions__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

.dimensions__image:first-child {
    flex: 4;
}

.dimensions__image:last-child {
    flex: 1;
}

.dimensions__image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dimensions__diagram {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    display: block;
    max-height: 100%;
}

.dimensions__diagram:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .dimensions__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dimensions__images {
        position: static;
        height: auto;
        max-height: 90vh;
    }

    .dimensions__image:first-child {
        flex: 3;
    }

    .dimensions__image:last-child {
        flex: 1;
    }
}

/* Калькулятор габаритов */
.dimensions__calculator {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator__group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.calculator__label {
    font-weight: 500;
    color: var(--secondary);
    min-width: 120px;
    font-size: 0.9rem;
}

.calculator__select {
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: var(--secondary);
    flex: 1;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.calculator__counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.counter-button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: white;
    color: var(--secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-input {
    width: 50px;
    height: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary);
}

.calculator__result {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator__dimensions {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
    margin: 0;
}

.calculator__total,
.calculator__weight {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .dimensions__calculator {
        padding: 1rem;
        margin: 1rem 0;
    }

    .calculator__group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .calculator__label {
        min-width: auto;
    }

    .calculator__select,
    .calculator__counter {
        width: 100%;
    }

    .calculator__result {
        gap: 0.5rem;
    }
}

/* Магнитная система */
.magnetic {
    padding: 6rem 0;
    background: var(--gray-100);
}

.magnetic__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary);
}

.magnetic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.magnetic__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.magnetic__text {
    flex: 1;
}

.magnetic__subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.magnetic__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.magnetic__list li {
    position: relative;
    font-size: 1.125rem;
    color: var(--gray-600);
    padding: 1rem 0 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.magnetic__list li:last-child {
    border-bottom: none;
}

.magnetic__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.magnetic__image {
    background: var(--color-background-alt);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.magnetic__image--large {
    aspect-ratio: 16/9;
}

.magnetic__image:hover {
    transform: translateY(-5px);
}

.magnetic__diagram {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.magnetic__examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-self: center;
}

.magnetic__examples .magnetic__image {
    aspect-ratio: 4/3;
}

@media (max-width: 768px) {
    .magnetic__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .magnetic__content {
        gap: 1.5rem;
    }

    .magnetic__subtitle {
        font-size: 1.25rem;
    }

    .magnetic__list li {
        font-size: 1rem;
    }

    .magnetic__examples {
        gap: 1.5rem;
    }
}

/* Стили для секции модулей */
.modules {
    padding: 80px 0;
    background-color: var(--color-background);
}

.modules__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.modules__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.modules__content {
    padding-right: 2rem;
}

.modules__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.modules__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modules__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.modules__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.modules__image {
    background: var(--color-background-alt);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modules__image:hover {
    transform: translateY(-5px);
}

.modules__diagram {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .modules__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modules__content {
        padding-right: 0;
    }

    .modules__image {
        max-width: 100%;
    }
}

/* Стили для увеличения изображений */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: zoom-out;
}

.zoom-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-modal__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.zoom-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Добавляем курсор zoom-in для всех увеличиваемых изображений */
.zoomable {
    cursor: zoom-in;
}

/* Обновляем стили для изображений в секциях */
.magnetic__diagram,
.modules__diagram {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.magnetic__diagram:hover,
.modules__diagram:hover {
    transform: scale(1.05);
}

/* Стили для секции извлечения карт */
.card-access {
    padding: 3rem 0;
    background-color: white;
}

.card-access__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.card-access__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-access__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-access__subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.card-access__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.card-access__list li {
    position: relative;
    font-size: 1.125rem;
    color: var(--gray-600);
    padding: 0.375rem 0 0.375rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-access__list li:last-child {
    border-bottom: none;
}

.card-access__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.card-access__demo {
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.card-access__animation {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-access__scheme {
    margin-top: 1rem;
    background: var(--gray-100);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.card-access__diagram {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .card-access {
        padding: 2rem 0;
    }

    .card-access__title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .card-access__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-access__content {
        gap: 0.75rem;
    }

    .card-access__subtitle {
        font-size: 1.125rem;
    }

    .card-access__list li {
        font-size: 1rem;
        padding: 0.25rem 0 0.25rem 1.25rem;
    }

    .card-access__list li::before {
        top: 0.75rem;
    }

    .card-access__scheme {
        margin-top: 0.75rem;
    }
}

/* Общие стили для изображений в секциях */
.dimensions__image,
.card-access__demo,
.card-access__scheme,
.magnetic__image,
.modules__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
}

.dimensions__image:hover,
.card-access__demo:hover,
.card-access__scheme:hover,
.magnetic__image:hover,
.modules__image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dimensions__image--side,
.card-access__scheme,
.magnetic__image--side {
    margin-top: 1rem;
    min-height: 200px;
}

.dimensions__diagram,
.card-access__animation,
.card-access__diagram,
.magnetic__diagram,
.modules__diagram {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.dimensions__diagram:hover,
.card-access__diagram:hover,
.magnetic__diagram:hover,
.modules__diagram:hover {
    transform: scale(1.02);
}

/* Специфичные стили для card-access */
.card-access__demo {
    aspect-ratio: auto;
    min-height: 400px;
}

.card-access__animation {
    object-fit: cover;
}

/* Специфичные стили для magnetic */
.magnetic__image--large {
    min-height: 400px;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .dimensions__image,
    .card-access__demo,
    .card-access__scheme,
    .magnetic__image,
    .modules__image {
        padding: 1rem;
        min-height: 250px;
    }

    .dimensions__image--side,
    .card-access__scheme,
    .magnetic__image--side {
        min-height: 150px;
    }

    .card-access__demo {
        min-height: 300px;
    }

    .magnetic__image--large {
        min-height: 300px;
    }
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .header__menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        display: flex;
        flex-direction: column;
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__menu {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        align-items: flex-start;
        height: auto;
    }

    .header__menu li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 1rem;
    }

    .header__menu li:last-child {
        border-bottom: none;
    }

    .header__menu a {
        width: 100%;
        font-size: 1.5rem;
        padding: 0;
        color: var(--secondary);
    }

    .header__menu a:not(.button)::after {
        display: none;
    }

    .header__menu .button {
        width: 100%;
        margin: 1rem 0 0 0;
        padding: 1rem;
        justify-content: center;
        font-size: 1.5rem;
    }

    .header__menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.header__menu a:not(.button).active {
    color: var(--accent);
}

.header__menu a:not(.button).active::after {
    transform: scaleX(1);
}

.calculator__custom-size {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.calculator__unit {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.calculator__note {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .calculator__custom-size {
        padding: 0.75rem;
    }
}

.calculator__inputs-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.calculator__input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator__separator {
    color: var(--gray-400);
    font-size: 1.2rem;
    margin: 0 0.25rem;
}

.calculator__unit {
    color: var(--gray-400);
    font-size: 0.9rem;
    min-width: 1.5rem;
}

.counter-input {
    width: 60px;
    height: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .calculator__inputs-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .calculator__separator {
        margin: 0.5rem 0;
    }

    .calculator__input-group {
        width: 100%;
    }

    .counter-input {
        width: 100%;
    }
}

.dimensions__subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.dimensions__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.dimensions__list li {
    font-size: 1.125rem;
    color: var(--gray-600);
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.dimensions__list li:last-child {
    border-bottom: none;
}

.dimensions__note {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 1rem;
} 