/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    --primary: #1F3D36;
    --primary-light: #2a5348;
    --primary-79: rgba(31, 61, 54, 0.79);
    --accent: #EAE4D3;
    --accent-dark: #f9f6ee;
    --white: #ffffff;
    --gray-bg: #f9f8f8;
    --gray-text: #555555;
    --dark-text: #222222;
    --border: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ========== ШРИФТЫ ========== */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype'),
         url('fonts/Montserrat-SemiBold.ttf') format('truetype'),
         url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-Light.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: "RobotoS";
    src: url("fonts/Roboto-SemiBold.ttf") format('truetype');
    font-display: swap;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Подсветка полей при валидации */
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
}

input[type="tel"].valid,
input[type="email"].valid {
    border-color: #28a745;
}

input[type="tel"].invalid,
input[type="email"].invalid {
    border-color: #dc3545;
}

/* ========== HEADER ========== */
.header {
    background: var(--primary);
    margin-bottom: 20px;
}

.phone-dropdown {
    position: relative;
    display: inline-block;
}

.phone-main {
    font-family: 'Montserrat';
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.phone-main:hover {
    color: var(--primary);
    background: white;
    border-radius: 12px;
}

.phone-dropdown-content {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.phone-dropdown:hover .phone-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark-text);
    font-family: 'Roboto';
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.phone-dropdown-content a:last-child {
    border-bottom: none;
}

.phone-dropdown-content a:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 20px;
}

.logo {
    position: relative;
}

.logo h1 {
    font-family: "Montserrat";
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 1px;
    line-height: 39px;
}

.logo p {
    font-family: "Montserrat";
    color: var(--white);
    font-size: 11px;
    line-height: 13px;
}

.logo img {
    max-width: 300px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: "Montserrat";
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--dark-text);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    color: var(--accent);
}

.icon-btn:hover {
    transform: scale(1.1);
}

.login-btn {
    font-family: 'Montserrat';
    background: var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    cursor: pointer;
}

.login-btn:hover {
    background: var(--primary-light);
    color: var(--white);
}

.out-of-stock {
    background: #ffe0e0;
    color: #dc3545;
}

/* ========== ПРОФИЛЬ МЕНЮ ========== */
#authButtons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    background: var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-family: 'Montserrat';
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.profile-trigger:hover {
    background: var(--primary-light);
    color: var(--white);
}

.profile-trigger .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.profile-menu:hover .profile-trigger .arrow {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-menu:hover .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-menu .dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark-text);
    font-family: 'Roboto';
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.profile-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-menu .dropdown-item:hover {
    background: #f5f5f5;
}

.profile-dropdown-menu .logout-item {
    color: #dc3545;
}

.profile-dropdown-menu .logout-item:hover {
    background: #fff5f5;
}

/* ========== БУРГЕР-МЕНЮ ========== */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 22px;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 20px;
    z-index: 999;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat';
    padding: 12px;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: "Montserrat";
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col p,
.footer-col a {
    font-family: "Roboto";
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* ========== СЛАЙДЕР ========== */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px 0;
}

.slider {
    display: flex;
    transition: transform 0.9s ease;
}

.slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
}

.slide-content h3 {
    font-family: "Montserrat";
    font-size: 48px;
    margin-bottom: 20px;
}

.slide-content p {
    font-family: "Roboto";
    font-size: 20px;
    margin-bottom: 30px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 2;
}

.prev { left: 20px; }
.next { right: 20px; }

/* ========== О КОМПАНИИ ========== */
.hero-block {
    display: flex;
    gap: 100px;
    align-items: center;
    margin: 60px 0;
}

.hero-img {
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-img img {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
}

/* Адаптив для планшетов (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-block {
        gap: 50px;
    }
    
    .hero-img img {
        max-width: 250px;
    }
}

@media (max-width: 991px) {
    .hero-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-img {
        margin: 0 auto;
    }
    
    .hero-img img {
        max-width: 220px;
    }
}

/* Для мобильных (до 768px) - скрываем фото */
@media (max-width: 768px) {
    .hero-img {
        display: none;
    }
    
    .hero-block {
        gap: 20px;
        margin: 30px 0;
    }
}
/* ========== ОТЗЫВЫ ========== */
.reviews-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
}

.reviews-slider::-webkit-scrollbar {
    height: 8px;
}

.reviews-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.review-card {
    min-width: 320px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========== ДЕКОРАТИВНЫЕ ПОЛЫ ========== */
.floors-intro {
    margin: 80px 0;
}

.floors-intro__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.floors-intro__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.floors-intro__card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.floors-intro__card--image {
    background: transparent;
}

.floors-intro__image {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
}

.floors-intro__card--text {
    background: var(--gray-bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 450px;
    height: 100%;
}

.floors-intro__big-text {
    font-family: 'Montserrat';
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.floors-intro__stages {
    margin-bottom: 35px;
}

.work-stage {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.work-stage:last-child {
    border-bottom: none;
}

.work-stage__text {
    font-family: 'Roboto';
    font-size: 18px;
    color: var(--dark-text);
    position: relative;
    padding-left: 25px;
    font-weight: 400;
}

.work-stage__text::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.floors-intro__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.btn-catalog {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-catalog:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-consult {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-consult:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========== ШАГИ ========== */
.step-block {
    margin: 60px 0px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-card h3 {
    font-family: 'Montserrat';
    font-size: 20px;
}

.step-card p {
    font-family: 'Roboto';
    font-size: 18px;
    line-height: 28px;
}

.step-number {
    font-family: 'Montserrat';
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-contact {
    font-family: 'Montserrat';
    background: var(--accent);
    color: var(--primary);
}

.btn-contact:hover {
    background: var(--accent);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    display: none;
}

.success-message {
    color: #28a745;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    display: none;
}

/* ========== ФИЛЬТРЫ ========== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.filter-btn {
    padding: 12px 28px;
    background: #f5f5f5;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Montserrat';
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

/* ========== СТРАНИЦА ПОЛОВ ========== */
.flooring-container {
    margin: 40px 0;
}

.flooring-item {
    display: none;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.flooring-item.active {
    display: block;
}

.flooring-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
}

.flooring-img {
    flex: 1;
    min-width: 280px;
    overflow: hidden;
}

.flooring-img img {
    border-radius: 20px;
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s;
}

.flooring-img img:hover {
    transform: scale(1.02);
}

.flooring-info {
    flex: 1;
    min-width: 280px;
}

.flooring-info h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 28px;
}

.flooring-info p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.advantages-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.advantages-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.advantages-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

.flooring-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.price-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

/* ========== ПРОЦЕСС ЗАЛИВКИ ========== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.process-step {
    background: var(--gray-bg);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    padding-left: 60px;
}

.step-num {
    position: absolute;
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.process-step h3 {
    font-family: "Montserrat";
    font-size: 18px;
    margin: 10px 0;
}

.process-step p {
    font-family: "Roboto";
    font-size: 17px;
    color: #6c757d;
}

/* ========== FAQ ========== */
.faq-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.faq-question {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 15px;
}

/* ========== КОНТАКТЫ ========== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.contact-icon {
    font-size: 32px;
    min-width: 50px;
}

.contact-details h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--primary);
}

.contact-details a {
    text-decoration: none;
    color: var(--dark-text);
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.contact-form-section {
    flex: 1;
    min-width: 320px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
}

.contact-form-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* ========== АДМИН ПАНЕЛЬ ========== */
.inline-form-container {
    display: none;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--gray-bg);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.inline-form-container.active {
    display: block;
}

.inline-form-container h3 {
    font-family: 'Montserrat';
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.save-btn, .cancel-btn {
    padding: 6px 20px;
    font-size: 13px;
    border-radius: 25px;
}

.admin-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
    background: #f5f5f5;
}

.admin-tab:hover {
    background: #e0e0e0;
}

.admin-tab.active {
    background: var(--primary);
    color: white;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-info {
    background: #eef2f7;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-new { background: #fff3e0; color: #ff9800; }
.status-processing { background: #e3f2fd; color: #2196f3; }
.status-done { background: #e8f5e9; color: #4caf50; }

.status-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-table th,
.content-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.content-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.content-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    margin-top: 20px;
}

.add-btn {
    background: #28a745;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
}

.add-btn:hover {
    background: #218838;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: var(--accent);
    color: #333;
}

/* ========== КАРТОЧКИ ТОВАРОВ (КАТАЛОГ) ========== */
.catalog-header {
    text-align: center;
    margin-bottom: 48px;
}


.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.image-wrapper {
    position: relative;
    background: #eef2f5;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16 / 12;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Montserrat';
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    line-height: 1.3;
    min-height: 40px;
}

.product-description {
    font-size: 14px;
    color: var(--dark-text);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stock-status {
    background-color: #aefabf;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 40px;
    width: fit-content;
    margin-bottom: 8px;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-text);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.btn-detail {
    font-family: 'Montserrat';
    flex: 1;
    background: #f0f3f8;
    border: none;
    padding: 8px 0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    color: #2c5a7a;
}

.btn-order {
    font-family: 'Montserrat';
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-detail:hover {
    background: #e2e8f0;
}

.btn-order:hover {
    background: var(--primary-light);
}
/* ========== ЗАГОЛОВКИ ========== */

/* Базовые стили для всех заголовков */
h1, h2, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

/* Стили для section-title */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Стили для h2 (основные заголовки) */
h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}


/* Стили для h4 */
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}


/* Адаптивные размеры заголовков */
@media (max-width: 768px) {
    .section-title, h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 20px;
    }
    h4 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .section-title, h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-title, h2 {
        font-size: 20px;
    }
}
/* ========== МОДАЛЬНОЕ ОКНО ДЛЯ ТОВАРА ========== */
.modal-img {
    flex: 1.2;
    min-width: 200px;
    border-radius: 24px;
    overflow: hidden;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f7840;
}

.modal-deposit {
    font-size: 1rem;
    color: #6c7e8c;
}

.modal-discount {
    background: #ffc107;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: inline-block;
    width: fit-content;
}

.specs {
    background: #f8fafc;
    padding: 16px;
    border-radius: 20px;
    margin: 8px 0;
}

.specs p {
    margin: 8px 0;
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
}

.specs strong {
    min-width: 110px;
    color: #2c3e50;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.modal-order-btn,
.modal-more-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 48px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.modal-order-btn {
    background: var(--primary);
    color: white;
}

.modal-order-btn:hover {
    background: #ffb347;
    color: #1f2e3a;
}

.modal-more-btn {
    background: #f1f5f9;
    color: #2c5a7a;
}

.modal-more-btn:hover {
    background: #e2e8f0;
}

/* ========== КАРТОЧКИ ОТЗЫВОВ В АДМИНКЕ ========== */
.admin-review-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.reviewer-name {
    font-size: 18px;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    margin-top: 5px;
}

.star-filled {
    color: #e8c468;
    font-size: 16px;
}

.star-empty {
    color: #ddd;
    font-size: 16px;
}

.review-text {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 10px 0;
}

.admin-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.review-status.approved {
    background: #e8f5e9;
    color: #4caf50;
}

.review-status.pending {
    background: #fff3e0;
    color: #ff9800;
}

.approve-review-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.empty-reviews {
    text-align: center;
    padding: 50px;
    color: #999;
    background: white;
    border-radius: 15px;
}

.header-actions-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========== КНОПКИ РЕДАКТИРОВАНИЯ/УДАЛЕНИЯ ========== */
.edit-btn, .delete-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 3px;
}

.edit-btn {
    background: #ffc107;
    color: #333;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.save-btn {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

/* ========== ПОЛОСА ПРОКРУТКИ ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========== ОБЩИЙ КАЛЬКУЛЯТОР ========== */
.calculator-main {
    background: var(--primary);
    border-radius: 30px;
    padding: 40px;
    margin: 60px 0;
    box-shadow: var(--shadow);
    margin-left: auto;
    margin-right: auto;
}

.calculator-form {
    max-width: 100%;
    margin: 0 auto;
}

.calc-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calc-field {
    flex: 1;
    min-width: 160px;
}

.calc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Montserrat';
    font-size: 13px;
    color: var(--white);
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Roboto';
    transition: all 0.3s;
}

.calc-input:focus,
.calc-select:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-result-block {
    background: var(--white);
    border-radius: 16px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.calc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Montserrat';
}

.calc-total-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.calc-note {
    font-size: 16px;
    font-family: "Roboto";
    color: var(--primary);
    margin-top: 12px;
}

.calc-buttons-main {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.calc-buttons-main .btn-primary {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-buttons-main .btn-primary:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
}

.calc-buttons-main .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent);
    padding: 10px 26px;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-buttons-main .btn-outline:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========== ЛАЙТБОКС ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
}

.close-lightbox:hover {
    color: #e8c468;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #e8c468;
    color: black;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========== СТРАНИЦА ПОРТФОЛИО ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-img img:hover {
    transform: scale(1.05);
}

.quick-view-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-view-icon:hover {
    background: var(--primary);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-family: "Montserrat";
    color: var(--primary);
    margin-bottom: 10px;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--gray-text);
}

.project-details span {
    font-family: "Montserrat";
    font-weight: 600;
    background: var(--gray-bg);
    padding: 5px 12px;
    border-radius: 20px;
}

.project-category {
    font-family: "Montserrat";
    font-weight: 600;
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* ========== СТРАНИЦА ДЕТАЛЕЙ ТЕХНИКИ ========== */
.detail-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.equipment-detail {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.equipment-content {
    display: flex;
    gap: 40px;
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.equipment-gallery {
    flex: 1;
    min-width: 0;
}

.gallery-main {
    position: relative;
    background: var(--gray-bg);
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 5px;
}

.thumb-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.equipment-info {
    flex: 1;
    min-width: 0;
}

.equipment-info h1 {
    font-family: 'Montserrat';
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.price-block {
    background: var(--accent-dark);
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
}

.price-block .price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.price-block .price small {
    font-size: 16px;
    font-weight: 400;
}

.price-block .deposit {
    font-size: 18px;
    color: var(--gray-text);
    margin-top: 10px;
}

.description {
    line-height: 1.8;
    margin: 30px 0;
    color: var(--gray-text);
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-order-large {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat';
    flex: 1;
}

.btn-order-large:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-back {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Montserrat';
    text-align: center;
    flex: 1;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
}

.discount-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Montserrat';
}

.specs-fullwidth {
    padding: 40px;
    background: var(--gray-bg);
}

.specs-fullwidth h3 {
    font-family: 'Montserrat';
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary);
}

.specs-grid-fullwidth {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: white;
    padding: 30px;
    border-radius: 20px;
}

.specs-grid-fullwidth .spec-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.specs-grid-fullwidth .spec-item:last-child {
    border-bottom: none;
}

.specs-grid-fullwidth .spec-label {
    font-weight: 700;
    width: 200px;
    color: var(--primary);
    font-family: 'Montserrat';
    flex-shrink: 0;
}

.specs-grid-fullwidth .spec-value {
    flex: 1;
    color: var(--dark-text);
    font-family: 'Roboto';
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========== СТРАНИЦА ПРОФИЛЯ ========== */
.request-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s;
}

.request-header {
    font-family: 'Montserrat';
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    transition: background 0.3s;
}

.request-header:hover {
    background: #f9f9f9;
}

.request-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.request-title strong {
    font-size: 16px;
    color: var(--primary);
}

.request-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.request-toggle {
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s;
}

.request-item.open .request-toggle {
    transform: rotate(180deg);
}

.request-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.request-item.open .request-details {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}

.request-details-inner {
    padding: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.detail-label {
    font-family: 'RobotoS';
    width: 130px;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.detail-value {
    font-family: 'Roboto';
    flex: 1;
    color: #555;
    font-size: 14px;
    word-break: break-word;
}

.review-action-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.leave-review-btn-from-order {
    background: var(--accent);
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.leave-review-btn-from-order:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

.review-done {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
}

.delete-order-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.delete-order-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.profile-layout {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    min-height: 500px;
}

.profile-sidebar {
    flex: 0 0 280px;
    background: var(--gray-bg);
    border-radius: 20px;
    padding: 20px 0;
    height: fit-content;
}

.profile-avatar {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.profile-avatar h3 {
    font-family: 'Montserrat';
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-avatar p {
    font-size: 13px;
    color: var(--gray-text);
}

.profile-nav {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.profile-nav li {
    margin: 5px 15px;
}

.profile-nav .profile-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat';
    font-size: 15px;
    color: var(--dark-text);
    background: transparent;
}

.profile-nav .profile-tab span:first-child {
    font-size: 20px;
}

.profile-nav .profile-tab:hover {
    background: rgba(31, 61, 54, 0.1);
}

.profile-nav .profile-tab.active {
    background: var(--primary);
    color: white;
}

.profile-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-family: 'Montserrat';
    width: 120px;
    font-weight: 600;
    color: var(--primary);
}

.info-value {
    font-family: 'Roboto';
    flex: 1;
    color: var(--dark-text);
}

.edit-btn, .password-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    margin-right: 10px;
    transition: all 0.3s;
}

.edit-btn:hover, .password-btn:hover {
    background: var(--primary-light);
}

.delete-account-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.delete-account-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active {
    color: #e8c468;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #e8c468;
    background: #fef5e6;
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.photo-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.photo-preview-item .remove-photo:hover {
    background: #ff4444;
}

.selected-order-info {
    background: #eef2f7;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #e8c468;
}

.auth-required {
    text-align: center;
    padding: 60px 40px;
    background: var(--gray-bg);
    border-radius: 30px;
    margin: 40px 0;
}

.auth-required-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.auth-required h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Montserrat';
}

.auth-required p {
    color: var(--gray-text);
    margin-bottom: 30px;
    font-size: 18px;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-buttons .btn {
    min-width: 200px;
}

/* ========== ОБЩИЕ АДАПТИВНЫЕ СТИЛИ ========== */
@media (max-width: 992px) {
    .floors-intro__grid {
        grid-template-columns: 1fr;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-section {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .equipment-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .specs-grid-fullwidth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .floors-intro__image {
        min-height: 300px;
    }
    .floors-intro__big-text {
        font-size: 24px;
    }
    .step-card h3 {
        font-size: 18px;
    }
    .step-card p {
        font-size: 14px;
    }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .review-card {
        min-width: 280px;
        padding: 15px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-img {
        height: 200px;
    }
    .profile-layout {
        flex-direction: column;
    }
    .profile-sidebar {
        flex: auto;
    }
    .profile-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .profile-nav li {
        margin: 5px;
    }
    .profile-nav .profile-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .slide {
        height: 300px;
    }
    .slide-content h3 {
        font-size: 20px;
    }
    .slide-content p {
        font-size: 12px;
    }
    .btn {
        padding: 8px 20px;
        font-size: 12px;
    }
    .section-title {
        font-size: 22px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .calc-row {
        flex-direction: column;
    }
    .calc-result-header {
        flex-direction: column;
        text-align: center;
    }
    .calc-buttons-main {
        flex-direction: column;
    }
    .calc-buttons-main button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 250px;
    }
    .slide-content h3{
        font-size: 18px;
    }
    .product-title {
        font-size: 14px;
    }
    .price {
        font-size: 18px;
    }
    .card-actions {
        flex-direction: column;
    }
    .filter-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    .equipment-info h1 {
        font-size: 24px;
    }
    .price-block .price {
        font-size: 28px;
    }
    .thumb-item {
        width: 60px;
        height: 60px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-order-large,
    .btn-back {
        width: 100%;
    }
}
/* ========== АДАПТИВ ШАПКИ ========== */

/* Обычное состояние (большие экраны) - бургер скрыт, навигация видна */
.burger-menu {
    display: none;
}

/* Планшеты и мобильные (менее 1040px) - включаем бургер, скрываем навигацию */
@media (max-width: 1040px) {
    .header .container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        flex-wrap: nowrap;
    }
    
    /* Скрываем обычную навигацию */
    .nav-links {
        display: none !important;
    }
    
    /* Показываем бургер-меню СЛЕВА */
    .burger-menu {
        display: flex !important;
        order: 0;
    }
    
    /* Логотип ПО ЦЕНТРУ */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 1;
        margin: 0;
    }
    
    .logo img {
        max-width: 220px;
        height: auto;
    }
    
    /* Кнопки СПРАВА */
    .header-actions {
        order: 2;
        margin-left: auto;
    }
    
    /* Скрываем кнопки слайдера на мобильных */
    .slider-btn {
        display: none !important;
    }
}

/* Для очень маленьких экранов - уменьшаем элементы */
@media (max-width: 768px) {
    .logo img {
        max-width: 180px;
    }
    
    .phone-main {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    .login-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    .profile-trigger {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-width: 160px;
    }
    
    .phone-main {
        display: none;
    }
    
    .login-btn {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }
    
    .profile-trigger {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }
    
    .burger-menu span {
        width: 20px;
        height: 2px;
    }
    
    .burger-menu {
        gap: 3px;
    }
    
    .header-actions {
        gap: 5px;
    }
}

@media (max-width: 380px) {
    .logo img {
        max-width: 140px;
    }
    
    .phone-main {
        padding: 3px 4px !important;
        font-size: 9px !important;
    }
    
    .login-btn {
        padding: 3px 5px !important;
        font-size: 9px !important;
    }
    
    .profile-trigger {
        padding: 3px 4px !important;
        font-size: 9px !important;
    }
    
    .burger-menu span {
        width: 18px;
    }
    
    .header-actions {
        gap: 3px;
    }
}

/* ========== АДАПТИВ ДЛЯ СТРАНИЦЫ ПОЛОВ (320px) ========== */

@media (max-width: 380px) {
    /* Карточки полов */
    .flooring-content {
        padding: 15px !important;
        gap: 15px !important;
    }
    
    .flooring-img img {
        height: 180px !important;
        border-radius: 12px !important;
    }
    
    .flooring-info h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .flooring-info p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    .advantages-list li {
        font-size: 11px !important;
        padding: 4px 0 4px 20px !important;
    }
    
    .advantages-list li::before {
        font-size: 12px !important;
    }
    
    .flooring-price {
        font-size: 18px !important;
        margin: 10px 0 !important;
    }
    
    .price-note {
        font-size: 9px !important;
        margin-bottom: 10px !important;
    }
    
    /* Кнопки в карточках полов */
    .flooring-info .btn-primary {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    /* Фильтры */
    .filter-tabs {
        gap: 6px !important;
        margin: 20px 0 !important;
    }
    
    .filter-btn {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
    
    /* Калькулятор на странице полов */
    .calculator-main {
        padding: 15px !important;
        margin: 30px 0 !important;
    }
    
    .calc-field label {
        font-size: 11px !important;
    }
    
    .calc-input, .calc-select {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    .calc-result-header {
        font-size: 16px !important;
    }
    
    .calc-total-price {
        font-size: 20px !important;
    }
    
    .calc-note {
        font-size: 10px !important;
    }
    
    .calc-buttons-main .btn-primary,
    .calc-buttons-main .btn-outline {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    /* Процесс заливки */
    .process-steps {
        gap: 15px !important;
        margin: 25px 0 !important;
    }
    
    .process-step {
        padding: 12px !important;
        padding-left: 45px !important;
    }
    
    .step-num {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        left: 10px !important;
        top: 12px !important;
    }
    
    .process-step h3 {
        font-size: 14px !important;
        margin: 5px 0 !important;
    }
    
    .process-step p {
        font-size: 11px !important;
    }
    
    /* FAQ */
    .faq-section {
        gap: 20px !important;
        margin: 25px 0 !important;
    }
    
    .faq-question {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }
    
    .faq-question::after {
        font-size: 16px !important;
    }
    
    .faq-answer {
        font-size: 11px !important;
    }
    
    /* Форма в FAQ */
    .faq-section form {
        padding: 15px !important;
    }
    
    .faq-section .form-group input,
    .faq-section .form-group textarea {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .faq-section .checkbox label {
        font-size: 10px !important;
    }
    
    .faq-section .btn-primary {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}
/* ========== АДАПТИВ ДЛЯ СТРАНИЦЫ ДЕТАЛЕЙ ТЕХНИКИ ========== */

/* Планшеты (577px - 768px) */
@media (max-width: 768px) {
    .detail-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .equipment-detail {
        border-radius: 20px;
    }
    
    .equipment-content {
        padding: 20px !important;
        gap: 20px !important;
    }
    
    .gallery-main {
        min-height: 280px !important;
    }
    
    .gallery-main img {
        max-height: 280px !important;
    }
    
    .thumb-item {
        width: 60px !important;
        height: 60px !important;
    }
    
    .equipment-info h1 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    
    .price-block {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
    
    .price-block .price {
        font-size: 24px !important;
    }
    
    .price-block .deposit {
        font-size: 14px !important;
    }
    
    .description {
        font-size: 14px !important;
        margin: 20px 0 !important;
        line-height: 1.5 !important;
    }
    
    .action-buttons {
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .btn-order-large,
    .btn-back {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .specs-fullwidth {
        padding: 20px !important;
    }
    
    .specs-fullwidth h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .specs-grid-fullwidth {
        padding: 15px !important;
        gap: 10px !important;
    }
    
    .specs-grid-fullwidth .spec-item {
        padding: 8px 0 !important;
    }
    
    .specs-grid-fullwidth .spec-label {
        width: 120px !important;
        font-size: 13px !important;
    }
    
    .specs-grid-fullwidth .spec-value {
        font-size: 13px !important;
    }
}

/* Телефоны (426px - 576px) */
@media (max-width: 576px) {
    .detail-container {
        margin: 15px auto;
        padding: 0 12px;
    }
    
    .equipment-content {
        padding: 15px !important;
        gap: 15px !important;
    }
    
    .gallery-main {
        min-height: 220px !important;
    }
    
    .gallery-main img {
        max-height: 220px !important;
    }
    
    .gallery-thumbs {
        gap: 10px !important;
    }
    
    .thumb-item {
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
    }
    
    .equipment-info h1 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .discount-badge {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
    
    .price-block {
        padding: 12px !important;
        margin: 12px 0 !important;
    }
    
    .price-block .price {
        font-size: 20px !important;
    }
    
    .price-block .price small {
        font-size: 12px !important;
    }
    
    .price-block .deposit {
        font-size: 12px !important;
        margin-top: 5px !important;
    }
    
    .description {
        font-size: 13px !important;
        margin: 15px 0 !important;
    }
    
    .action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-order-large,
    .btn-back {
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
    
    .specs-fullwidth {
        padding: 15px !important;
    }
    
    .specs-fullwidth h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .specs-grid-fullwidth {
        padding: 12px !important;
    }
    
    .specs-grid-fullwidth .spec-item {
        flex-direction: column !important;
        padding: 8px 0 !important;
    }
    
    .specs-grid-fullwidth .spec-label {
        width: 100% !important;
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .specs-grid-fullwidth .spec-value {
        font-size: 12px !important;
    }
}

/* Маленькие телефоны (376px - 425px) */
@media (max-width: 425px) {
    .detail-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .equipment-content {
        padding: 12px !important;
        gap: 12px !important;
    }
    
    .gallery-main {
        min-height: 200px !important;
        border-radius: 12px !important;
    }
    
    .gallery-main img {
        max-height: 200px !important;
    }
    
    .thumb-item {
        width: 45px !important;
        height: 45px !important;
        border-radius: 6px !important;
    }
    
    .equipment-info h1 {
        font-size: 16px !important;
    }
    
    .price-block {
        padding: 10px !important;
    }
    
    .price-block .price {
        font-size: 18px !important;
    }
    
    .price-block .deposit {
        font-size: 11px !important;
    }
    
    .description {
        font-size: 12px !important;
    }
    
    .btn-order-large,
    .btn-back {
        padding: 8px !important;
        font-size: 12px !important;
    }
    
    .specs-fullwidth h3 {
        font-size: 16px !important;
    }
    
    .specs-grid-fullwidth .spec-label {
        font-size: 11px !important;
    }
    
    .specs-grid-fullwidth .spec-value {
        font-size: 11px !important;
    }
}

/* Очень маленькие телефоны (320px - 375px) */
@media (max-width: 375px) {
    .detail-container {
        margin: 8px auto;
        padding: 0 8px;
    }
    
    .equipment-content {
        padding: 10px !important;
        gap: 10px !important;
    }
    
    .gallery-main {
        min-height: 180px !important;
        border-radius: 10px !important;
    }
    
    .gallery-main img {
        max-height: 180px !important;
    }
    
    .thumb-item {
        width: 40px !important;
        height: 40px !important;
        border-radius: 5px !important;
    }
    
    .equipment-info h1 {
        font-size: 15px !important;
    }
    
    .price-block {
        padding: 8px !important;
    }
    
    .price-block .price {
        font-size: 16px !important;
    }
    
    .price-block .deposit {
        font-size: 10px !important;
    }
    
    .description {
        font-size: 11px !important;
        margin: 10px 0 !important;
    }
    
    .btn-order-large,
    .btn-back {
        padding: 6px !important;
        font-size: 11px !important;
    }
    
    .specs-fullwidth {
        padding: 12px !important;
    }
    
    .specs-fullwidth h3 {
        font-size: 15px !important;
    }
    
    .specs-grid-fullwidth {
        padding: 10px !important;
    }
    
    .specs-grid-fullwidth .spec-label {
        font-size: 10px !important;
    }
    
    .specs-grid-fullwidth .spec-value {
        font-size: 10px !important;
    }
}

/* Для самых маленьких (320px) */
@media (max-width: 320px) {
    .gallery-main {
        min-height: 160px !important;
    }
    
    .gallery-main img {
        max-height: 160px !important;
    }
    
    .thumb-item {
        width: 35px !important;
        height: 35px !important;
    }
    
    .equipment-info h1 {
        font-size: 14px !important;
    }
    
    .price-block .price {
        font-size: 15px !important;
    }
    
    .description {
        font-size: 10px !important;
    }
    
    .btn-order-large,
    .btn-back {
        font-size: 10px !important;
    }
    
    .specs-fullwidth h3 {
        font-size: 14px !important;
    }
    
    .specs-grid-fullwidth .spec-label {
        font-size: 9px !important;
    }
    
    .specs-grid-fullwidth .spec-value {
        font-size: 9px !important;
    }
}
/* ========== ПРОСТЫЕ КАРТОЧКИ ПРОЕКТОВ ========== */

.projects-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.project-card-simple {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card-simple img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-simple:hover img {
    transform: scale(1.05);
}

.project-card-simple-info {
    padding: 18px;
    text-align: center;
}

.project-card-simple-info h4 {
    font-family: 'Montserrat';
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.project-card-simple-info p {
    font-family: 'Roboto';
    font-size: 14px;
    color: var(--gray-text);
    margin: 0;
}
/* Кнопка "Все проекты" по центру */
.projects-btn {
    text-align: center;
    margin-top: 40px;
    
}

.project-btn {
    font-family: 'Montserrat';
    background-color: var(--primary) ;
    color: var(--white);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}
.project-btn:hover {
     transform: translateY(-2px);
    background-color: var(--primary-light) ;
    color: var(--white);
    display: inline-block;
}
/* Адаптив для карточек */
@media (max-width: 992px) {
    .projects-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .projects-grid-simple {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card-simple img {
        height: 200px;
    }
    
    .project-card-simple-info {
        padding: 15px;
    }
    
    .project-card-simple-info h4 {
        font-size: 16px;
    }
    
    .project-card-simple-info p {
        font-size: 13px;
    }
}