/* FinAudita - Main Stylesheet
 * Colors:
 * - Main: Dark Blue (#0D1B2A)
 * - Accent: Azure-Orange (#FF715B)
 * - Background: Cream-Beige (#FAF3DD)
 * - Text: Graphite-Gray (#2E2E2E)
 * - Headers: Black with emboss effect
 */

/* Reset & Base Styles */
:root {
    --color-main: #0D1B2A;
    --color-accent: #FF715B;
    --color-background: #FAF3DD;
    --color-text: #2E2E2E;
    --color-heading: #000;
    --font-main: 'Arial', 'Helvetica', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: var(--color-main);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3); /* emboss effect */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-main);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-main);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
}

/* Header & Navigation */
.header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: block;
    height: 40px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    background-color: var(--color-main);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 25%;
    bottom: -10px;
    width: 50%;
    height: 3px;
    background-color: var(--color-accent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-main);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-photo {
    height: 250px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

/* Form Section */
.form-section {
    background-color: white;
    padding: 5rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Стили для элементов формы select и option */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select.form-control option {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 10px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.form-submit {
    text-align: center;
}

.form-error {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Contacts Section */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-main);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: white;
    opacity: 0.8;
}

.footer a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 1.5rem;
    transition: bottom 0.3s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-more {
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-accept {
    padding: 0.5rem 1rem;
}

/* Icons (using pseudo-elements for minimal approach) */
.icon-location::before,
.icon-phone::before,
.icon-email::before {
    display: inline-block;
    width: 1em;
    margin-right: 0.3rem;
    text-align: center;
}

.icon-location::before {
    content: '📍';
}

.icon-phone::before {
    content: '📞';
}

.icon-email::before {
    content: '✉️';
}

/* Success page styling */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

/* Legal pages styling */
.legal-page {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page ul, .legal-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .menu-toggle {
        position: absolute;
        opacity: 0;
    }
    
    .main-nav {
        position: fixed;
        top: 0;

        left: -100%;
        width: 80%;
        max-width: 300px;
      
    height: 100dvh;
      background-color: white;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .menu-toggle:checked ~ .main-nav {
        left: 0;
    }
    
    .menu-toggle:checked + .menu-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle:checked + .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
        height: 100%;
    }
    
    .main-nav ul li {
        margin-bottom: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
} 