:root {
    --bg-color: #0d0d0d;
    --text-color: #e5e5e5;
    --accent-color: #f1f1f1;
    --secondary-color: #aaa;
    --border-color: #333;
    --card-bg: #141414;
    --card-border: #222;
    --muted-color: #666;
    --highlight-color: #dcdcdc;

    --font-main: "Helvetica Neue", Arial, sans-serif;
    --font-decor: "Great Vibes", cursive;

    --base-font-size: 16px;
    --section-padding: 60px 80px;
}

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

.body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: var(--base-font-size);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 160px;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 60px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 10;
}

.header__title {
    font-family: var(--font-decor);
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--accent-color);
    text-transform: none;
    margin-bottom: 10px;
}
.nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}
.nav__list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 15px;
}

.nav__link {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.main {
    padding: var(--section-padding);
    margin-top: 160px;
}

.section {
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

.section:last-child {
    border-bottom: none;
}

.section__title, .section__subtitle, .thing__title {
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: center;
    align-items: center;

}

.text-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.things-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.thing {
    padding: 25px;
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex: 1 1 300px;
    max-width: 350px;
    z-index: 1;
}

.thing__img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.thing:hover {
    border-color: #555;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}


.table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.table-header {
    background-color: #1a1a1a;
    color: var(--highlight-color);
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    padding: 12px;
}

.table-cell {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #1e1e1e;
    border-right: 1px solid #1e1e1e;
}

.table-row {
    display: contents;
}

.table-row:nth-child(even) .table-cell {
    background-color: #121212;
}
.table-row:nth-child(odd) .table-cell {
    background-color: #0d0d0d;
}

.aside {
    margin-top: 40px;
    font-style: italic;
    color: #999;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.quote__text {
    quotes: "“" "”" "‘" "’";
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    padding: 40px 60px;
    text-align: center;
    background-color: #0a0a0a;
    gap: 20px;
}

.footer__pre {
    font-family: monospace;
    font-size: 10px;
    color: var(--muted-color);
    margin: 20px 0;
    text-align: center;
}

.footer__link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer__copy {
    color: #777;
    font-size: 0.9rem;
}

.del {
    color: var(--muted-color);
}

.ins {
    color: #d6d6d6;
    text-decoration: none;
}

.i {
    color: #cfcfcf;
}

@media screen and (min-width: 1921px) {
    .body {
        font-size: 18px;
    }

    .header {
        height: 200px;
        padding: 20px 100px;
    }

    .main {
        padding: 80px 120px;
    }

    .section {
        margin: 0 auto 80px;
    }

    .things-container {
        gap: 60px;
    }

    .thing {
        max-width: 450px;
        padding: 35px;
    }

    .nav__list {
        gap: 80px;
    }
}

@media screen and (min-width: 1366px) and (max-width: 1920px) {
    .main {
        padding: 50px 70px;
    }
}

@media screen and (max-width: 1366px) {
    .nav__list {
        gap: 30px;
    }
    .header__title {
        font-size: 2.6rem;
    }
    .things-container {
        gap: 30px;
    }
}

@media screen and (max-width: 1024px) {
    .header {
        height: auto;
        padding: 15px 20px;
    }

    .nav__list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .main {
        padding: 40px 30px;
        margin-top: 140px;
    }

    .thing {
        flex: 1 1 250px;
        max-width: 350px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        position: relative;
        height: auto;
        padding: 10px 20px;
    }

    .header__title {
        font-size: 2rem;
        margin: 5px 0;
    }

    .nav {
        position: static;
        transform: none;
        width: auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .main {
        margin-top: 0;
        padding: 40px 10px;
    }

    .body {
        font-size: 14px;
    }

    .things-container {
        flex-direction: column;
        align-items: center;
    }

    .thing {
        max-width: 70%;
        padding: 15px;
    }

    .footer__pre {
        display: none;
    }
}



.section {
    scroll-margin-top: 180px;
}

.nav__link.active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.btn {
    width: 100%;
    padding: 10px 65px;
    background-color: #151515;
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn:hover {
    background-color: #555555;
    transform: translateY(-2px);
}



.form {
    max-width: 400px;
    margin: 0 auto 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--highlight-color);
}

.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    border-radius: 4px;
}