/* --- Atris.kz Modern Design System --- */

:root {
    /* Цвета из логотипа */
    --brand-navy: #1B2B48; /* Темно-синий (основа) */
    --brand-navy-light: #2c426b;
    --brand-teal: #2AB6A6; /* Бирюзовый (акцент, как очки) */
    --brand-teal-dark: #229486;
    --brand-teal-light: #e0f2f1;

    /* Нейтральные цвета */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-teal) 0%, #4FD1C5 100%);

    /* Эффекты */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(42, 182, 166, 0.3);

    --radius-md: 12px;
    --radius-pill: 50px;
}

/* Сброс и База */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-navy);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 42px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--brand-teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--brand-teal);
}

.nav-links .btn-nav {
    padding: 10px 24px;
    background-color: var(--brand-navy);
    color: #fff;
    border-radius: var(--radius-pill);
}

.nav-links .btn-nav:hover {
    background-color: var(--brand-teal);
    color: #fff;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    color: var(--brand-navy);
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.primary-btn {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(42, 182, 166, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 182, 166, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--brand-navy);
    border: 2px solid rgba(27, 43, 72, 0.15);
}

.secondary-btn:hover {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #fff;
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
    overflow: hidden;
    position: relative;
}

/* Фоновый декоративный элемент (круг) */
.hero-section::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(42, 182, 166, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: var(--brand-teal-light);
    color: var(--brand-teal-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--brand-navy);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-navy);
}

.stat-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    position: relative;
}

.img-wrapper {
    position: relative;
    border-radius: 24px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.img-wrapper img {
    border-radius: 16px;
    width: 100%;
}

/* Плавающие карточки на Hero картинке */
.floating-card {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--brand-teal);
    font-size: 18px;
}

.card-1 {
    top: 15%;
    left: -30px;
}

.card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- Features Section --- */
.features-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.feature-item {
    padding: 40px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-teal-light);
}

/* Цветная полоска сверху карточки при наведении */
.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--brand-teal-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-teal-dark);
    font-size: 28px;
    margin-bottom: 24px;
    transition: 0.3s;
}

.feature-item:hover .icon-box {
    background: var(--brand-teal);
    color: #fff;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: var(--brand-navy);
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.about-content p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.about-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: left;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--brand-teal);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 50%;
    font-size: 14px;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 120px 0;
    background-color: var(--bg-body);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 40px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.testimonial-item p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
}

.author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: #fff;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cd-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.cd-item i {
    width: 48px;
    height: 48px;
    background: var(--brand-teal-light);
    color: var(--brand-teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: var(--bg-body);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 24px;
}

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

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: 0.3s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(42, 182, 166, 0.1);
}

.full-width {
    width: 100%;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-logo .logo-text {
    color: #fff;
    margin-bottom: 12px;
    display: block;
}

.footer-logo p {
    max-width: 300px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--brand-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

/* --- Responsive (Адаптив) --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Здесь можно добавить JS для мобильного меню */
    .mobile-menu-icon {
        display: block;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    /* Прячем плавающие элементы на мобилках */
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .btn {
        width: 100%;
    }
}
