/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-dark: #5849D6;
    --primary-light: #EEEAFE;
    --primary-soft: #F4F1FE;
    --text-dark: #1A1A2E;
    --text-gray: #6B7280;
    --bg: #FFFFFF;
    --bg-soft: #F8F7FC;
    --border: #E8E5F5;
    --shadow: 0 4px 24px rgba(108, 92, 231, 0.08);
    --shadow-hover: 0 8px 32px rgba(108, 92, 231, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.accent {
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}

.btn-small {
    padding: 12px 22px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 48px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-slash {
    color: var(--primary);
    font-weight: 800;
    margin-right: 4px;
}

/* ===== Hero ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 80px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}

.hero-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: contain;
    /* Растворяем края картинки в белом фоне страницы */
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 55%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,0) 100%);
            mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 55%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,0) 100%);
}

/* ===== Section ===== */
.section {
    padding: 24px 0 48px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px 32px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(108, 92, 231, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.55;
}

/* ===== Material Cards ===== */
.material-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(108, 92, 231, 0.04);
}

.material-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.material-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.material-tag {
    display: inline-block;
    width: fit-content;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.material-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.material-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.55;
    margin-bottom: 20px;
}

.material-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.material-link:hover {
    background: var(--primary);
    transform: translate(2px, -2px);
}

.material-link:hover svg path {
    stroke: #fff;
}

.material-visual {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
    position: relative;
}

.material-visual img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Плавно растворяем края фотографии в белом фоне карточки */
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, rgba(0,0,0,0.7) 72%, rgba(0,0,0,0) 100%);
            mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, rgba(0,0,0,0.7) 72%, rgba(0,0,0,0) 100%);
}

/* ===== CTA ===== */
.cta {
    background: var(--primary-soft);
    border-radius: var(--radius);
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
}

.cta-text p {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .container { padding: 20px 20px 40px; }
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 40px;
    }
    .hero-title { font-size: 40px; }
    .hero-visual { order: -1; min-height: 360px; }
    .hero-image { max-width: 440px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .material-card { grid-template-columns: 1fr; }
    .material-visual { min-height: 260px; order: -1; }
    .material-visual img { min-height: 260px; }
    .cta {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

@media (max-width: 560px) {
    .header { padding-bottom: 24px; }
    .btn-small { padding: 10px 16px; font-size: 13px; }
    .hero-title { font-size: 32px; }
    .hero-text { font-size: 15px; }
    .hero-text br { display: none; }
    .hero-visual { min-height: 300px; }
    .hero-image { max-width: 340px; }
    .features-grid { grid-template-columns: 1fr; }
    .material-content { padding: 24px 22px; }
    .material-title { font-size: 19px; }
    .material-title br { display: none; }
    .material-text br { display: none; }
    .material-visual { min-height: 220px; }
    .material-visual img { min-height: 220px; }
    .cta-text p { font-size: 17px; }
    .cta-text p br { display: none; }
}
