@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

/* ===== HEADER ===== */
.header {
    background: #ffffff;
    color: #222;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid #eee;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo img {
    height: 72px;
    display: block;
}
.search-box {
    flex: 1;
    display: flex;
    max-width: 560px;
}
.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    outline: none;
}
.search-box button {
    background: #00B4E6;
    border: none;
    color: white;
    padding: 0 22px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-actions a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.header-actions a:hover { color: #00B4E6; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #001a2e 0%, #003366 100%);
    color: white;
    padding: 40px 20px;
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-text h1 {
    font-family: "Bookman Old Style", "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    color: #00B4E6;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero-text p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.hero-text .btn {
    display: inline-block;
    background: #00B4E6;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}
.hero-text .btn:hover { background: #0099c4; }
.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,180,230,0.3);
}

/* ===== PRODUCTS ===== */
.products-section {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}
.products-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-info .desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    flex: 1;
}
.product-info .price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.product-info .delivery {
    font-size: 13px;
    color: #00B4E6;
    margin-bottom: 12px;
}
.product-info .btn-cart {
    background: #00B4E6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}
.product-info .btn-cart:hover { background: #0099c4; }

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 50px 0 0;
    margin-top: 60px;
    font-size: 14px;
    line-height: 1.6;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #00B4E6;
}
.footer-phones {
    font-size: 18px;
    font-weight: 600;
    color: #00B4E6;
    margin-bottom: 16px;
    line-height: 1.5;
}
.footer-phones a {
    color: #00B4E6;
    text-decoration: none;
}
.footer-address {
    margin-bottom: 12px;
    color: #aaaaaa;
}
.footer-email {
    margin-top: 12px;
}
.footer-email a {
    color: #00B4E6;
}
.footer-payments {
    margin-top: 20px;
}
.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 25px 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #888;
}
.footer-bottom a {
    color: #00B4E6;
}
.footer-disclaimer {
    max-width: 580px;
    line-height: 1.5;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-content h2 { margin-bottom: 8px; font-size: 22px; }
.close {
    position: absolute;
    right: 18px; top: 14px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.close:hover { color: #000; }
.role-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.role-btn:hover {
    border-color: #00B4E6;
    background: #f0faff;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}
.form-group input:focus {
    outline: none;
    border-color: #00B4E6;
}
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #00B4E6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}
.btn-primary:hover { background: #0099c4; }
.form-note {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    text-align: center;
}
.form-note a { color: #00B4E6; }
.back-btn {
    background: none;
    border: none;
    color: #00B4E6;
    margin-top: 16px;
    cursor: pointer;
    font-size: 14px;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; }
    .header-container { flex-wrap: wrap; }
    .search-box { order: 3; max-width: 100%; width: 100%; }
}
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
    }
}