/*=============== БАЗОВЫЕ СТИЛИ ===============*/
:root {
  /* Палитра */
  --background-color: #121212;
  --container-color: #1A1A1A;
  --primary-color: #39FF14;
  --text-color: #E0E0E0;
  --text-color-light: #B0B0B0;
  --secondary-color: #333333;
  
  /* Шрифты */
  --font-body: 'Inter', sans-serif;
  --font-headings: 'Space Grotesk', sans-serif;

  --fs-h1: 2.5rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-normal: 1rem;
  --fs-small: 0.875rem;

  /* Прочее */
  --header-height: 4.5rem;
  --border-radius: 0.5rem;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media screen and (min-width: 992px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-normal: 1rem;
    --fs-small: 0.938rem;
  }
}

/* Сброс стилей */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-normal);
  background-color: var(--background-color);
  color: var(--text-color);
}

h1, h2, h3 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-color);
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

/*=============== ГЛОБАЛЬНЫЕ КЛАССЫ ===============*/
.container {
  max-width: 1120px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.main {
    overflow: hidden; /* Для анимаций */
}


/*=============== ХЕДЕР И НАВИГАЦИЯ ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}
.nav__logo:hover {
    text-shadow: 0 0 8px var(--primary-color);
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}
.nav__toggle i,
.nav__close i {
    display: block;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    padding: 6rem 2rem 4rem;
    transition: var(--transition);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 1.25rem;
  transition: var(--transition);
}
.nav__link:hover {
  color: var(--primary-color);
}

.nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

/* Показать меню */
.show-menu {
  right: 0;
}


/*=============== ФУТЕР ===============*/
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--secondary-color);
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer__group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer__logo {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__description {
    font-size: var(--fs-small);
    color: var(--text-color-light);
    max-width: 300px;
}

.footer__title {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

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

.footer__link {
    font-size: var(--fs-normal);
    color: var(--text-color-light);
    transition: var(--transition);
}
.footer__link:hover {
    color: var(--primary-color);
    padding-left: 0.25rem;
}

.footer__list--contact {
    gap: 1rem;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-color-light);
}
.footer__contact-item .footer__contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}
.footer__contact-item a {
    color: var(--text-color-light);
}
.footer__contact-item a:hover {
    color: var(--primary-color);
}

.footer__copy {
    text-align: center;
    font-size: var(--fs-small);
    color: var(--text-color-light);
    border-top: 1px solid var(--secondary-color);
    padding-top: 2rem;
    margin-top: 2rem;
}


/*=============== АДАПТИВНОСТЬ ===============*/
/* Для больших устройств */
@media screen and (min-width: 768px) {
  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    width: auto;
  }
  .nav__list {
    flex-direction: row;
    gap: 2rem;
  }
  .nav__link {
    font-size: var(--fs-normal);
  }
  .tech__container {
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    gap: 3rem;
}

.section__title--left {
    margin-bottom: 2rem;
}
}

@media screen and (min-width: 1150px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}

/*=============== КНОПКИ ===============*/
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 1rem 1.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: var(--fs-normal);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.2);
}

.button--flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button__icon {
    width: 20px;
    height: 20px;
    transition: transform .3s;
}

.button:hover .button__icon {
    transform: translateX(4px);
}


/*=============== HERO СЕКЦИЯ ===============*/
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
}

.hero__container {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.hero__data {
    text-align: center;
}

.hero__title {
    font-size: var(--fs-h1);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__animation {
    position: relative;
    justify-self: center;
    width: 300px;
    height: 300px;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 768px) {
    .cases__container {
    grid-template-columns: repeat(2, 1fr);
}
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero__data {
        text-align: left;
    }

    .hero__subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .concept__container {
    grid-template-columns: repeat(2, 1fr);
}
/* Внутри @media screen and (min-width: 768px) ... */
.contact__container {
    grid-template-columns: 1fr 1fr;
}
}

@media screen and (min-width: 992px) {
     .cases__container {
        grid-template-columns: repeat(3, 1fr);
    }

.formats__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.formats__item {
    flex-direction: column;
    text-align: center;
}
.formats__data {
    margin-top: 1rem;
}

    .section {
        padding: 6rem 0 2rem;
    }
    .section__subtitle {
        margin-bottom: 4rem;
    }
    .concept__container {
        grid-template-columns: repeat(4, 1fr);
    }

    .accordion__title {
    font-size: var(--fs-h3);
}

.accordion__description {
    font-size: var(--fs-normal);
}
}

@media screen and (min-width: 992px) {
    .hero__animation {
        width: 450px;
        height: 450px;
    }
}


.section {
  padding: 4rem 0 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.section__subtitle {
  display: block;
  font-size: var(--fs-normal);
  color: var(--text-color-light);
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}


/*=============== СЕКЦИЯ КОНЦЕПЦИЯ ===============*/
.concept__container {
    padding-top: 1rem;
}

.concept__card {
    background-color: var(--container-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
    text-align: center;
    transition: var(--transition);
    
    /* Для анимации появления */
    opacity: 0;
    transform: translateY(30px);
}

.concept__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.concept__icon {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.concept__icon i {
    width: 32px;
    height: 32px;
    color: var(--background-color);
}

.concept__title {
    font-size: var(--fs-h3);
    margin-bottom: 0.75rem;
}

.concept__description {
    color: var(--text-color-light);
}

.concept__card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px hsla(110, 100%, 54%, 0.1);
}

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


/*=============== СЕКЦИЯ ТЕХНОЛОГИИ ===============*/
.tech__description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.accordion__item {
    background-color: var(--container-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.accordion__item:last-child {
    margin-bottom: 0;
}

.accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
}

.accordion__title {
    font-size: var(--fs-normal);
    font-family: var(--font-body);
    font-weight: 500;
}

.accordion__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion__description {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-color-light);
    font-size: var(--fs-small);
    border-top: 1px solid var(--secondary-color);
    padding-top: 1.25rem;
}

/* Активное состояние аккордеона */
.accordion__item.accordion-open {
    border-color: var(--primary-color);
}

.accordion__item.accordion-open .accordion__header {
    color: var(--primary-color);
}

.accordion__item.accordion-open .accordion__icon {
    transform: rotate(180deg);
}

/*=============== СЕКЦИЯ КЕЙСЫ ===============*/
.cases__container {
    padding-top: 1rem;
}

.cases__card {
    background-color: var(--container-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
    overflow: hidden;
    transition: var(--transition);

    /* Для анимации появления */
    opacity: 0;
    transform: translateY(30px);
}

.cases__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cases__image {
    overflow: hidden;
}

.cases__img {
    width: 100%;
    transition: transform 0.4s;
}

.cases__data {
    padding: 1.5rem;
}

.cases__tag {
    display: inline-block;
    background-color: hsla(110, 100%, 54%, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--fs-small);
    font-weight: 500;
    margin-bottom: 1rem;
}

.cases__title {
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
}

.cases__description {
    color: var(--text-color-light);
}

.cases__card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px hsla(110, 100%, 54%, 0.1);
}

.cases__card:hover .cases__img {
    transform: scale(1.05);
}

/*=============== СЕКЦИЯ ФОРМАТЫ ===============*/
.formats__container {
    gap: 2.5rem;
}

.formats__item {
    display: flex;
    gap: 1.5rem;
    border: 1px solid transparent;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);

    /* Для анимации появления */
    opacity: 0;
    transform: translateY(30px);
}

.formats__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.formats__icon {
    flex-shrink: 0;
}

.formats__icon i {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    transition: var(--transition);
}

.formats__title {
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
}

.formats__description {
    color: var(--text-color-light);
}

.formats__item:hover {
    background-color: var(--container-color);
    border-color: var(--secondary-color);
}

/*=============== СЕКЦИЯ КОНТАКТЫ ===============*/
.contact__container {
    align-items: flex-start;
    gap: 3rem;
}

.contact__description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.contact__image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact__img {
    opacity: 0.8;
}

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

.contact__form-area {
    margin-bottom: 2rem;
}

.contact__form-label {
    display: block;
    font-size: var(--fs-small);
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.contact__form-input {
    width: 100%;
    background-color: var(--container-color);
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--fs-normal);
    transition: var(--transition);
}

.contact__form-input::placeholder {
    color: var(--text-color-light);
    opacity: 0.5;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px hsla(110, 100%, 54%, 0.2);
}

textarea.contact__form-input {
    resize: vertical;
    min-height: 120px;
}

#captcha-label {
    font-weight: 700;
}

.contact__message {
    font-size: var(--fs-small);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Стили для сообщений об успехе/ошибке */
.color-primary {
    color: var(--primary-color);
}
.color-error {
    color: #ff6b6b;
}

/*=============== COOKIE POP-UP ===============*/
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Скрыто по умолчанию */
    left: 0;
    width: 100%;
    background-color: var(--container-color);
    box-shadow: 0 -2px 16px hsla(0, 0%, 0%, 0.2);
    padding: 1.5rem;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show-cookie {
    bottom: 0; /* Показываем плавно */
}

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto;
}

.cookie-popup__text {
    text-align: center;
    color: var(--text-color-light);
    font-size: var(--fs-small);
}

.cookie-popup__link {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 0.75rem 1.5rem;
}

@media screen and (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row;
        justify-content: space-between;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/*=============== СТИЛИ ДЛЯ СТРАНИЦ ПОЛИТИК ===============*/
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 100vh;
}

.pages h1 {
    font-size: var(--fs-h1);
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: var(--fs-h2);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.pages p {
    line-height: 1.7;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.pages ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.pages li {
    line-height: 1.7;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.pages a:hover {
    color: var(--text-color);
    text-decoration: none;
}

.pages strong {
    color: var(--text-color);
    font-weight: 700;
}

.contact__form-group--checkbox {
  display: flex;
  align-items: flex-start; /* Чекбокс вирівнюється зверху, текст може переноситись */
  margin-top: 20px; /* Відступ зверху від попереднього поля */
  margin-bottom: 20px; /* Відступ знизу до кнопки */
}

.contact__form-checkbox { /* Новий клас для стилізації самого чекбокса */
  flex-shrink: 0; /* Запобігає стисненню чекбокса */
  width: 16px; /* Розмір чекбокса */
  height: 16px; /* Розмір чекбокса */
  margin-right: 10px; /* Відступ між чекбоксом і текстом мітки */
  margin-top: 3px; /* Невеликий відступ зверху для візуального вирівнювання з текстом */
  cursor: pointer;
}

.contact__form-label--checkbox {
  font-weight: normal; /* Звичайний шрифт для тексту мітки */
  cursor: pointer;
  line-height: 1.4; /* Міжрядковий інтервал для кращої читабельності */
  /* Переконайтеся, що тут немає зайвих відступів, які можуть порушити вирівнювання */
}

/* Стилі для посилань всередині чекбокса */
.contact__form-label--checkbox a {
  /* Ваші існуючі стилі для посилань, наприклад: */
  color: var(--primary-color); 
  /* text-decoration: none; */
}

.contact__form-label--checkbox a:hover {
  text-decoration: underline;
}