/*
* File: style.css
* Author: AI Assistant
* Description: Stylesheet for the 'Обзор видов вкладов' website.
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
    /* Color Palette (Tetradic) */
    --primary-color: #073B4C;   /* Midnight Green Eagle Green */
    --secondary-color: #118AB2; /* Blue Sapphire */
    --accent-color-1: #FFD166;  /* Sunglow Yellow */
    --accent-color-2: #EF476F;  /* Paradise Pink */
    
    /* Text and Background Colors */
    --text-color-dark: #2c3e50;
    --text-color-light: #FFFFFF;
    --background-color: #FFFFFF;
    --section-background-alt: #F8F9FA;
    --border-color: #EAECEF;

    /* Typography */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-base: 1.6;

    /* Spacing & Sizing */
    --container-width: 1140px;
    --spacing-unit: 1rem;
    --header-height: 80px;

    /* Effects */
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition-speed: 0.3s ease-in-out;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: var(--spacing-unit); }
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover, a:focus {
    color: var(--accent-color-2);
    text-decoration: underline;
}

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

/* ---------------------------------- */
/*        Utility Classes             */
/* ---------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--spacing-unit) * 1.5);
    padding-right: calc(var(--spacing-unit) * 1.5);
}

section {
    padding-top: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 4);
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
    font-weight: 900;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    color: #6c757d;
}

.is-two-thirds {
    flex-basis: 66.66%;
    width: 66.66%;
}

/* ---------------------------------- */
/*       Global Components            */
/* ---------------------------------- */
.cta-button,
button[type="submit"] {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    text-align: center;
}

.cta-button:hover,
button[type="submit"]:hover {
    background-color: var(--accent-color-2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-color-light);
    text-decoration: none;
}

.card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

/* ---------------------------------- */
/*         Scroll Animations          */
/* ---------------------------------- */
[data-scroll-animation] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll-animation].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/*          Header / Nav              */
/* ---------------------------------- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    color: var(--secondary-color);
    text-decoration: none;
}
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: calc(var(--spacing-unit) * 2);
}

.nav-list a {
    color: var(--text-color-dark);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-2);
    transition: width var(--transition-speed);
}

.nav-list a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* ---------------------------------- */
/*           Hero Section             */
/* ---------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(7, 59, 76, 0.7), rgba(17, 138, 178, 0.5));
}

.hero-content-container {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-text-content {
    max-width: 60%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-color-light);
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 550px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-color-light);
}

.hero-section .cta-button {
    background-color: var(--accent-color-1);
    color: var(--primary-color);
}

.hero-section .cta-button:hover {
    background-color: var(--accent-color-2);
    color: var(--text-color-light);
}

/* ---------------------------------- */
/*         Asymmetrical Layouts       */
/* ---------------------------------- */
.asymmetrical-layout, .asymmetrical-layout-reverse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
}

.asymmetrical-layout > *, .asymmetrical-layout-reverse > * {
    flex-grow: 1;
}

.mission-image-block, .contact-image-block {
    position: relative;
}

.image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ---------------------------------- */
/*       Workshops/Deposits Section    */
/* ---------------------------------- */
.workshops-section {
    background-color: var(--section-background-alt);
}

.carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}

/* ---------------------------------- */
/*      Success Stories Section       */
/* ---------------------------------- */
.gallery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 2);
    align-items: start;
}

.gallery-wrapper .card {
    text-align: left;
}

.gallery-wrapper .card-content {
    align-items: flex-start;
}

.asymmetrical-item {
    margin-top: calc(var(--spacing-unit) * 4);
}

/* ---------------------------------- */
/*      Testimonials Section          */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.testimonials-section .section-title {
    color: var(--text-color-light);
}

.testimonials-carousel-wrapper {
    display: flex;
    justify-content: space-around;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.testimonial-slide {
    background: rgba(255, 255, 255, 0.1);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    max-width: 45%;
    flex-grow: 1;
}

blockquote {
    margin: 0;
    font-size: 1.1rem;
}

blockquote footer {
    margin-top: var(--spacing-unit);
    font-weight: 700;
    color: var(--accent-color-1);
}

/* ---------------------------------- */
/*      External Resources Section    */
/* ---------------------------------- */
.external-resources-section {
    background-color: var(--section-background-alt);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit);
    text-align: center;
}

.resource-link {
    display: block;
    background-color: var(--background-color);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 700;
    color: var(--secondary-color);
    transition: all var(--transition-speed);
}

.resource-link:hover {
    border-color: var(--accent-color-2);
    background-color: var(--accent-color-2);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    text-decoration: none;
}

/* ---------------------------------- */
/*           Contact Section          */
/* ---------------------------------- */
.contact-form .form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.contact-form label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) / 2);
    font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fdfdff;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    font-family: var(--font-family-body);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.2);
}

.contact-form button[type="submit"] {
    width: 100%;
}

/* ---------------------------------- */
/*               Footer               */
/* ---------------------------------- */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: calc(var(--spacing-unit) * 4);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-column {
    flex: 1 1 200px;
}

.footer-column h4 {
    color: var(--text-color-light);
    margin-bottom: var(--spacing-unit);
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: calc(var(--spacing-unit) / 2);
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-column ul a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------------------------------- */
/*     Static & Success Pages         */
/* ---------------------------------- */
.static-page-content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
}
.static-page-content .container {
    max-width: 800px;
}
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--section-background-alt);
}
.success-page h1 {
    color: var(--secondary-color);
}


/* ---------------------------------- */
/*          Responsive Design         */
/* ---------------------------------- */
@media (max-width: 992px) {
    .is-two-thirds {
        flex-basis: 100%;
        width: 100%;
    }
    .asymmetrical-layout, .asymmetrical-layout-reverse {
        flex-direction: column;
    }
    .asymmetrical-layout-reverse {
        flex-direction: column-reverse;
    }
    .mission-image-block, .contact-image-block {
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-text-content {
        max-width: 80%;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .carousel {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }
    .asymmetrical-item {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    /* Burger Menu Activation */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform var(--transition-speed);
        padding-top: calc(var(--header-height) + 2rem);
    }
    .main-nav.is-open {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    .nav-list li {
        margin: var(--spacing-unit) 0;
        width: 100%;
        text-align: center;
    }
    .nav-list a {
        font-size: 1.2rem;
    }
    .burger-menu {
        display: block;
    }
    .burger-menu.is-active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-menu.is-active .burger-line:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-section {
        text-align: center;
    }
    .hero-text-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .carousel {
        grid-template-columns: 1fr;
    }
    .testimonial-slide {
        max-width: 100%;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}