/* ====================
   GLOBAL STYLES & SETUP
   ==================== */

:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --color-dark-blue: #0D1B2A;
    --color-payne-gray: #415A77;
    --color-shadow-blue: #778DA9;
    --color-platinum: #E0E1DD;
    --color-accent: #FF8C42;

    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-platinum);
    color: var(--color-payne-gray);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-dark-blue);
    line-height: 1.2;
}

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

a:hover {
    color: var(--color-dark-blue);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}


/* ====================
   HEADER
   ==================== */
.header {
    background-color: var(--color-platinum);
    border-bottom: 1px solid #d1d3cf;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

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

.header__logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-dark-blue);
}
.header__logo:hover {
    color: var(--color-accent);
}

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

.header__nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-payne-gray);
    padding: 5px 0;
    position: relative;
}

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

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

.header__nav-link--cta {
    background-color: var(--color-accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--cta:hover {
    background-color: var(--color-dark-blue);
    color: #fff;
}
.header__nav-link--cta::after {
    display: none;
}

.header__menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark-blue);
}


/* ====================
   FOOTER
   ==================== */

.footer {
    background-color: var(--color-dark-blue);
    color: var(--color-platinum);
    padding-top: 60px;
}

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

.footer__logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 28px;
    color: var(--color-platinum);
    display: inline-block;
    margin-bottom: 15px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--color-shadow-blue);
    max-width: 200px;
}

.footer__title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.footer__link {
    color: var(--color-shadow-blue);
    font-size: 15px;
}

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

.footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer__icon {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    color: var(--color-shadow-blue);
}

.footer__address {
    font-style: normal;
    color: var(--color-shadow-blue);
    font-size: 15px;
}

.footer__bottom {
    border-top: 1px solid var(--color-payne-gray);
    padding: 20px 0;
}

.footer__bottom-container {
    text-align: center;
    font-size: 14px;
    color: var(--color-shadow-blue);
}


/* ====================
   RESPONSIVE STYLES
   ==================== */

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be handled by JS later */
    }

    .header__menu-button {
        display: block;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column--logo {
        align-items: center;
    }
    .footer__tagline {
       margin: 0 auto;
    }
    .footer__list--contact li {
        justify-content: center;
    }
}
/* ====================
   BUTTONS
   ==================== */
.button {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    background-color: var(--color-accent);
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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


/* ====================
   HERO SECTION
   ==================== */
.hero {
    position: relative;
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Важно для canvas */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f0f1ed; /* Немного темнее основного фона */
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__content {
    max-width: 550px;
    animation: fadeIn 1s ease-out forwards;
}

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

.hero__title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__visual {
    flex-shrink: 0;
    animation: scaleIn 1s ease-out forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.hero__image {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ====================
   HERO RESPONSIVE
   ==================== */

@media (max-width: 992px) {
    .hero__title {
        font-size: 44px;
    }
    .hero__image {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
        text-align: center;
    }
    .hero__container {
        flex-direction: column;
        gap: 50px;
    }
    .hero__content {
        max-width: 100%;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__image {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 36px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
    .hero__image {
        width: 250px;
        height: 250px;
    }
}

/* ====================
   REUSABLE COMPONENTS
   ==================== */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--color-payne-gray);
    line-height: 1.7;
}


/* ====================
   ABOUT SECTION
   ==================== */

.about {
    padding: 100px 0;
    background-color: var(--color-platinum);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about__card {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    border: 1px solid #d1d3cf;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(13, 27, 42, 0.1);
}

.about__card-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: #f0f1ed;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.about__card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.about__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-payne-gray);
}


/* ====================
   ABOUT RESPONSIVE
   ==================== */

@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header__title {
        font-size: 32px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
    .about {
        padding: 80px 0;
    }
}

/* ====================
   CONCEPTS SECTION
   ==================== */

.concepts {
    padding: 100px 0;
    background-color: #fff; /* Белый фон для контраста */
}

.concepts__wrapper {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 60px;
    align-items: flex-start;
}

.concepts__nav {
    position: sticky;
    top: 120px; /* header_height + отступ */
    display: flex;
    flex-direction: column;
}

.concepts__nav-item {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--color-payne-gray);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.concepts__nav-item:hover {
    background-color: #f0f1ed;
    color: var(--color-dark-blue);
}

.concepts__nav-item--active {
    color: var(--color-dark-blue);
    background-color: #e0e1dd;
    border-left-color: var(--color-accent);
}

.concepts__pane {
    display: none;
    animation: contentFadeIn 0.5s ease;
}

.concepts__pane--active {
    display: block;
}

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

.concepts__pane-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.concepts__pane-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.concepts__pane-text {
    font-size: 17px;
    line-height: 1.7;
    max-width: 650px;
}

/* ====================
   CONCEPTS RESPONSIVE
   ==================== */
@media (max-width: 992px) {
    .concepts__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .concepts__nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .concepts__nav-item {
        border-radius: 50px;
        border-left: none;
    }
    .concepts__nav-item--active {
        background-color: var(--color-accent);
        color: #fff;
    }
    .concepts__nav-item:hover {
        background-color: #f0f1ed;
        color: var(--color-dark-blue);
    }
    .concepts__nav-item--active:hover {
        background-color: var(--color-accent);
        color: #fff;
    }
    .concepts__content {
        text-align: center;
    }
    .concepts__pane-text {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .concepts {
        padding: 80px 0;
    }
    .concepts__pane-title {
        font-size: 28px;
    }
    .concepts__pane-image {
        height: 250px;
    }
}

/* ====================
   REUSABLE COMPONENTS (MODIFIER)
   ==================== */
.section-header--inverted .section-header__title {
    color: #fff;
}

.section-header--inverted .section-header__subtitle {
    color: var(--color-platinum);
}


/* ====================
   FORMATS SECTION
   ==================== */

.formats {
    padding: 100px 0;
    background-color: var(--color-dark-blue);
}

.formats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.formats__card {
    background-color: var(--color-payne-gray);
    border: 1px solid var(--color-shadow-blue);
    padding: 30px;
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.formats__card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.formats__card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.formats__card-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.formats__card-text {
    color: var(--color-platinum);
    font-size: 16px;
    line-height: 1.6;
}

/* ====================
   FORMATS RESPONSIVE
   ==================== */
@media (max-width: 992px) {
    .formats__grid {
        /* оставляем 2 колонки для планшетов */
    }
}
   
@media (max-width: 768px) {
    .formats {
        padding: 80px 0;
    }
    .formats__grid {
        grid-template-columns: 1fr;
    }
}
/* ====================
   PRINCIPLES SECTION
   ==================== */
.principles {
    padding: 100px 0;
    background-color: var(--color-platinum);
}

.principles__accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #d1d3cf;
    border-radius: 12px;
    overflow: hidden; /* Важно для скругления углов */
}

.principles__item {
    background-color: #fff;
    border-bottom: 1px solid #d1d3cf;
}

.principles__item:last-child {
    border-bottom: none;
}

.principles__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.principles__item-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-dark-blue);
    transition: color 0.3s ease;
}

.principles__item-header:hover .principles__item-title {
    color: var(--color-accent);
}

.principles__item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-payne-gray);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.principles__item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.4s ease;
}

.principles__item-text {
    padding: 0 25px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-payne-gray);
}

/* Active state */
.principles__item.principles__item--active .principles__item-icon {
    transform: rotate(180deg);
}

.principles__item.principles__item--active .principles__item-content {
    /* max-height будет установлен через JS */
    padding-bottom: 25px;
}

/* ====================
   CONTACT SECTION
   ==================== */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

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

.contact__image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
}

.contact__form-group {
    margin-bottom: 20px;
}

.contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-payne-gray);
}

.contact__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d3cf;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.contact__form-group--captcha {
    margin-top: 25px;
}

#captcha-question {
    font-weight: bold;
    color: var(--color-dark-blue);
}

.contact__form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.contact__form-group--checkbox label {
    margin-bottom: 0;
}

.contact__form-button {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
}

.contact__success-message {
    display: none; /* Скрыто по умолчанию */
    text-align: center;
    padding: 40px;
    border: 1px solid #d1d3cf;
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

.contact__success-icon {
    width: 60px;
    height: 60px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.contact__success-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact__success-text {
    font-size: 16px;
    color: var(--color-payne-gray);
}

/* ====================
   CONTACT RESPONSIVE
   ==================== */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    .contact__visual {
        display: none; /* Скрываем картинку на мобильных для экономии места */
    }
}

/* ====================
   COOKIE POP-UP
   ==================== */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-blue);
    color: var(--color-platinum);
    padding: 20px 0;
    z-index: 1001;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

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

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

.cookie-popup__text {
    font-size: 15px;
}

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 8px 25px;
    background-color: var(--color-accent);
    color: #fff;
}

.cookie-popup__button:hover {
    background-color: #fff;
    color: var(--color-dark-blue);
    border-color: #fff;
}

/* ====================
   COOKIE POP-UP RESPONSIVE
   ==================== */
@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}

/* ====================
   POLICY PAGES
   ==================== */

.pages {
    padding-top: calc(var(--header-height) + 60px); /* Отступ от "липкого" хедера */
    padding-bottom: 80px;
    background-color: #fff;
    min-height: 100vh; /* Чтобы футер всегда был внизу, даже если контента мало */
}

/* Ограничиваем ширину контента для лучшей читаемости */
.pages .container {
    max-width: 800px; 
}

.pages h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 1px solid #d1d3cf;
    padding-bottom: 20px;
}

.pages h2 {
    font-size: 28px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-payne-gray);
    margin-bottom: 20px;
}

.pages ul,
.pages ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.pages li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--color-payne-gray);
}

.pages a {
    /* Стили ссылок уже определены глобально, но можно переопределить */
    text-decoration: underline;
}
.pages a:hover {
    text-decoration: none;
}

.pages strong {
    color: var(--color-dark-blue);
    font-weight: 500;
}