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

:root {
    --accent: #C0562A;
    --accent-light: #F4E6DF;
    --dark: #1A1A1A;
    --gray: #666;
    --light-gray: #F7F7F7;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

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

.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    height: 48px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FDF6F1 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 86, 42, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #A0451F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 86, 42, 0.3);
}

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

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

.hero-badge {
    flex-shrink: 0;
}

.badge-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--white);
    box-shadow: 0 20px 60px rgba(192, 86, 42, 0.15);
    animation: float 4s ease-in-out infinite;
}

.badge-circle span {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}

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

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--light-gray);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-lead {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.about-text p {
    font-size: 17px;
    color: #333;
    margin-bottom: 20px;
    max-width: 800px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.portfolio-img {
    height: 240px;
    overflow: hidden;
    background: var(--light-gray);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 24px 28px;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--gray);
    font-size: 15px;
}

.help-list,
.themes-list,
.facts-list {
    list-style: none;
    max-width: 800px;
}

.help-list li,
.themes-list li,
.facts-list li {
    padding: 14px 0 14px 40px;
    position: relative;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.help-list li::before,
.themes-list li::before,
.facts-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.help-note {
    margin-top: 24px;
    font-size: 15px;
    color: var(--gray);
    font-style: italic;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

blockquote {
    background: var(--white);
    padding: 28px 32px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    font-size: 17px;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    transition: transform 0.3s;
}

blockquote:hover {
    transform: translateX(6px);
}

.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 700px;
}

.contact-item {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.contact-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

a.contact-value:hover {
    text-decoration: underline;
}

.page-hero {
    padding: 60px 0 60px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FDF6F1 100%);
}

.afisha-hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #FFF8F3 0%, #F4E6DF 100%);
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.back-link:hover {
    transform: translateX(-4px);
}

.page-hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero-text {
    font-size: 18px;
    color: var(--gray);
}

.afisha-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.afisha-info-item {
    background: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(192, 86, 42, 0.08);
}

.afisha-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 6px;
}

.afisha-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.footer {
    background: var(--dark);
    color: #999;
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .page-hero-title { font-size: 32px; }
    .section-title { font-size: 28px; }

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

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

    .badge-circle {
        width: 160px;
        height: 160px;
    }

    .badge-circle span { font-size: 32px; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        gap: 24px;
    }

    .nav.open { right: 0; }

    .burger {
        display: flex;
        z-index: 110;
    }

    .burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.open span:nth-child(2) { opacity: 0; }

    .burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section { padding: 60px 0; }
    .hero { padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 24px; }
    .page-hero-title { font-size: 26px; }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}