/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2b2b3d;
    background: #fdfaf4;
    overflow-x: hidden;
}

a {
    color: #d94f30;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f4a259;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
    background: linear-gradient(135deg, #1f1d36 0%, #3f3351 100%);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fdfaf4;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(217, 79, 48, 0.45);
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-list a {
    color: #fdfaf4;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f4a259;
    transition: width 0.3s ease;
}

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

.nav-list a:hover {
    color: #f4a259;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #3f3351 0%, #864879 50%, #d94f30 100%);
    color: #fdfaf4;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(244, 162, 89, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(253, 250, 244, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 22px;
    font-weight: 800;
}

.hero h1 .accent {
    background: linear-gradient(90deg, #f4a259, #fdfaf4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.94;
    max-width: 560px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #f4a259;
    color: #1f1d36;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(244, 162, 89, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    color: #1f1d36;
    box-shadow: 0 12px 28px rgba(244, 162, 89, 0.55);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ========== Sections ========== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: #1f1d36;
    text-align: center;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #6b6783;
    max-width: 760px;
    margin: 0 auto 50px;
    font-size: 1.08rem;
}

/* ========== Features ========== */
.features {
    background: #fdfaf4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    padding: 36px 28px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(31, 29, 54, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(31, 29, 54, 0.14);
    border-top-color: #d94f30;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4a259, #d94f30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1f1d36;
}

.feature-card p {
    color: #6b6783;
    font-size: 0.98rem;
}

/* ========== Highlight (image + text) ========== */
.highlight {
    background: linear-gradient(135deg, #fdfaf4 0%, #fdeede 100%);
}

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

.highlight-image img {
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(31, 29, 54, 0.18);
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.highlight-text h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #1f1d36;
    font-weight: 800;
}

.highlight-text p {
    color: #4a475e;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.highlight-text .btn {
    margin-top: 12px;
}

/* ========== Contacts ========== */
.contacts {
    background: #1f1d36;
    color: #fdfaf4;
}

.contacts .section-title,
.contacts .section-subtitle {
    color: #fdfaf4;
}

.contacts .section-subtitle {
    opacity: 0.85;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.contact-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #f4a259;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p,
.contact-card a {
    font-size: 1.05rem;
    color: #fdfaf4;
    font-weight: 600;
    line-height: 1.5;
}

/* ========== Page Header (inner pages) ========== */
.page-header {
    background: linear-gradient(135deg, #3f3351 0%, #864879 100%);
    color: #fdfaf4;
    padding: 80px 0 70px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Article (text pages) ========== */
.article {
    padding: 70px 0 90px;
}

.article-content {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31, 29, 54, 0.07);
}

.article-content h2 {
    font-size: 1.55rem;
    margin: 30px 0 14px;
    color: #1f1d36;
    font-weight: 800;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p,
.article-content li {
    color: #4a475e;
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.article-content strong {
    color: #1f1d36;
}

.article-meta {
    color: #8a86a3;
    font-size: 0.92rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efeaf3;
}

/* ========== About specific ========== */
.about-photo {
    margin: 30px 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Footer ========== */
.site-footer {
    background: #14132a;
    color: #b5b2cb;
    padding: 50px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fdfaf4;
    font-size: 1.05rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 0.97rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #b5b2cb;
    font-size: 0.97rem;
}

.footer-col a:hover {
    color: #f4a259;
}

.footer-bottom {
    border-top: 1px solid #2a2748;
    padding-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    color: #8a86a3;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .hero-inner,
    .highlight-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 70px;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 32px 22px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        gap: 16px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}
