* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    color: #303030;
    text-decoration: none;
    border: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

a {
    color: #303030;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

body {
    background-color: #f2f2f7;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    a {
        font-size: 34px;
        height: 60px;

        img {
            width: 60px;
            height: 60px;
        }
    }
}

.menu-items {
    display: flex;
    gap: 30px;

    a {
        color: #303030;
        text-decoration: none;
        font-size: 24px;
        font-weight: 600;
    }
}

.menu-buttons {
    display: flex;
    gap: 10px;
}

.button-primary {
    min-height: 40px;
    padding: 10px 30px;
    border-radius: 8px;
    background-color: #303030;
    color: #fff;
    font-size: 14px;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15)
}

.button-primary:hover {
    opacity: 1;
    background-color: #7f42e1;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.3)
}

.button-secondary {
    min-height: 40px;
    padding: 10px 30px;
    border-radius: 8px;
    border: 2px solid #303030;
    color: #303030;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15)
}

.button-secondary:hover {
    opacity: 1;
    color: #7f42e1;
    border: 2px solid #7f42e1;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.3)
}

header {
    display: flex;
    align-items: center;
    gap: 60px;
    min-width: 100%;
    height: 100vh;
    padding: 30px 0;

}

.header-content {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

h1 {
    font-size: 52px;
    font-weight: 700;
}

.subtitle {
    font-size: 24px;
}

.main-button {
    font-size: 16px;
    height: 48px;
}

.description {
    font-size: 16px;
}

.header-image {
    flex: 1 1 auto;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;

    h2 {
        font-size: 42px;
        font-weight: 700;
    }
}

h3 {
    font-size: 36px;
    font-weight: 700;
}

.color-icon {
    width: 90px;
    height: 90px;
}

.transparent-icon {
    width: 65px;
    height: 65px;
}

.footer-icon {
    width: 30px;
    height: 30px;
}

.familiar-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 90px;
}

.familiar-content-card,
.interface-content-card,
.development-content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;

    p {
        text-align: center;
    }
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.needed-gallery-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.needed-gallery {
    position: relative;
    width: 100%;
}

.needed-gallery-viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.needed-content {
    display: flex;
    transition: transform 0.45s ease;
}

.needed-content-card {
    flex: 0 0 100%;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.needed-content-card img {
    flex: 0 0 42%;
    max-width: 42%;
    height: auto;
    object-fit: contain;
}

.needed-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    color: #303030;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15);
    transition: color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.needed-gallery-btn--prev {
    right: calc(100% + 24px);
}

.needed-gallery-btn--next {
    left: calc(100% + 24px);
}

.needed-gallery-btn:hover {
    color: #7f42e1;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.3);
    opacity: 1;
}

.needed-gallery-footer {
    display: flex;
    justify-content: center;
}

.needed-gallery-dots {
    display: flex;
    gap: 10px;
}

.needed-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d1d6;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.needed-gallery-dot.is-active {
    background-color: #7f42e1;
    transform: scale(1.25);
}

.needed-gallery-dot:hover {
    background-color: #7f42e1;
    opacity: 0.7;
}

.needed-content-card-text {
    display: flex;
    flex-direction: column;
    gap: 30px;

    strong {
        font-weight: 700;
    }
}

.herein-content,
.starting-content,
.easy-content {
    display: flex;
    align-items: center;
    gap: 90px;
}

.herein-content-cards,
.starting-content-cards,
.easy-content-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.herein-content-card,
.starting-content-card,
.easy-content-card {
    display: flex;
    align-items: center;
    gap: 30px;

    p {
        font-size: 26px;
    }
}

.interface-content,
.development-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 90px;
}

.news-slider {
    position: relative;
    width: 100%;
}

.news-slider-viewport {
    container-type: inline-size;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.news-content {
    --news-gap: 40px;
    --news-index: 0;
    display: flex;
    gap: var(--news-gap);
    transition: transform 0.45s ease;
    transform: translateX(calc(var(--news-index) * (50cqw + var(--news-gap) / 2) * -1));
}

.news-content-card {
    flex: 0 0 calc((100cqw - var(--news-gap)) / 2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15);
}

.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    color: #303030;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15);
    transition: color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.news-slider-btn--prev {
    right: calc(100% + 24px);
}

.news-slider-btn--next {
    left: calc(100% + 24px);
}

.news-slider-btn:hover:not(:disabled) {
    color: #7f42e1;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.3);
    opacity: 1;
}

.news-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.news-content-card-text {
    display: flex;
    flex-direction: column;
    gap: 10px;

    h3 {
        font-size: 24px;
    }

    .description {
        font-size: 18px;
        font-weight: 400;
    }

    .date {
        font-size: 14px;
        font-weight: 300;
        color: #7f42e1;
    }
}

.news-read-btn {
    cursor: pointer;
}

.news-error {
    font-size: 18px;
    font-weight: 400;
    color: #303030;
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.news-modal[hidden] {
    display: none;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(48, 48, 48, 0.5);
    cursor: pointer;
}

.news-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f2f2f7;
    color: #303030;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.news-modal-close:hover {
    color: #7f42e1;
    opacity: 1;
}

.news-modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 30px;

    h3 {
        font-size: 24px;
        font-weight: 700;
        padding-right: 20px;
    }

    .date {
        font-size: 14px;
        font-weight: 300;
        color: #7f42e1;
    }
}

.news-modal-body {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.news-modal-body p {
    margin-bottom: 1em;
}

.news-modal-body p:last-child {
    margin-bottom: 0;
}

.development {
    margin-bottom: 90px;
}

footer {
    padding: 60px 40px 90px;
    margin: 0 -40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: #303030;
}

.footer-logo p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.footer-link {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: underline;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    a {
        text-align: right;
    }
}

.contact-icons {
    display: flex;
    gap: 10px;
}

.scroll-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    color: #303030;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    color: #7f42e1;
    box-shadow: 0px 0px 20px 0px rgba(51, 51, 51, 0.3);
    opacity: 1;
}

/* --- Адаптив --- */

@media (max-width: 1024px) {
    * {
        font-size: 18px;
    }

    body {
        padding: 0 30px;
    }

    h1 {
        font-size: 48px;
    }

    section h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 30px;
    }

    .subtitle {
        font-size: 20px;
    }

    .herein-content,
    .starting-content,
    .easy-content {
        flex-direction: column;
        gap: 40px;
    }

    .starting-content {
        flex-direction: column-reverse;
    }

    .needed-gallery-btn--prev,
    .news-slider-btn--prev {
        right: auto;
        left: -20px;
    }

    .needed-gallery-btn--next,
    .news-slider-btn--next {
        left: auto;
        right: -20px;
    }

    .interface-content,
    .development-content {
        gap: 30px;
    }

    footer {
        margin: 0 -30px;
        padding: 40px 30px 60px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 20px;
    }

    menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 24px 0;
    }

    .logo a {
        font-size: 28px;
        height: 48px;
    }

    .logo a img {
        width: 48px;
        height: 48px;
    }

    .menu-items {
        width: 100%;
        justify-content: center;
        gap: 24px;
    }

    .menu-items a {
        font-size: 18px;
    }

    header {
        flex-direction: column;
        gap: 30px;
    }

    .header-image {
        width: 100%;
        height: auto;
        max-height: 480px;
        flex: none;
        border-radius: 24px;
    }

    .header-content {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    h1 {
        font-size: 36px;
    }

    h3 {
        font-size: 28px;
    }

    section {
        padding: 60px 0 20px;
        gap: 40px;
    }

    section h2 {
        font-size: 32px;
        text-align: center;
    }

    .subtitle {
        text-align: center;
    }

    .familiar-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .interface-content,
    .development-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .herein-content-cards,
    .starting-content-cards,
    .easy-content-cards {
        gap: 32px;
    }

    .herein-content-card,
    .starting-content-card,
    .easy-content-card {
        gap: 20px;
    }

    .herein-content-card p,
    .starting-content-card p,
    .easy-content-card p {
        font-size: 20px;
    }

    .needed-gallery-btn,
    .news-slider-btn {
        width: 44px;
        height: 44px;
    }

    .needed-content-card {
        gap: 30px;
        align-items: center;
        flex-direction: column-reverse;
        justify-content: flex-end;
    }

    .needed-content-card img {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .needed-content-card-text {
        gap: 20px;
    }

    .news-content {
        --news-gap: 20px;
        transform: translateX(calc(var(--news-index) * (100cqw + var(--news-gap)) * -1));
    }

    .news-content-card {
        flex: 0 0 100cqw;
        padding: 24px;
    }

    .news-content-card-text h3 {
        font-size: 20px;
    }

    .news-modal {
        padding: 16px;
    }

    .news-modal-dialog {
        padding: 24px;
        max-height: calc(100vh - 32px);
    }

    .news-modal-content h3 {
        font-size: 20px;
    }

    .news-modal-body {
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin: 0 -20px;
        padding: 40px 20px 60px;
        text-align: center;
    }

    .contact {
        align-items: center;
    }

    .contact a {
        text-align: center;
    }

    .development {
        margin-bottom: 60px;
    }

    .scroll-top {
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 16px;
    }

    h1 {
        font-size: 28px;
    }

    section h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 24px;
    }

    .logo a {
        font-size: 22px;
        height: auto;
    }

    .logo-img-link {
        height: 48px !important;
    }

    .menu-buttons {
        width: 100%;
        justify-content: center;
    }

    .menu-items {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .button-primary,
    .button-secondary {
        font-size: 13px;
        padding: 10px 20px;
        height: 40px;
    }

    .main-button {
        height: 48px;
        font-size: 16px;
        text-align: center;
    }

    .header-image {
        border-radius: 16px;
        max-height: 320px;
    }

    .color-icon {
        width: 72px;
        height: 72px;
    }

    .transparent-icon {
        width: 52px;
        height: 52px;
    }

    .needed-content-card img {
        flex: 0 0 50%;
        max-width: 80%;
    }

    .needed-gallery-btn--prev,
    .news-slider-btn--prev {
        left: -10px;
    }

    .needed-gallery-btn--next,
    .news-slider-btn--next {
        right: -10px;
    }

    .herein-content img,
    .starting-content img,
    .easy-content img {
        max-width: 80%;
    }

    footer {
        margin: 0 -16px;
        padding: 32px 16px 48px;
    }
}