/* Ensure footer stays at the bottom of the page */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
footer {
    margin-top: auto;
}

/* --- Elegant Modern Redesign --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@400;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Inter', 'Montserrat', Arial, sans-serif;
    color: #222;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 32px 0 24px 0;
    text-align: center;
    border-bottom: 1px solid #e3e3e3;
}

header .logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

header h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.5rem;
    color: #222;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

header h2 {
    font-size: 1.25rem;
    color: #888;
    margin: 0;
}

.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
}

.header-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.header-nav a:hover {
    background: #e3e3e3;
    color: #0077b6;
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
nav a:hover {
    background: #e3e3e3;
    color: #0077b6;
}

.wrapper {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

section, .services-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 40px 32px;
    margin-bottom: 32px;
}

.title {
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    color: #222;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.service-card {
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 32px 24px;
    transition: box-shadow 0.2s;
}
.service-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.service-card .service-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 1.25rem;
    color: #0077b6;
    margin-bottom: 8px;
}
.service-card p {
    color: #444;
    font-size: 1rem;
}

button, .add-to-cart-btn, .download-btn, .buy-now-btn {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin: 8px 0;
}
button:hover, .add-to-cart-btn:hover, .download-btn:hover, .buy-now-btn:hover {
    background: linear-gradient(90deg, #00b4d8 0%, #0077b6 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

input, textarea, select {
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 16px;
    background: #f8f9fa;
    transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
    border-color: #0077b6;
    outline: none;
}

.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}
.footer-links a {
    color: #0077b6;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.footer-links a:hover {
    background: #e3e3e3;
    color: #222;
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 32px 0 16px 0;
    margin-top: auto;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.payment-methods {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 18px;
}
.payment-logo {
    height: 32px;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: opacity 0.2s;
}
.payment-logo:hover {
    opacity: 1;
    filter: none;
}

/* Responsive Design */
@media (max-width: 900px) {
    .wrapper, section, .services-section {
        padding: 24px 8px;
    }
    .service-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 600px) {
    header {
        padding: 20px 0 12px 0;
    }
    .title {
        font-size: 1.25rem;
    }
    .service-card {
        padding: 16px 8px;
    }
    .footer-links {
        gap: 8px;
    }
    footer {
        padding: 16px 0 8px 0;
    }
}

/* Elegant card and shadow for forms */
.contact, .register, .login, .payment-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 40px 32px;
    max-width: 480px;
    margin: 32px auto;
    text-align: center;
}
.contact h2, .register h2, .login h2, .payment-form h1 {
    font-size: 2rem;
    color: #0077b6;
    margin-bottom: 24px;
}

/* Language toggle button */
.language-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    background: #0077b6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.language-toggle:hover {
    background: #00b4d8;
}

/* Miscellaneous */
a {
    color: #0077b6;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #222;
}

h1, h2, h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #222;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}

/* Elegant dot indicator for slides */
.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}
.dot:hover {
    background-color: #0077b6;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1rem;
    opacity: 1;
    transition: opacity 0.5s;
    z-index: 1000;
}
.notification.hidden {
    opacity: 0;
}

/* Custom section for discounts, etc. */
#discountSection {
    margin-top: 24px;
    text-align: center;
}
#discountSection input[type="text"] {
    padding: 12px;
    width: 220px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #e3e3e3;
}
#discountSection button {
    padding: 12px 24px;
    font-size: 1rem;
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}
#discountSection button:hover {
    background: linear-gradient(90deg, #00b4d8 0%, #0077b6 100%);
}
#discountMessage {
    margin-top: 12px;
    color: #0077b6;
    font-weight: 600;
}

/* Purchased Item */
.purchased-item {
    background: #f8f9fa;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 32px;
    margin: 32px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.purchased-item h3 {
    font-size: 1.5rem;
    color: #0077b6;
    margin-bottom: 16px;
}

/* Language-specific content visibility */
.language-content[data-lang="en"] {
    display: block;
}
.language-content[data-lang="uk"] {
    display: none;
}
.active[data-lang="en"] {
    display: none;
}
.active[data-lang="uk"] {
    display: block;
}