/* static/css/style.css */

/* ========== БАЗОВЫЙ СБРОС ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 50%, #d9ecfa 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== ЦВЕТОВАЯ ГАММА ========== */
:root {
    --primary-blue: #1e3c72;
    --primary-blue-light: #2a5298;
    --primary-green: #2e7d32;
    --primary-green-light: #4caf50;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА ========== */
.header {
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e0e0e0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Логотип */
.company-label {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 120px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    display: block;
}

/* Дефолтный логотип */
.logo-shape {
    position: relative;
    width: 100px;
    height: 100px;
}

.drop-green {
    position: absolute;
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    left: 0;
    top: 12px;
}

.drop-blue {
    position: absolute;
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50% 50% 50% 0;
    transform: rotate(135deg);
    right: 0;
    bottom: 12px;
}

.letter-s {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 800;
    color: white;
    z-index: 2;
}

/* Навигация */
.nav-menu ul {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: #2e7d32;
}

/* ========== ГЛАВНЫЙ ЭКРАН ========== */
.hero {
    padding: 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0 20px;
    line-height: 1.2;
    color: #1e3c72;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

.hero-image {
    flex: 1;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-image i {
    font-size: 160px;
    color: #4caf50;
}

/* ========== УСЛУГИ ========== */
.services {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1e3c72;
    text-align: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e3c72;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ========== О КОМПАНИИ ========== */
.about-brief {
    padding: 60px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content p {
    font-size: 16px;
    color: #444;
    margin: 20px 0 25px;
    line-height: 1.6;
}

.stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 100px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #2e7d32;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.about-image {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image i {
    font-size: 140px;
    color: #1e3c72;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages {
    padding: 60px 0;
    background: rgba(255,255,255,0.5);
}

.advantage-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.advantage-icon {
    font-size: 40px;
    color: #4caf50;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e3c72;
}

.advantage-card p {
    font-size: 14px;
    color: #666;
}

/* ========== СТРАНИЦА О КОМПАНИИ ========== */
.about-page {
    padding: 40px 0;
}

.about-hero {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 18px;
    color: #2e7d32;
}

.about-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-section h2 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mission-block {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.mission-block p {
    font-size: 18px;
    font-style: italic;
    color: #1e3c72;
    font-weight: 600;
    margin: 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.principle-item {
    background: #f5f5f5;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
}

.principle-item i {
    font-size: 36px;
    color: #4caf50;
    margin-bottom: 15px;
}

.principle-item h3 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.principle-item p {
    font-size: 14px;
    color: #666;
}

/* ========== СТРАНИЦА КОНТАКТОВ ========== */
.contacts-page {
    padding: 40px 0;
}

.contacts-hero {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contacts-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-info-card h2 {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 12px;
}

.contact-item i {
    font-size: 22px;
    color: #4caf50;
}

.contact-item h3 {
    font-size: 16px;
    color: #1e3c72;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-form {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form h2 {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========== АЛЕРТЫ ========== */
.messages {
    margin-bottom: 30px;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
}

.btn-outline:hover {
    background: #2e7d32;
    color: white;
    opacity: 1;
}

/* ========== ПОДВАЛ ========== */
.footer {
    background: #1e3c72;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Логотип в подвале */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo i {
    font-size: 48px;
    color: #4caf50;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-contacts p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    flex-wrap: wrap;
}

.footer-contacts i {
    width: 24px;
    color: #4caf50;
    font-size: 18px;
}

.footer-form {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 16px;
}

.footer-form h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-form .form-group input,
.footer-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.9);
    font-size: 14px;
}

.footer-form .btn {
    width: 100%;
    background: #4caf50;
    padding: 12px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    /* Шапка */
    .header {
        padding: 10px 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-image {
        height: 70px;
        max-width: 240px;
    }
    
    .logo-shape {
        width: 60px;
        height: 60px;
    }
    
    .drop-green,
    .drop-blue {
        width: 46px;
        height: 46px;
    }
    
    .letter-s {
        font-size: 30px;
    }
    
    .nav-menu ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 15px;
        padding: 6px 0;
    }
    
    /* Герой */
    .hero {
        padding: 40px 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-image {
        min-height: 250px;
        width: 100%;
    }
    
    .hero-image i {
        font-size: 120px;
    }
    
    /* Секции */
    .services,
    .about-brief,
    .advantages {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .grid-2,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    /* Подвал */
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-logo-img {
        height: 55px;
        max-width: 180px;
    }
    
    .footer-logo i {
        font-size: 40px;
    }
    
    .footer-logo h3 {
        font-size: 20px;
    }
    
    .footer-info p {
        font-size: 14px;
    }
    
    .footer-contacts p {
        font-size: 14px;
    }
    
    .footer-form {
        padding: 25px;
    }
    
    .footer-form h4 {
        font-size: 18px;
    }
    
    /* Страницы */
    .about-hero,
    .contacts-hero {
        padding: 30px 20px;
    }
    
    .about-hero h1,
    .contacts-hero h1 {
        font-size: 32px;
    }
    
    .about-section,
    .contact-info-card,
    .contact-form {
        padding: 25px;
    }
    
    .about-section h2 {
        font-size: 24px;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Шапка */
    .logo-image {
        height: 55px;
        max-width: 200px;
    }
    
    .logo-shape {
        width: 50px;
        height: 50px;
    }
    
    .drop-green,
    .drop-blue {
        width: 38px;
        height: 38px;
        top: 6px;
        bottom: 6px;
    }
    
    .letter-s {
        font-size: 26px;
    }
    
    .nav-menu ul {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    /* Герой */
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-image i {
        font-size: 100px;
    }
    
    /* Сетки */
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Статистика */
    .stats {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    /* Подвал */
    .footer-logo-img {
        height: 45px;
        max-width: 150px;
    }
    
    .footer-logo i {
        font-size: 32px;
    }
    
    .footer-logo h3 {
        font-size: 18px;
    }
    
    .footer-form {
        padding: 20px;
    }
    
    .footer-form .form-group input,
    .footer-form .form-group textarea {
        padding: 10px 12px;
    }
    
    /* Кнопки */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Контакты */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-item i {
        margin: 0 auto;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 360px) {
    .logo-image {
        height: 50px;
        max-width: 180px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer-logo-img {
        height: 40px;
        max-width: 130px;
    }
}

/* ========== СОГЛАСИЕ НА ОБРАБОТКУ ========== */
.consent-group {
    margin: 15px 0;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
}

.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.consent-label span a {
    color: #2e7d32;
    text-decoration: underline;
}

.consent-label span a:hover {
    color: #1e3c72;
}

/* ========== СТРАНИЦА ПОЛИТИКИ ========== */
.privacy-policy-page {
    padding: 40px 0 60px;
}

.policy-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-radius: 16px;
}

.policy-hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .policy-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .policy-hero h1 {
        font-size: 24px;
    }
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .policy-content {
        padding: 25px;
    }
}

.policy-content h2 {
    color: #1e3c72;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

@media (max-width: 768px) {
    .policy-content h2 {
        font-size: 20px;
    }
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p,
.policy-content ul {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.policy-content ul {
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}