/* ===== ГЛОБАЛЬНЫЙ СТИЛЬ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #faf8f5;
    color: #2c2b28;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ТЕМНАЯ ТЕМА ===== */
body.dark-theme {
    background: #1c1b1a;
    color: #e8e3dd;
}

body.dark-theme .card,
body.dark-theme .product-card,
body.dark-theme .admin-panel,
body.dark-theme .login-panel,
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme .search-box,
body.dark-theme .floating-calculator {
    background: #2a2826;
    color: #e8e3dd;
    border-color: #4a4540;
}

body.dark-theme .navbar {
    background: rgba(28, 27, 26, 0.95);
}

body.dark-theme .product-card {
    background: #2a2826;
}

body.dark-theme .admin-overlay,
body.dark-theme .login-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-theme .login-panel {
    background: #2a2826;
}

body.dark-theme .login-field input {
    background: #1c1b1a;
    border-color: #4a4540;
    color: #e8e3dd;
}

body.dark-theme .calculator-result {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .calculator-history ul li {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== МОДАЛЬНОЕ ОКНО ВХОДА ===== */
.login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-overlay.open {
    display: flex;
}

.login-panel {
    background: #faf8f5;
    border-radius: 32px;
    max-width: 420px;
    width: 100%;
    padding: 40px 36px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    animation: fade 0.4s ease;
}

.login-header {
    margin-bottom: 28px;
}

.login-header .logo span {
    color: #b5724a;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #5a554e;
}

body.dark-theme .login-field label {
    color: #b0aaa2;
}

.login-field label i {
    color: #b5724a;
    margin-right: 8px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d6d0c8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: #2c2b28;
    transition: 0.2s;
}

.login-field input:focus {
    outline: none;
    border-color: #b5724a;
    box-shadow: 0 0 0 3px rgba(181, 114, 74, 0.15);
}

.login-error {
    color: #b13e3e;
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 24px;
    text-align: center;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.3s;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: #b5724a;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer;
}

.nav-links a.active,
.nav-links a:hover {
    border-bottom-color: #b5724a;
    color: #b5724a;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-actions button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-actions button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 30px;
    padding: 4px 16px;
    transition: background 0.3s;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 8px 0;
    outline: none;
    font-size: 14px;
    width: 140px;
    color: inherit;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 4px 8px;
}

/* ===== СТРАНИЦЫ (SPA) ===== */
.page {
    display: none;
    padding: 48px 0 64px;
    animation: fade 0.35s ease;
}

.page.active {
    display: block;
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ГЛАВНАЯ ===== */
.hero {
    text-align: center;
    padding: 40px 0 56px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 22px;
    color: #b5724a;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 32px;
    color: #5a554e;
}

body.dark-theme .hero p {
    color: #b0aaa2;
}

.btn-primary {
    display: inline-block;
    background: #b5724a;
    color: #fff;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.25s;
    font-size: 16px;
}

.btn-primary:hover {
    background: #9a5f3d;
    transform: scale(1.02);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #b5724a;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid #b5724a;
    cursor: pointer;
    transition: 0.25s;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #b5724a;
    color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

body.dark-theme .feature-card {
    background: rgba(255, 255, 255, 0.04);
}

.feature-card i {
    font-size: 36px;
    color: #b5724a;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 14px;
    color: #5a554e;
}

body.dark-theme .feature-card p {
    color: #b0aaa2;
}

/* ===== КАТАЛОГ ===== */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #d6d0c8;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
}

.filter-btn.active {
    background: #b5724a;
    color: #fff;
    border-color: #b5724a;
}

.filter-btn:hover:not(.active) {
    border-color: #b5724a;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

body.dark-theme .product-card {
    background: #2a2826;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 16px 20px 20px;
}

.product-info h3 {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}

.product-info .category-tag {
    font-size: 12px;
    font-weight: 500;
    color: #b5724a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info .price {
    font-weight: 700;
    font-size: 20px;
    margin-top: 8px;
}

.product-card .admin-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: 0.2s;
}

.product-card:hover .admin-actions {
    opacity: 1;
}

.product-card .admin-actions button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.product-card .admin-actions button:hover {
    background: #b5724a;
}

/* ============================================================
   СТРАНИЦА "О НАС" — НОВОЕ ОФОРМЛЕНИЕ
   ============================================================ */

.about-header {
    text-align: center;
    padding: 20px 0 40px;
}

.about-header h2 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
}

.about-header h2 span {
    color: #b5724a;
}

.about-tagline {
    font-size: 20px;
    color: #b5724a;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 8px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-text > p {
    font-size: 17px;
    color: #5a554e;
    line-height: 1.8;
    margin-bottom: 32px;
}

body.dark-theme .about-text > p {
    color: #b0aaa2;
}

.about-philosophy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.philosophy-item i {
    font-size: 28px;
    color: #b5724a;
    min-width: 44px;
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.philosophy-icon {
    font-size: 28px;
    color: #b5724a;
    min-width: 44px;
    text-align: center;
    margin-top: 2px;
}

.philosophy-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.philosophy-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

body.dark-theme .philosophy-item p {
    color: #aaa;
}

/* Правая колонка — визитка */
.about-contacts-card {
    background: linear-gradient(145deg, #f5f0ea, #ede8e0);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

body.dark-theme .about-contacts-card {
    background: linear-gradient(145deg, #2a2826, #22201e);
}

.about-contacts-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 114, 74, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card-inner {
    position: relative;
    z-index: 1;
}

.contact-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: 0.3s;
}

body.dark-theme .contact-qr {
    background: rgba(255, 255, 255, 0.05);
}

.contact-qr img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    display: block;
}

.qr-label {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

body.dark-theme .qr-label {
    color: #aaa;
}

.contact-qr:hover {
    transform: scale(1.02);
    background: rgba(181, 114, 74, 0.06);
}

body.dark-theme .contact-qr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.contact-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.brand-icon {
    font-size: 32px;
    color: #b5724a;
}

.contact-brand h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-brand h3 span {
    color: #b5724a;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 15px;
}

body.dark-theme .contact-list li {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li i {
    color: #b5724a;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.contact-list li a {
    color: inherit;
    transition: color 0.2s;
}

.contact-list li a:hover {
    color: #b5724a;
}

.contact-tagline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(181, 114, 74, 0.2);
    text-align: center;
}

.tagline-line {
    display: block;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #b5724a;
}

.tagline-line:first-child {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

body.dark-theme .tagline-line:first-child {
    color: #aaa;
}
/* ===== СТРАНИЦА КОНТАКТОВ (ТОЛЬКО ФОРМА) ===== */
#page-contacts h2 {
    text-align: center;
    margin-bottom: 8px;
}

.contacts-wrap {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 16px auto 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

body.dark-theme .contact-form {
    background: rgba(255, 255, 255, 0.04);
}

.contact-form h3 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.contact-form h3 i {
    color: #b5724a;
    margin-right: 10px;
}

/* Группы полей с иконками */
.form-group {
    position: relative;
    margin-bottom: 14px;
}

.form-group .form-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b5724a;
    font-size: 16px;
    width: 20px;
    text-align: center;
    z-index: 1;
}

.form-group.textarea-group .form-icon {
    top: 16px;
    transform: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #d6d0c8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: inherit;
    transition: 0.2s;
}

body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea {
    background: #1c1b1a;
    border-color: #4a4540;
}

.contact-form textarea {
    padding: 12px 16px 12px 44px;
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b5724a;
    box-shadow: 0 0 0 3px rgba(181, 114, 74, 0.15);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 6px;
}

.contact-form .btn-primary i {
    margin-right: 8px;
}

.form-message {
    margin-top: 12px;
    font-weight: 500;
    display: none;
    text-align: center;
}

.form-message.success {
    display: block;
    color: #2b7a4b;
}

.form-message.error {
    display: block;
    color: #b13e3e;
}

/* Адаптивность */
@media (max-width: 480px) {
    .contact-form {
        padding: 20px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px 14px 10px 40px;
        font-size: 14px;
    }
    
    .form-group .form-icon {
        left: 12px;
        font-size: 14px;
    }
}

/* Адаптивность */
@media (max-width: 480px) {
    .contact-form {
        padding: 20px;
    }
}

/* ===== ПЛАВАЮЩИЙ КАЛЬКУЛЯТОР ===== */
.floating-calculator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 340px;
    background: #faf8f5;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    transform: translateY(calc(100% + 30px));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.floating-calculator.open {
    transform: translateY(0);
    opacity: 1;
}

.floating-calculator .calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: move;
}

.floating-calculator .calculator-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.floating-calculator .calculator-header h3 i {
    color: #b5724a;
    margin-right: 8px;
}

.calculator-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.calculator-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.calculator-body {
    padding: 20px;
}

.calculator-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.calculator-field {
    margin-bottom: 14px;
}

.calculator-field label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    color: #5a554e;
}

body.dark-theme .calculator-field label {
    color: #b0aaa2;
}

.calculator-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-row span {
    color: #888;
    font-weight: 600;
}

.calculator-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d6d0c8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: inherit;
    transition: 0.2s;
}

.calculator-field input:focus {
    outline: none;
    border-color: #b5724a;
    box-shadow: 0 0 0 3px rgba(181, 114, 74, 0.15);
}

.calculator-row input {
    flex: 1;
}

.calculator-result {
    background: rgba(181, 114, 74, 0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-top: 16px;
    display: none;
}

.calculator-result.show {
    display: block;
    animation: fade 0.3s ease;
}

.result-price {
    font-size: 32px;
    font-weight: 700;
    color: #b5724a;
}

.result-label {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.calculator-history {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

.calculator-history h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #5a554e;
}

body.dark-theme .calculator-history h4 {
    color: #b0aaa2;
}

#historyList {
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
}

#historyList li {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

body.dark-theme #historyList li {
    background: rgba(255, 255, 255, 0.04);
}

#historyList li .history-value {
    font-weight: 600;
    color: #b5724a;
}

/* ===== ПАНЕЛЬ УПРАВЛЕНИЯ ===== */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-overlay.open {
    display: flex;
}

.admin-panel {
    background: #faf8f5;
    border-radius: 32px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    padding: 0;
}

body.dark-theme .admin-panel {
    background: #2a2826;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-header h2 {
    font-size: 20px;
}

.admin-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    padding: 4px 8px;
    border-radius: 8px;
}

.admin-header button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.admin-body {
    padding: 24px 28px;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section h3 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.admin-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.admin-product-list {
    margin-top: 16px;
}

.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    margin-bottom: 6px;
}

body.dark-theme .admin-product-item {
    background: rgba(255, 255, 255, 0.04);
}

.admin-product-item span {
    font-size: 14px;
}

.admin-product-item .admin-item-actions {
    display: flex;
    gap: 8px;
}

.admin-product-item .admin-item-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
    font-size: 14px;
}

.admin-product-item .admin-item-actions button:hover {
    color: #b5724a;
}

.admin-product-item .admin-item-actions button.delete:hover {
    color: #b13e3e;
}

/* Модалка товара */
.product-modal {
    max-width: 500px;
}

#productForm label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 4px;
}

#productForm input,
#productForm select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d6d0c8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: inherit;
}

body.dark-theme #productForm input,
body.dark-theme #productForm select {
    background: #1c1b1a;
    border-color: #4a4540;
}

#productForm button {
    margin-top: 20px;
    width: 100%;
}

/* ===== ПОДВАЛ ===== */
footer {
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    font-size: 14px;
    color: #888;
}

body.dark-theme footer {
    border-top-color: rgba(255, 255, 255, 0.04);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-contacts-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content,
    .contacts-wrap {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .nav-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
        gap: 16px;
    }

    .nav-actions {
        justify-content: center;
    }

    .search-box input {
        width: 100px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .admin-panel {
        max-width: 100%;
        margin: 12px;
        border-radius: 20px;
    }

    .login-panel {
        padding: 28px 20px;
        margin: 12px;
    }

    .floating-calculator {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .about-header h2 {
        font-size: 30px;
    }
    
    .about-tagline {
        font-size: 16px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .contact-list li {
        font-size: 14px;
    }

    .nav-links {
        gap: 10px;
        font-size: 14px;
    }

    .nav-actions {
        gap: 6px;
    }

    .search-box input {
        width: 80px;
        font-size: 13px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-card img {
        height: 180px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contacts-wrap {
        gap: 24px;
    }

    .contact-form {
        padding: 20px;
    }

    .admin-body {
        padding: 16px;
    }

    .admin-header {
        padding: 16px 20px;
    }
}
/* ============================================================
   ЛОГОТИП В ШАПКЕ
   ============================================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo span {
    color: #b5724a;
}

/* Для тёмной темы */
body.dark-theme .logo-img {
    filter: brightness(1.2);
}

/* ============================================================
   ПОДВАЛ С КИРПИЧНОЙ СТЕНОЙ
   ============================================================ */
.footer {
    position: relative;
    padding: 48px 0 24px;
    color: #fff;
    text-align: center;
    margin-top: 40px;
    border-top: none;
    
    /* ✅ Фон занимает ВСЮ ширину и высоту */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* ✅ Если картинка не грузится — запасной цвет */
    background-color: #1a1a1a;
    
    /* ✅ Минимальная высота */
    min-height: 250px;
    
    /* ✅ Растягиваем на всю ширину */
    width: 100%;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Логотип в подвале --- */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: brightness(1.1);
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.footer-brand p {
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

/* --- Контакты в подвале --- */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contacts p {
    margin: 4px 0;
    font-size: 14px;
}

.footer-contacts a {
    color: #fff;
    transition: color 0.2s;
}

.footer-contacts a:hover {
    color: #b5724a;
}

/* --- Соцсети в подвале --- */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: 0.3s;
    font-size: 18px;
    text-decoration: none;
}

.footer-social a:hover {
    background: #b5724a;
    transform: translateY(-3px);
}

/* --- Копирайт --- */
.footer-bottom {
    padding-top: 20px;
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 768px) {
    .footer {
        padding: 32px 0 20px;
        min-height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 24px 0 16px;
        min-height: 150px;
    }
    
    .footer-logo-img {
        height: 32px;
    }
    
    .footer-brand-name {
        font-size: 17px;
    }
    
    .footer-contacts p {
        font-size: 13px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .footer-logo-img {
        height: 36px;
    }
    
    .footer-brand-name {
        font-size: 17px;
    }
}