/* ТЕМНАЯ ТЕМА */
/* Общие стили */
body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    background-color: #121212;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Шапка - адаптивная */
.header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

.header-logo img {
    height: 80px;
    object-fit: contain;
    width: auto;
    display: block;
    filter: brightness(0.9);
}

.header-title {
    text-align: center;
    order: 1;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #64b5f6;
}

.header p {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    color: #aaa;
    font-weight: 400;
}

.header-phone {
    font-size: 1rem;
    font-weight: 600;
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 5px;
    display: inline-block;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

/* Приветственный блок */
.hero {
    background: url("../images/intro.jpg") center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px 15px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    background-color: rgba(26, 26, 26, 0.85);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 95%;
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    border: 1px solid #333;
    backdrop-filter: blur(5px);
}

.hero h2 {
    font-size: 1.8rem;
    margin: 0 0 0.8rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin: 0;
    color: #ccc;
}

/* Каталог */
.products {
    padding: 20px 15px;
    margin-top: -20px;
    background-color: transparent;
}

.products h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #64b5f6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка продукта */
.product-card {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    border-color: #444;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.product-card:hover img {
    filter: brightness(1);
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.3;
}

.product-info p {
    margin: 0 0 1.2rem;
    line-height: 1.5;
    color: #bbb;
    font-size: 0.95rem;
    flex: 1;
}

.product-info .order-btn {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.product-info .order-btn:hover,
.product-info .order-btn:active {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-sizing: border-box;
    animation: modalOpen 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s;
}

.close:hover {
    color: #fff;
}

.modal h3 {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
    color: #fff;
    padding-right: 25px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #ccc;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    background: #2d2d2d;
    color: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64b5f6;
    background: #333;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
}

.submit-btn {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.2s;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.submit-btn:hover,
.submit-btn:active {
    background: linear-gradient(135deg, #1b5e20, #388e3c);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

/* Уведомление */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notification.success {
    background: rgba(46, 125, 50, 0.9);
    border-color: rgba(76, 175, 80, 0.3);
}

.notification.error {
    background: rgba(211, 47, 47, 0.9);
    border-color: rgba(244, 67, 54, 0.3);
}

/* Футер */
.footer {
    background: #0a0a0a;
    color: #aaa;
    padding: 25px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-left p {
    white-space: nowrap;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-text p:first-child {
    order: -1
    margin-bottom: 6px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-text strong {
    color: #64b5f6;
    display: block;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.social-icons a:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: scale(1.1);
    border-color: rgba(100, 181, 246, 0.4);
}

.social-icons img {
    width: 22px;
    height: 22px;
    filter: brightness(0.9);
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products h2 {
        font-size: 1.6rem;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 1.2rem;
        width: 95%;
    }
}

/* Планшеты (от 768px) */
@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-logo img {
        height: 100px;
    }
    
    .header-title {
        order: 0;
        flex: 1;
    }
    
    .header-phone {
        margin-top: 0;
    }
    
    .hero-content {
        padding: 2.5rem;
        max-width: 80%;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .products {
        padding: 40px 10%;
    }
    
    .products h2 {
        font-size: 2.2rem;
    }
    
    .product-card {
        flex-direction: row;
        min-height: 220px;
    }
    
    .product-card img {
        width: 250px;
        height: 100%;
    }
    
    .product-info {
        padding: 1.8rem;
    }
    
    .product-info .order-btn {
        width: auto;
        align-self: flex-start;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-right {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 30px;
    }
    
    .footer-text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
    }
    
    .notification {
        left: auto;
        right: 20px;
        transform: none;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Большие экраны (от 1024px) */
@media (min-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        height: 85vh;
        min-height: 600px;
    }
    
    .hero-content {
        max-width: 800px;
        padding: 3rem;
    }
    
    .products {
        padding: 60px 10%;
    }
    
    .product-card img {
        width: 300px;
    }
}

/* Для iOS Safari - исправление ввода */
@supports (-webkit-touch-callout: none) {
    input, textarea {
        font-size: 16px !important;
    }
}

/* Улучшение для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    }
    
    .order-btn:active,
    .submit-btn:active {
        transform: scale(0.97);
    }
}

/* Убираем синие подсветки при тапе на мобильных */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}
