/* ЕТАП 0: Глобальні змінні та скидання */
:root {
    --color-bg: #0B0E14;
    --color-bg-light: #151A23;
    --color-text: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-primary: #3B82F6; /* Яскравий синій */
    --color-primary-hover: #2563EB;
    --color-accent: #8B5CF6; /* Фіолетовий */
    
    --font-main: 'Inter', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* ЕТАП 1: ХЕДЕР */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

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

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

.logo__icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

/* Навігація */
.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: #fff;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ЕТАП 2: ФУТЕР */
.footer {
    background-color: var(--color-bg-light);
    padding: 60px 0 30px;
    margin-top: auto; /* Щоб притиснути, якщо контенту мало */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer__desc {
    margin-top: 15px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer__icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-bg-light);
        padding: 20px;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .burger {
        display: block;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer__desc {
        text-align: center;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh; /* На весь екран */
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Позаду контенту */
    opacity: 0.6; /* Щоб не заважав читати */
}

.hero__container {
    position: relative;
    z-index: 2; /* Поверх канвасу */
}

.hero__content {
    max-width: 700px;
}

/* Бейдж */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero__badge i {
    width: 16px;
    height: 16px;
}

/* Заголовок */
.hero__title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний розмір */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Підзаголовок */
.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Кнопки */
.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    color: #fff;
}

/* Інфо про ЄС */
.hero__info {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.hero__info-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero__info-text i {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

/* Анімація появи */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скролл-індикатор */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.hero__scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: block;
    position: relative;
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Адаптив для Hero */
@media (max-width: 768px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* ЗАГАЛЬНІ СТИЛІ СЕКЦІЙ */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section__header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section__subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.section__footer {
    margin-top: 50px;
}

/* СІТКА КАРТОК */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* КАРТКА */
.card {
    background: rgba(255, 255, 255, 0.03); /* Дуже легкий прозорий фон */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Ефект світіння при ховері */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card__icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-primary);
    transition: var(--transition);
}

.card:hover .card__icon-box {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.card__icon-box i {
    width: 28px;
    height: 28px;
}

.card__title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card__text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

/* Анімація появи при скролі (клас додамо через JS) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* TECHNOLOGY SECTION */
.section--dark {
    background-color: #080A0F; /* Трохи темніший фон для контрасту */
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Список переваг */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-list__item {
    display: flex;
    gap: 20px;
}

.tech-list__icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-list__info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-head);
}

.tech-list__info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.tech-list__info strong {
    color: var(--color-text);
}

/* Термінал (Code Editor) */
.tech-visual {
    position: relative;
}

.terminal {
    background: #1E1E1E;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    z-index: 2;
}

.terminal__header {
    background: #252526;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal__dot--red { background: #FF5F56; }
.terminal__dot--yellow { background: #FFBD2E; }
.terminal__dot--green { background: #27C93F; }

.terminal__title {
    margin-left: 10px;
    color: #999;
    font-size: 0.8rem;
}

.terminal__body {
    padding: 20px;
    min-height: 300px; /* Фіксована висота */
}

.terminal__body code {
    color: #d4d4d4;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap; /* Зберігає форматування */
}

/* Кольори синтаксису (для JS генерації) */
.syntax-keyword { color: #C586C0; } /* Pink */
.syntax-def { color: #569CD6; } /* Blue */
.syntax-string { color: #CE9178; } /* Orange */
.syntax-comment { color: #6A9955; } /* Green */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--color-primary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Декоративне світіння */
.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Адаптив */
@media (max-width: 992px) {
    .tech-wrapper {
        grid-template-columns: 1fr;
    }
    
    .terminal__body {
        min-height: 250px;
    }
}

/* CASES SECTION */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background: #11151E;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.case-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Теги (категорії) */
.case-card__tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-card__tag--purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-accent);
}

.case-card__tag--green {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.case-card__icon {
    color: var(--color-text-muted);
}

.case-card__title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}

.case-card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1; /* Притискає метрики до низу */
}

/* Блок з цифрами */
.case-card__metrics {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.metric__value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.metric__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Адаптив */
@media (max-width: 500px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-card {
        padding: 25px;
    }
}

/* BLOG SECTION */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    group: blog-card; /* Для іменування */
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Зображення */
.blog-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05); /* Ефект зуму */
}

.blog-card__date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Контент */
.blog-card__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: var(--transition);
}

.blog-card:hover .blog-card__title {
    color: var(--color-primary);
}

.blog-card__text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card__text strong {
    color: var(--color-text);
    font-weight: 500;
}

/* Посилання */
.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.blog-card__link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.blog-card__link:hover {
    color: var(--color-accent);
}

.blog-card__link:hover i {
    transform: translateX(5px);
}

/* CONTACT SECTION */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: #151A23;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Captcha */
.captcha-question {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    padding: 0 5px;
}

.error-text {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-input.error {
    border-color: #ef4444;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1.4;
}

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

/* Submit Button Loading State */
.btn--block {
    width: 100%;
}

.btn--submit {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn--submit.loading .btn-text {
    display: none;
}

.btn--submit.loading .btn-loader {
    display: block;
}

/* Success Message */
.success-message {
    display: none; /* Сховано за замовчуванням */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 300px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: #10B981;
    margin-bottom: 20px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-message h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(21, 26, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(150%); /* Сховано */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cookie-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cookie-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cookie-content a {
    color: #fff;
    text-decoration: underline;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    align-self: flex-end;
}

/* --- POLICY PAGES STYLING (Етап 5.2) --- */
/* Стилі для .container всередині section.pages */
.pages {
    padding: 120px 0 60px; /* Відступ зверху для хедера */
    min-height: 80vh;
}

.pages .container {
    background: #151A23;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pages h1 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.pages h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--color-primary);
}

.pages p {
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.pages li {
    margin-bottom: 8px;
}

.pages strong {
    color: #fff;
}

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

.pages a:hover {
    text-decoration: none;
}

/* Адаптив для форми */
@media (max-width: 480px) {
    .contact-form {
        padding: 25px;
    }
    
    .pages .container {
        padding: 20px;
    }
    
    .pages h1 {
        font-size: 1.8rem;
    }
}