/*
Theme Name: SV Repetitor
Theme URI: https://svrepetitor.ru
Author: est-R
Description: Тема для репетитора по истории и обществознанию
Version: 1.0.0
Text Domain: svrepetitor
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@font-face {
    font-family: 'Outline-style';
    src: url('assets/fonts/outline-style.regular.ttf');
}

:root {
    --bg-dark: #FDF8F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #E8DFF7;
    --accent: #3A9D72;
    --accent-hover: #8A65D4;
    --text-main: #2C2825;
    --text-muted: #8A65D4;
    --color-border: #E8E2D9;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('assets/img/patterns/foggy-birds.png');
}

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

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* --- Header --- */
header {
    padding: 30px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    font-family: "Black Ops One", system-ui;
    font-size: -webkit-xxx-large;
    font-family: Outline-style;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 0.95;
    font-weight: 900;
    margin: 20px 0 30px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: block;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 20px;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.hero-image-wrapper {
    position: relative;
    height: 80vh;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #2a2a45;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Services Section --- */
.services,
.about {
    padding: 120px 0;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title-wrapper {
    position: relative;
}

.bg-text {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    line-height: 1;
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 12px;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    -webkit-box-shadow: 2px 2px 0px 0px #333;
    box-shadow: 2px 2px 0px 0px #333;
    -webkit-transform: translate(-2px, -2px);
    -ms-transform: translate(-2px, -2px);
    transform: translate(-2px, -2px);
    transition: all 300ms cubic-bezier(.5, 2.5, .7, .7);
    background-image: url('assets/img/patterns/cubes.png');
}

.service-card:hover {
    -webkit-box-shadow: 2px 2px 0px 0px #333;
    box-shadow: 5px 5px 0px 0px #333;
    -webkit-transform: translate(-2px, -2px);
    -ms-transform: translate(-2px, -2px);
    transform: translate(-5px, -5px);
}

.service-card.highlight {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.05);
    z-index: 2;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-image: url('assets/img/patterns/gplay.png');
}

.service-card.highlight:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-icon {
    font-size: 29px;
    margin-bottom: 30px;
    color: var(--accent);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(253, 224, 103, 0.05));
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.highlight .service-icon {
    color: var(--bg-dark);
}

.service-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.service-card.highlight .service-desc {
    color: rgba(26, 26, 46, 0.8);
}

/* --- Stats/About Section --- */
.stats-section {
    padding: 100px 0;
    background: var(--bg-card);
    border: var(--color-border) solid;
    border-width: 3px 0 3px 0;
    background-image: url('assets/img/patterns/cubes.png');
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Contact CTA Section --- */
.contact-cta {
    padding: 100px 0;
}

.cta-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: var(--color-border) solid;
}

.cta-content {
    max-width: 600px;
    z-index: 2;
}

.cta-content h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 18px;
}

.cta-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

/* --- Footer --- */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-image-wrapper {
        height: 500px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.highlight {
        transform: none;
    }

    .cta-box {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .cta-image {
        position: relative;
        width: 100%;
        height: 300px;
        mask-image: none;
        -webkit-mask-image: none;
        margin-top: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }
}