/* ============================================
   1. ПЕРЕМЕННЫЕ И СБРОСЫ (base.css)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --text-white: #ffffff;
    --text-gray: #cbd5e1;
    --text-muted: #6b7280;
    --border-dim: #1f2937;
    --transition: all 0.3s ease;
    --container-width: 1280px;
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ============================================
   2. КОМПОНЕНТЫ (components.css)
   ============================================ */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--primary);
    color: #0b1120;
    border: none;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.page-header {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1f2e 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-dim);
}

.page-header__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header__subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #050a12;
    color: white;
    border: 2px solid #1f2937;
    border-radius: 40%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

.scrollToTopBtn:hover {
    border: 1px solid #fbbf24;
}

/* ============================================
   3. LAYOUT (layout.css)
   ============================================ */
header {
    border-bottom: 1px solid var(--border-dim);
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a0f1a;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-white), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.section--dark {
    background: rgba(0, 0, 0, 0.2);
}

.section__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-light);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-dim);
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state__text {
    color: var(--text-muted);
}

.empty-state__text a {
    color: var(--primary-light);
    text-decoration: none;
}

footer {
    background: #050a12;
    border-top: 1px solid var(--border-dim);
    padding: 2rem 1rem 1.5rem;
    margin-top: 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-contacts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-contacts li p,
.footer-contacts li a {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contacts a:hover {
    color: var(--primary-light);
}

.footer-social {
    margin: 0.5rem 0;
}

.footer-social-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links li a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

footer img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-dim);
    width: 100%;
    max-width: 400px;
}

/* ============================================
   4. МОБИЛЬНОЕ МЕНЮ (mobile-nav.css)
   ============================================ */
body.menu-open,
body.menu-open html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 24px;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 3px;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; }
.mobile-menu-toggle span:nth-child(3) { top: 20px; }

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   5. УНИВЕРСАЛЬНЫЕ КАРТОЧКИ (items-grid.css)
   ============================================ */
.items-section {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.item-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.item-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    width: 100%;
}

.item-card:hover {
    /* transform: translateY(-5px); */ /*Подъем карточки вверх*/
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.item-card__image-wrapper {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2e, #0f111a);
    position: relative;
    flex-shrink: 0;
}

.item-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover .item-card__image {
    transform: scale(1.05);
}

.item-card__image-wrapper--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-card__placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.item-card__date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 0.4rem 0.75rem;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.item-card__date-badge--vacancy {
    border-color: rgba(52, 211, 153, 0.3);
}

.item-card__day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-light);
}

.item-card__day--vacancy {
    color: #34d399;
}

.item-card__month {
    display: block;
    font-size: 0.65rem;
    color: var(--text-gray);
}

.item-card__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-white);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.item-card__description {
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    font-size: 0.85rem;
}

.item-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.item-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.item-card__salary {
    font-size: 1.25rem;
    font-weight: 700;
    color: #34d399;
    white-space: nowrap;
}

.item-card__btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.85rem;
    white-space: nowrap;
}

.item-card:hover .item-card__btn {
    background: var(--primary);
    color: #0b1120;
}

/* ============================================
   6. ДЕТАЛЬНЫЕ СТРАНИЦЫ (detail.css)
   ============================================ */
.detail-section {
    padding: 4rem 0;
    background: var(--bg-dark);
    min-height: 100vh;
}

.detail {
    max-width: 1200px;
    margin: 0 auto;
}

.detail__back {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-dim);
}

.detail__gallery {
    background: linear-gradient(135deg, #1a1f2e, #0f111a);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail__image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 1rem;
}

.detail__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail__image-wrapper--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail__placeholder-icon {
    font-size: 6rem;
    opacity: 0.5;
}

.detail__info {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail__badge {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.detail__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.detail__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.detail__description h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.detail__description-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.detail__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail__btn {
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    background: var(--primary);
    color: #0b1120;
}

.detail__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* ============================================
   7. СТРАНИЦА ВАКАНСИЙ (benefits.css)
   ============================================ */
.page-hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #34d399;
}

.hero-stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.benefits-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-dim);
}

.benefits__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-dim);
}

.benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   8. О КОМПАНИИ (about.css)
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
}

.about-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.licenses-list {
    list-style: none;
    padding-left: 0;
}

.licenses-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.licenses-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.contact-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-dim);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 32px;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-white);
    font-size: 0.9rem;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0.25rem 0;
    font-size: 0.9rem;
    word-break: break-word;
}

.contact-item a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.map-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-dim);
}

.map-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.map-container {
    width: 100%;
}

.yandex-map {
    width: 100%;
    height: 350px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-dim);
}

.map-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
}

.map-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-info p:last-child {
    margin-bottom: 0;
}

.requisites {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
}

.requisites-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.requisite-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.requisite-item:last-child {
    border-bottom: none;
}

.requisite-label {
    font-weight: 600;
    color: var(--primary-light);
    min-width: 160px;
    font-size: 0.9rem;
}

.requisite-value {
    color: var(--text-gray);
    font-size: 0.9rem;
    word-break: break-word;
    flex: 1;
}

/* ============================================
   9. ГЛАВНАЯ СТРАНИЦА (home.css)
   ============================================ */
.hero {
    background: linear-gradient(135deg, #0b1120 0%, #111827 100%);
    padding: 4rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-dim);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero__badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-light);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    letter-spacing: 0.5px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero__accent {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 90%;
}

.hero__stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero__products {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.products__title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--primary-light);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid transparent;
}

.product-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-card__icon img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.product-card__name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.product-card__types {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-dim);
}

.client-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.client-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.client-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   10. АДАПТИВНОСТЬ (responsive.css)
   ============================================ */
@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .detail__grid {
        gap: 2rem;
    }

    .detail__image-wrapper {
        height: 350px;
    }
}

@media (max-width: 950px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        max-width: 100%;
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        order: 2;
    }

    .about-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-brand p {
        font-size: 1.2rem;
    }

    .logo-placeholder {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        margin: 0;
        padding: 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-dim);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: none;
        border-radius: 0.5rem;
    }

    .nav-link:hover {
        background: rgba(245, 158, 11, 0.1);
        border-bottom: none;
        transform: translateX(5px);
    }

    .nav-menu.active .nav-link {
        animation: slideIn 0.3s ease forwards;
        opacity: 0;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.2s; }

    .hero {
        padding: 2rem 0;
    }

    .hero__stats {
        justify-content: space-between;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .products__grid {
        grid-template-columns: 1fr;
    }

    .items-section {
        padding: 2rem 0;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .item-card__image-wrapper {
        height: 180px;
    }

    .item-card__content {
        padding: 1rem;
    }

    .item-card__title {
        font-size: 1rem;
    }

    .item-card__description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .item-card__price,
    .item-card__salary {
        font-size: 1.1rem;
    }

    .item-card__btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .item-card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .detail-section {
        padding: 2rem 0;
    }

    .detail__grid {
        grid-template-columns: 1fr;
        gap: 0;
        border-radius: 1rem;
    }

    .detail__gallery {
        padding: 1.5rem;
    }

    .detail__image-wrapper {
        height: 250px;
    }

    .detail__info {
        padding: 1.5rem;
    }

    .detail__title {
        font-size: 1.5rem;
    }

    .detail__price {
        font-size: 1.75rem;
    }

    .detail__description h3 {
        font-size: 1.1rem;
    }

    .detail__description-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .detail__actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail__btn {
        text-align: center;
        padding: 0.7rem 1.5rem;
        width: 100%;
    }

    .page-header__title {
        font-size: 2rem;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .social-links {
        gap: 1.2rem;
    }

    .social-links li a {
        width: 44px;
        height: 44px;
    }

    footer img {
        width: 24px;
        height: 24px;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 0.75rem;
    }

    .yandex-map {
        height: 250px;
    }

    .requisite-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .requisite-label {
        min-width: auto;
    }

    .page-hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .page-header__title {
        font-size: 1.5rem;
    }

    .page-header__subtitle {
        font-size: 1rem;
    }

    .items-grid {
        gap: 1rem;
    }

    .item-card__image-wrapper {
        height: 160px;
    }

    .item-card__content {
        padding: 0.875rem;
    }

    .item-card__title {
        font-size: 0.95rem;
    }

    .item-card__description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .item-card__price,
    .item-card__salary {
        font-size: 1rem;
    }

    .item-card__btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .item-card__footer {
        flex-wrap: wrap;
    }

    .detail__gallery {
        padding: 1rem;
    }

    .detail__image-wrapper {
        height: 200px;
    }

    .detail__placeholder-icon {
        font-size: 4rem;
    }

    .detail__info {
        padding: 1.25rem;
    }

    .detail__title {
        font-size: 1.25rem;
    }

    .detail__price {
        font-size: 1.5rem;
    }

    .detail__description-text {
        font-size: 0.85rem;
    }

    .detail__btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }

    .back-link {
        font-size: 0.9rem;
    }

    .contact-card,
    .map-card,
    .requisites {
        padding: 1rem;
    }

    .yandex-map {
        height: 200px;
    }

    .map-info {
        padding: 0.75rem;
    }

    .map-info p {
        font-size: 0.7rem;
    }
}