body {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: url('termek.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-width: 100px;
    margin-right: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

nav a.active, nav a:hover {
    background-color: #555;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    display: grid;
    gap: 2rem;
}

article, aside {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    color: #333;
}

h1, h2 {
    color: #333;
    margin-top: 0;
}

.buy-button-wrapper {
    text-align: center;
}

.buy-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.buy-button:hover {
    background-color: #0055aa;
}

iframe, video {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.thumbnail {
    max-width: 200px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

form p {
    margin: 0.5rem 0;
}

label {
    display: inline-block;
    width: 150px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
}

button {
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0055aa;
}

footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

footer a {
    color: #99ccff;
    text-decoration: underline;
}

footer a:visited {
    color: #9966cc;
}

small {
    font-family: "Helvetica", sans-serif;
    font-size: 0.875rem;
}

article a, aside a {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    background: white;
    padding: 0.5rem;
    z-index: 1000;
}


@media (max-width: 768px) {
    section {
        grid-template-columns: 1fr;
    }
    article {
        order: 1;
    }
    aside {
        order: 2;
    }
}

@media (min-width: 769px) {
    section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        grid-template-columns: 1fr;
    }
    section > article, section > aside {
        grid-column: span 1;
    }
}

@media (min-width: 481px) and (max-width: 768px) { 
    section {
        grid-template-columns: 1fr 1fr;
    }
    section > article:nth-child(1) {
        grid-column: span 2;
    }
    section > aside:nth-child(2) {
        grid-column: 1 / span 2;
    }
    section > article:nth-child(3) {
        grid-column: span 2;
    }
}

@media (min-width: 769px) {
    section {
        grid-template-columns: 1fr 1fr;
    }
    section > article:nth-child(1) {
        grid-column: 1;
    }
    section > aside:nth-child(2) {
        grid-column: 2;
    }
    section > article:nth-child(3) {
        grid-column: 1;
    }
    section > aside:nth-child(4) {
        grid-column: 2;
    }
}