/* Этап 0: Глобальные стили и настройки */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600;700&display=swap');

:root {
    --color-background: #F5F7FA;
    --color-text-dark: #1A2A4C;
    --color-text-light: #8A9CB3;
    --color-primary-accent: #4A90E2;
    --color-secondary-accent: #50E3C2;
    --color-white: #FFFFFF;
    --color-border: #EAECEF;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --container-width: 1200px;
    --container-padding: 1rem;
}

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

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}


/* Этап 1: Хедер */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    position: relative;
    padding-bottom: 0.25rem;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}

.header__nav-link:hover {
    color: var(--color-text-dark);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--cta {
    background-color: var(--color-primary-accent);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__nav-link--cta:hover {
    background-color: #357ABD;
    color: var(--color-white);
    transform: translateY(-2px);
}

.header__nav-link--cta:hover::after {
    display: none;
}


/* Этап 2: Футер */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    display: block;
}

.footer__tagline {
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer__list--contacts .footer__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-secondary-accent);
    flex-shrink: 0;
    margin-top: 4px;
}


/* Адаптивность */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__nav {
        /* В будущем здесь будет логика для мобильного меню */
        display: none; 
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts .footer__list-item {
       justify-content: center;
    }
}
/* Этап 3: Hero-секция */

.hero {
    padding: 5rem 0;
    background-color: var(--color-white);
    overflow: hidden; /* Чтобы анимация не выходила за пределы блока */
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero__text-content {
    text-align: center;
    max-width: 750px;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Стили для анимации заголовка */
.hero__title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Общий класс для кнопок */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-white);
    background-color: var(--color-primary-accent);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.hero__image-content {
    max-width: 500px;
    width: 100%;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
}


/* Адаптивность для Hero */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }

    .hero__container {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
    }

    .hero__text-content {
        text-align: left;
        width: 55%;
        flex-shrink: 0;
    }
    
    .hero__title {
        font-size: 3rem;
    }

    .hero__image-content {
        width: 45%;
    }
}

@media (min-width: 992px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

/* Этап 3: Секция "About" */

.about {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.about__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.about__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about__card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(26, 42, 76, 0.08);
}

.about__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #eaf2fd; /* Легкий фон для иконки */
    margin-bottom: 1.5rem;
}

.about__card-icon i {
    width: 32px;
    height: 32px;
    color: var(--color-primary-accent);
}

.about__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.about__card-text {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Адаптивность для "About" */
@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about__title {
        font-size: 2.5rem;
    }
}

/* Этап 3: Секция "Ключевые технологии" */

.tech {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.tech__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.tech__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.tech__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.tech__tabs-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tech__tab-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    background-color: transparent;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech__tab-btn:hover {
    background-color: #eaf2fd;
    color: var(--color-primary-accent);
    border-color: var(--color-primary-accent);
}

.tech__tab-btn--active {
    background-color: var(--color-primary-accent);
    color: var(--color-white);
    border-color: var(--color-primary-accent);
}

.tech__content-panel {
    display: none; /* Скрываем все панели по умолчанию */
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.5s ease;
}

.tech__content-panel--active {
    display: flex; /* Показываем активную панель */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech__panel-text {
    flex: 1;
}

.tech__panel-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tech__panel-text p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech__panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech__panel-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.tech__panel-icon {
    color: var(--color-secondary-accent);
    width: 20px;
    height: 20px;
}

.tech__panel-image {
    flex: 1;
    max-width: 450px;
}

.tech__panel-image img {
    width: 100%;
    border-radius: 16px;
}

/* Адаптивность для "Tech" */
@media (max-width: 768px) {
    .tech__content-panel {
        flex-direction: column;
        text-align: center;
    }
    
    .tech__panel-list {
        align-items: center;
    }
}

/* Этап 3: Секция "Примеры в жизни" */

.cases {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.cases__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.cases__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cases__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.cases__wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.cases__item {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.cases__item-image,
.cases__item-text {
    flex: 1;
}

.cases__item-image img {
    width: 100%;
    border-radius: 12px;
}

.cases__item-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cases__item-text p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Модификатор для реверса колонок */
.cases__item--reversed {
    flex-direction: row-reverse;
}

/* Адаптивность для "Cases" */
@media (max-width: 768px) {
    .cases__item,
    .cases__item--reversed {
        flex-direction: column;
        text-align: center;
    }
}

/* Этап 3: Секция "Будущее рядом" */

.future {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.future__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.future__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.future__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.future__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.future__accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.future__accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
}

.future__accordion-header:hover {
    color: var(--color-primary-accent);
}

.future__accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.future__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.future__accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Активное состояние */
.future__accordion-item.future__accordion-item--active .future__accordion-icon {
    transform: rotate(180deg);
}

.future__accordion-item.future__accordion-item--active .future__accordion-header {
    color: var(--color-primary-accent);
}

/* Этап 4: Секция контактов */

.contact {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.contact__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 500px;
}

.contact__form-group {
    margin-bottom: 1.5rem;
}

.contact__form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.contact__form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Стилизация чекбокса */
.contact__form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact__form-checkbox {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    margin-top: 5px;
    width: 1.25em;
    height: 1.25em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.contact__form-checkbox:checked {
    background-color: var(--color-primary-accent);
    border-color: var(--color-primary-accent);
}

.contact__form-checkbox:checked::before {
    content: '✔';
    color: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9em;
}

.contact__form-checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.contact__form-checkbox-label a {
    color: var(--color-primary-accent);
    text-decoration: underline;
}

.contact__form-btn {
    width: 100%;
}

.contact__form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
    display: none; /* Скрыто по умолчанию */
}

.contact__form-message--success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.contact__form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}


/* Адаптивность для "Contact" */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
        align-items: center;
    }
}
/* Этап 5.1: Cookie Pop-up */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--show {
    transform: translateY(0);
}

.cookie-popup__text {
    text-align: center;
    font-size: 0.9rem;
}

.cookie-popup__text a {
    color: var(--color-secondary-accent);
    text-decoration: underline;
}

.cookie-popup__btn {
    padding: 0.5rem 1.25rem;
    flex-shrink: 0;
    background-color: var(--color-primary-accent);
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        padding: 1.5rem;
    }
}


/* Этап 5.2: Стили для страниц политик */

.pages {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.pages .container {
    max-width: 800px;
}

.pages h1, .pages h2 {
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
}

.pages p, .pages li {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
}

.pages a {
    color: var(--color-primary-accent);
    font-weight: 700;
    text-decoration: underline;
}

.pages a:hover {
    color: #357ABD;
}

.pages strong {
    font-weight: 700;
}