/* ========================= */
/* BASE */
/* ========================= */

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 19px;
    background: linear-gradient(135deg, #d2d7d0, #e2e7e0);
    color: #1e3d2f;
    

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
header,
.light-section,
.dark-section,
footer {
    text-align: center;
}

/* ========================= */
/* TYPOGRAPHY */
/* ========================= */

h1 {
    font-size: 42px;
    margin-bottom: 6px;
}

h2 {
    font-size: 30px;
    margin-bottom: 40px;
}

p {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.6;
    color: #16612f;
}

/* ========================= */
/* INFINITY SYSTEM */
/* ========================= */

.infinity-symbol {
    display: inline-block;
    margin: 0 4px;
    font-size: 1em;
    line-height: 1;
    transform: translateY(0.04em);
}

.infinity-xl {
    font-size: 1.9em;
    display: inline-block;
    transform: translateY(0.16em);
}

.infinity-sm {
    font-size: 1.9em;
    display: inline-block;
    transform: translateY(0.16em);
}

/* ========================= */
/* NAVIGATION */
/* ========================= */

header {
    padding: 20px 20px 0 20px;
    background: #d2d7d0;
}

.main-nav {
    width: 100%;
    margin-bottom: 70px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: #1e3d2f;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.main-nav a:hover {
    color: #0f2a21;
}

.main-nav a.active {
    border-bottom: 2px solid #1e3d2f;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #285944;
    color: #d2d7d0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 800;

    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn:hover {
    background: #2f6f54;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* ========================= */
/* SECTIONS */
/* ========================= */

.light-section {
    padding: 60px 20px;
    background: #d2d7d0;
    color: #1e3d2f;
}

.dark-section {
    padding: 80px 20px;
    background: #1e3d2f;
    color: #d2d7d0;
}

.dark-section h2 {
    color: #d2d7d0;
}

.dark-section p {
    color: #a9cbb8;
}

/* ========================= */
/* GRID — PARAMETERS */
/* ========================= */

.parameters-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;

    margin-top: 30px;
    margin-bottom: 30px;
}

.parameter-item {
    background: #234a37;
    padding: 25px;
    border-radius: 8px;
    width: 200px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.25s;
}

.parameter-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    background: #285944;
}

.parameter-item h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.parameter-item p {
    font-size: 14px;
    color: #a9cbb8;
    margin: 0;
}

/* ========================= */
/* PROJECT CARDS */
/* ========================= */

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.project-card {
    background: #285944;
    color: #d2d7d0;
    padding: 30px;
    border-radius: 10px;
    max-width: 300px;
    text-decoration: none;

    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.project-card:hover {
    background: #2f6f54;
    transform: translateY(-8px);
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {
    padding: 20px;
    font-size: 14px;
    background: linear-gradient(to bottom, #1e3d2f, #9fbf96);
    color: #d2d7d0;
    margin-top: auto;
}

/* ========================= */
/* PAGE CONTROL */
/* ========================= */

/* HOME */

.home-page header img {
    width: 370px;
    margin: 0 auto;
    margin-bottom: 6px;
    margin-top: -50px;
}

.home-page header h1 {
    margin-top: -50px;
}

.home-page header p {
    margin-bottom: 60px;
}

.home-page .dark-section:first-of-type {
    margin-top: -40px;
}
/* ABOUT */

.about-page .about-action {
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}
/* INVEST */

.invest-page footer {
    margin-top: 0;
}



/* INFINITY */

.infinity-page .dark-section {
    padding-top: 60px;
    padding-bottom: 10px;
}

.infinity-page .parameters-grid {
    margin-top: 20px;
    margin-bottom: 40px;
}

.infinity-page .dark-section p {
    margin-bottom: 12px;
}

/* ========================= */
/* MOBILE */
/* ========================= */

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
        padding: 0 10px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .light-section,
    .dark-section {
        padding: 40px 15px;
    }

    .parameters-grid {
        gap: 20px;
    }

    .parameter-item {
        width: 160px;
    }

    .home-page header img {
    max-width: 260px;
    margin: 0 auto;
    margin-top: -30px;   /* вверх */
    margin-bottom: 25px; /* отступ до текста */
}

}
/* ========================= */
/* STRUCTURE FIX */
/* ========================= */

.invest-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.invest-form label {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.invest-form .btn {
    width: auto;
    align-self: center;
    padding: 10px 22px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* INVEST — FINAL FIX */

.invest-form {
    text-align: left;
}

.invest-form label {
    text-align: left;
}

.invest-form input,
.invest-form textarea {
    width: 100%;
}

/* ===== INVEST — HARD FINAL FIX ===== */

.invest-page .dark-section {
    display: flex;
    justify-content: center;
}

.invest-page .invest-form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 100%;
    max-width: 600px;

    margin: 0 auto;
}

.invest-page .invest-form label {
    display: block;
    text-align: left;
}

.invest-page .invest-form input,
.invest-page .invest-form textarea {
    width: 100%;
}

.invest-page .invest-form .btn {
    align-self: center;
}