/* ========== ОСНОВНЫЕ НАСТРОЙКИ ========== */
:root {
    --primary: #6c5ce7;      /* Главный цвет (фиолетовый) */
    --primary-dark: #5b4bc4;  /* Тёмный вариант */
    --text-dark: #1e1e2f;     /* Цвет текста */
    --text-light: #4a4a68;    /* Светлый текст */
    --bg-light: #f9f9ff;      /* Фон для секций */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключаем свой шрифт */
@font-face {
    font-family: 'Bounded-Regular';
    src: url('C:/Users/User/Desktop/school_Zeta/assets/fronts') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;  /* Чтобы текст не прыгал при загрузке */
}

body {
    font-family: 'Bounded-Regular', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА ========== */
.navbar {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== КАРТОЧКИ ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.card i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ========== ГЛАВНЫЙ ЭКРАН ========== */
.hero {
    padding: 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    background: #e0d9ff;
    height: 400px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-slogan {
    margin-top: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f9f9ff 0%, #e0d9ff 100%);
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.hero-slogan-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero-slogan-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    font-style: italic;
}

.hero-slogan-author {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    text-align: center;
}

.form-message--success {
    background: #d4edda;
    color: #155724;
}

.form-message--error {
    background: #f8d7da;
    color: #721c24;
}

/* ========== ПОДВАЛ ========== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    color: #888;
    border-top: 1px solid #333;
}

/* ========== АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ ========== */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* На телефонах меню скрыто */
    }
}

/* Отдельные стили для логотипа-картинки */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;      /* Меняй ТОЛЬКО эту цифру */
    width: auto;
    display: block;
    transition: 0.3s;
}

.logo-img:hover {
    transform: scale(1.05); /* Эффект при наведении */
}

/* Стили для меню (чтобы оставалось по центру по высоте) */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1;  /* Убираем лишние отступы */
}

/* ========== РОМБЫ (комбинированный вариант) ========== */

.diamond-wrapper {
    flex: 1;
    min-width: 280px;
    display: flex;
    position: relative;
}

.diamond-card {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Делает квадрат */
    transition: all 0.3s ease;
}

.diamond-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.diamond-card:hover .diamond-card-inner {
    transform: rotate(45deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.diamond-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 85%;
    text-align: center;
    padding: 15px;
}

/* ========== КАРТОЧКИ "КАК МЫ РАБОТАЕМ" ========== */
.how-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}