:root[data-theme='light'] {
    --page-bg: #f7fbf8;
    --text-color: #1d2d28;
    --text-soft: rgba(29, 45, 40, 0.8);
    --light-area: #eaf5f0;
    --box-bg: #ffffff;
    --box-border: #cfe0d8;
    --dark-bg: #174f43;
    --dark-text: #ffffff;
    --dark-accent: #a2efd5;
    --link-color: #176f5c;
    --link-hover: #115646;
    --green-btn: #218f78;
    --green-btn-hover: #1a7663;
    --dark-btn: #1f1f23;
    --dark-btn-hover: #111317;
    --line-color: #cfe0d8;
    --theme-bg: rgba(255, 255, 255, 0.14);
    --theme-border: rgba(255, 255, 255, 0.4);
    --theme-text: #ffffff;
}

:root[data-theme='dark'] {
    --page-bg: #11151d;
    --text-color: #e5edf6;
    --text-soft: rgba(229, 237, 246, 0.82);
    --light-area: #161c26;
    --box-bg: #1a2230;
    --box-border: #314053;
    --dark-bg: #060912;
    --dark-text: #f7fbff;
    --dark-accent: #58e6c1;
    --link-color: #58e6c1;
    --link-hover: #7ef0d2;
    --green-btn: #3bc7a4;
    --green-btn-hover: #2faf8f;
    --dark-btn: #58e6c1;
    --dark-btn-hover: #73edd0;
    --line-color: #2c384a;
    --theme-bg: rgba(17, 21, 29, 0.75);
    --theme-border: rgba(229, 237, 246, 0.2);
    --theme-text: #f7fbff;
}

:root[data-theme='sexy'] {
    --page-bg: #fff4fb;
    --text-color: #4d1f3f;
    --text-soft: rgba(77, 31, 63, 0.8);
    --light-area: #ffe4f2;
    --box-bg: #fff8fc;
    --box-border: #f0bfd8;
    --dark-bg: #7b0f4c;
    --dark-text: #fff6fb;
    --dark-accent: #ffd1ec;
    --link-color: #c21872;
    --link-hover: #a0145d;
    --green-btn: #ff5ea8;
    --green-btn-hover: #f04797;
    --dark-btn: #c21872;
    --dark-btn-hover: #a91460;
    --line-color: #f1bfd8;
    --theme-bg: rgba(255, 255, 255, 0.2);
    --theme-border: rgba(255, 246, 251, 0.55);
    --theme-text: #fff6fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

button,
input,
textarea {
    font: inherit;
}

.top-section,
.service-title-section,
.service-section,
.footer-section {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.stats-section,
.team-section,
.contact-section {
    text-align: center;
}

.top-section {
    padding-bottom: 7rem;
}

.top-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.head-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.75rem 0 1.15rem;
}

.logo-pic {
    height: 48px;
}

.menu-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.menu-links a {
    padding: 0.45rem 0.9rem;
    color: var(--dark-text);
}

.menu-links a:hover,
.menu-links a:focus {
    color: var(--dark-text);
}

.theme-part {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
}

.theme-label {
    color: var(--dark-text);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.theme-container {
    position: relative;
}

.theme-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--theme-border);
    border-radius: 0.5rem;
    background: var(--theme-bg);
    color: var(--theme-text);
    cursor: pointer;
}

.theme-arrow {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

.theme-box {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 100%;
    padding: 0.35rem;
    border: 1px solid var(--theme-border);
    border-radius: 0.5rem;
    background: var(--box-bg);
}

.theme-item {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
}

.theme-item + .theme-item {
    margin-top: 0.4rem;
}

.theme-item:hover,
.theme-item.is-active {
    background: var(--green-btn);
    color: var(--dark-text);
}

.hero-box {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2.25rem;
    align-items: center;
    padding-top: 4rem;
}

.hero-text h1 {
    margin: 0 0 1.4rem;
    font-size: 3.3rem;
    line-height: 1.15;
}

.hero-line {
    display: block;
    color: var(--dark-accent);
}

.hero-text p {
    max-width: 42rem;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.hero-button {
    display: inline-block;
    padding: 0.8rem 1.35rem;
    border: 1px solid var(--theme-border);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--dark-text);
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--dark-text);
}

.hero-image {
    width: 100%;
    aspect-ratio: 1375 / 885;
    object-fit: contain;
    margin-top: 1rem;
}

.stats-section {
    padding: 2.5rem 0;
    background: var(--light-area);
}

.stats-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.stats-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1.05rem;
}

.stat-item strong {
    font-size: 2rem;
    font-weight: 700;
}

.mission-section {
    padding: 3.5rem 0 4.5rem;
}

.mission-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}

.mission-pic-box {
    padding: 1.5rem;
    border: 1px solid var(--box-border);
    border-radius: 0.75rem;
    background: var(--box-bg);
}

.mission-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.mission-text {
    text-align: left;
}

.big-title {
    margin: 0 0 1.4rem;
    font-size: 2.5rem;
    line-height: 1.3;
}

.mission-text p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.service-title-section {
    padding: 4.5rem 0 1.9rem;
    text-align: center;
}

.service-title-container {
    width: 860px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.title-color {
    color: var(--dark-accent);
}

.service-section {
    padding: 0 0 4.5rem;
}

.service-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 0.5rem;
    color: var(--text-color);
    text-align: center;
}

.service-text,
.service-bottom {
    padding: 1.5rem;
}

.service-text p {
    margin: 0 0 1rem;
}

.service-text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-text li + li {
    margin-top: 0.4rem;
}

.service-name {
    font-size: 2rem;
    font-weight: 700;
}

.card-button {
    display: inline-block;
    padding: 0.8rem 1.35rem;
    border-radius: 0.5rem;
    background: var(--dark-btn);
    color: var(--dark-text);
}

.card-button:hover {
    background: var(--dark-btn-hover);
    color: var(--dark-text);
}

.team-section {
    padding: 4.5rem 0;
    background: var(--light-area);
    border-bottom: 1px solid var(--line-color);
}

.team-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 1.35rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.9rem 0.7rem 0.8rem;
    background: var(--box-bg);
    border-radius: 0.75rem;
}

.team-pic {
    width: 100%;
    max-width: 170px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.pic-hide {
    visibility: hidden;
}

.team-name {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.team-job {
    display: block;
    max-width: 13rem;
    margin-top: 0.05rem;
    color: var(--text-soft);
    font-size: 0.85rem;
    line-height: 1.45;
}

:root[data-theme='dark'] .team-card {
    background: #202938;
}

:root[data-theme='dark'] .team-job {
    color: rgba(229, 237, 246, 0.72);
}

.why-section {
    padding: 4.5rem 0;
    background: var(--dark-bg);
    color: var(--dark-text);
    text-align: center;
}

.why-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    padding: 1.5rem;
    border: 1px solid var(--box-border);
    border-radius: 0.5rem;
    background: var(--box-bg);
    color: var(--text-color);
}

.why-card img {
    max-height: 56px;
    margin: 0 auto 1.25rem;
}

.why-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.why-card p {
    margin: 0 0 1.1rem;
}

.why-card a,
.contact-text a {
    color: var(--link-color);
}

.contact-section {
    padding: 4.5rem 0;
}

.contact-container {
    width: 860px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
}

.contact-text {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    color: var(--text-soft);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--box-border);
    border-radius: 0.5rem;
    background: var(--box-bg);
    color: var(--text-color);
    text-align: left;
}

.input-part {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-part span {
    font-size: 0.9rem;
    font-weight: 700;
}

.input-part input,
.input-part textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--box-border);
    border-radius: 0.5rem;
    background: var(--page-bg);
    color: var(--text-color);
}

.input-part textarea {
    min-height: 160px;
    resize: vertical;
}

.big-field {
    grid-column: 1 / 3;
}

.send-button {
    justify-self: start;
    padding: 0.8rem 1.35rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--green-btn);
    color: var(--dark-text);
    cursor: pointer;
}

.send-button:hover {
    background: var(--green-btn-hover);
}

.footer-section {
    padding: 3.25rem 0;
}

.footer-container {
    width: 1200px;
    max-width: calc(100% - 2.5rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-col h4 {
    margin: 0 0 0.75rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 960px) {
    .head-bar,
    .hero-box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .theme-part {
        justify-self: center;
    }

    .hero-pic-box {
        display: none;
    }

    .stats-list,
    .mission-container,
    .service-list,
    .why-list,
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .menu-links,
    .theme-part {
        display: none;
    }

    .head-bar {
        display: block;
    }

    .hero-text h1,
    .big-title {
        font-size: 2.1rem;
    }

    .stats-list,
    .mission-container,
    .service-list,
    .team-list,
    .why-list,
    .contact-form,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .mission-text {
        text-align: center;
    }

    .mission-section,
    .team-section,
    .why-section,
    .contact-section {
        padding: 2.75rem 0;
    }

    .big-field {
        grid-column: 1 / 2;
    }
}
