/* ------------------- */
/* GLOBAL STYLES       */
/* ------------------- */
:root {
    --bg-color: #0D0C1D;
    --surface-color: #16152B;
    --text-color: #F0F0F0;
    --muted-text-color: #A9A9A9;
    --accent-color: #A64DFF;
    --accent-hover-color: #c084fc;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

/* ------------------- */
/* HEADER              */
/* ------------------- */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.header__logo:hover {
    color: var(--text-color);
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__menu-link {
    font-size: 16px;
    color: var(--muted-text-color);
    position: relative;
    padding: 5px 0;
}

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

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

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

.header__menu-link--cta {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header__menu-link--cta:hover {
    background-color: var(--accent-hover-color);
    color: var(--bg-color);
}

.header__menu-link--cta::after {
    display: none;
}

.header__burger-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    background-color: var(--surface-color);
    padding: 60px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.footer__logo:hover {
    color: var(--text-color);
}

.footer__tagline {
    color: var(--muted-text-color);
    font-size: 14px;
}

.footer__heading {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer__menu,
.footer__legal-list,
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__menu-link,
.footer__legal-link,
.footer__contact-link {
    color: var(--muted-text-color);
    font-size: 14px;
}

.footer__contact-item {
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 1.5;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--muted-text-color);
}

/* ------------------- */
/* RESPONSIVE STYLES   */
/* ------------------- */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be handled by JS for mobile menu */
    }
    .header__burger-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column {
        align-items: center;
    }
}

/* style.css */

/* ------------------- */
/* BUTTONS (GLOBAL)    */
/* ------------------- */
.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button--primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.button--primary:hover {
    background-color: var(--accent-hover-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.button--secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.button--secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}


/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 0;
}

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

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Адаптивный размер шрифта */
    margin-bottom: 24px;
    max-width: 14ch; /* Ограничение по ширине для лучшей читаемости */
}

/* Стили для анимации заголовка */
.hero__title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--muted-text-color);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
}

.hero__scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-down i {
    width: 24px;
    height: 24px;
    color: var(--muted-text-color);
    animation: bounce 2s infinite;
}

/* Анимация для стрелки скролла */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .button {
        width: 100%;
    }
}

/* style.css */

/* ------------------- */
/* GLOBAL SECTION STYLES */
/* ------------------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem); /* 44px */
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--muted-text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ------------------- */
/* STORIES SECTION     */
/* ------------------- */
.stories-section {
    padding: 100px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.story-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-card__image-wrapper {
    overflow: hidden;
}

.story-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-card__image {
    transform: scale(1.05);
}

.story-card__content {
    padding: 24px;
    flex-grow: 1; /* Pushes footer to the bottom */
}

.story-card__category {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-card__title {
    font-size: 1.375rem; /* 22px */
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.story-card__excerpt {
    font-size: 1rem; /* 16px */
    color: var(--muted-text-color);
    line-height: 1.6;
}

.story-card__footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.story-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-card__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.story-card__author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.story-card__author-role {
    font-size: 12px;
    color: var(--muted-text-color);
}

.story-card__read-more {
    color: var(--accent-color);
}

.story-card__read-more i {
    transition: transform 0.3s ease;
}

.story-card__read-more:hover i {
    transform: translateX(4px);
}

/* style.css */

/* ------------------- */
/* INDUSTRIES SECTION  */
/* ------------------- */
.industries-section {
    background-color: var(--surface-color);
    padding: 100px 0;
}

.industries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.industry-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Pill shape */
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1.1rem; /* 17.6px */
    font-weight: 500;
    transition: all 0.3s ease;
}

.industry-tag i {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.industry-tag:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(166, 77, 255, 0.2);
}

.industry-tag:hover i {
    color: var(--bg-color);
}

/* style.css */

/* ------------------- */
/* ROLES SECTION       */
/* ------------------- */
.roles-section {
    padding: 100px 0;
    /* This section returns to the default body background color */
}

.roles-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.role-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.role-tag i {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.role-tag:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(166, 77, 255, 0.2);
}

.role-tag:hover i {
    color: var(--bg-color);
}

/* style.css */

/* ------------------- */
/* INSIGHTS SECTION    */
/* ------------------- */
.insights-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.insights-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Featured Article Styles */
.featured-insight {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-insight__image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.featured-insight__content {
    padding: 30px;
}

.featured-insight__title {
    font-size: 1.75rem; /* 28px */
    line-height: 1.3;
    margin-bottom: 16px;
}

.featured-insight__excerpt {
    color: var(--muted-text-color);
    margin-bottom: 24px;
}

/* Insights List Styles */
.insights-list {
    display: flex;
    flex-direction: column;
}

.insight-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-item:first-child {
    padding-top: 0;
}

.insight-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.insight-item__title {
    font-size: 1.125rem; /* 18px */
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.insight-item__link:hover .insight-item__title {
    color: var(--accent-color);
}


/* Responsive styles for insights section */
@media (max-width: 992px) {
    .insights-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* style.css */

/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact-section {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info__title {
    font-size: 2rem; /* 32px */
    margin-bottom: 20px;
}

.contact-info__description {
    color: var(--muted-text-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-info__direct {
    font-size: 14px;
    color: var(--muted-text-color);
}
.contact-info__direct p {
    margin-bottom: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(166, 77, 255, 0.2);
}

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

#captcha-question {
    font-weight: 700;
    color: var(--accent-color);
}

.contact-form__submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 10px;
}

.form-status {
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.form-status--success {
    display: block;
    background-color: rgba(22, 163, 74, 0.2); /* Green-ish */
    color: #4ade80;
    border: 1px solid #22c55e;
}

.form-status--error {
    display: block;
    background-color: rgba(239, 68, 68, 0.2); /* Red-ish */
    color: #f87171;
    border: 1px solid #ef4444;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* style.css */

/* ------------------- */
/* POLICY PAGES        */
/* ------------------- */
.pages {
    padding: 80px 0;
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.pages h2 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
}

.pages p {
    color: var(--muted-text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.pages a:hover {
    color: var(--accent-hover-color);
    border-bottom-color: var(--accent-hover-color);
}

.pages ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.pages li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--muted-text-color);
}

.pages li::before {
    content: '›';
    position: absolute;
    left: 10px;
    top: 0;
    color: var(--accent-color);
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
}

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

/* style.css */

/* ------------------- */
/* COOKIE POP-UP       */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    display: none; /* Initially hidden to prevent flash on load */
}

.cookie-popup.is-visible {
    display: block;
    transform: translateY(0);
}

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    color: var(--muted-text-color);
    font-size: 14px;
}

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

.cookie-popup__btn {
    padding: 8px 20px;
    flex-shrink: 0; /* Prevents button from shrinking */
}

@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}

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

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

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

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

.form-label--checkbox a:hover {
  /* text-decoration: underline; */
}