:root {
    --primary: #5B2A86;
    --primary-dark: #441F66;
    --text: #333;
    --text-light: #666;
    --bg: #F8F5F9;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(91,42,134,0.2);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text .subtitle {
    font-size: 11px;
    letter-spacing: 1px;
    color: #888;
}

.nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #555;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-header {
    padding: 12px 25px;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

.hero {
    position: relative;
    min-height: 500px;
    background-image: url('../images/bg-main.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: var(--white);
    padding: 80px 20px 120px 22vw;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(91, 42, 134, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-content h3 {
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 24px;
    margin-bottom: 15px;
}

.btn-hero {
    background: rgba(255,255,255,0.2);
    border: 1px solid var(--white);
}

.cards {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 3px solid var(--primary);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--primary);
    display: block;
    font-size: 40px;
    font-weight: 800;
}

.card h4 {
    font-family: 'Montserrat', serif;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-light);
}

.card a {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 40px;
    padding: 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.about-text,
.about-news,
.quote {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.about-text h2,
.news-header h3 {
    font-family: 'Montserrat', serif;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header a {
    font-size: 13px;
    color: var(--primary);
}

.news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.news-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.news-content .date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.news-content h5 {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text);
}

.news-content p {
    font-size: 13px;
    color: #777;
}

.quote {
    background: #f3e5f5;
    position: relative;
}

.quote-icon {
    font-size: 80px;
    color: var(--primary);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    position: relative;
    z-index: 1;
    margin-top: 30px;
    margin-bottom: 20px;
}

.quote span {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #777;
}

.page-hero {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.page-hero h1 {
    font-family: 'Montserrat', serif;
    font-size: 40px;
}

.about-full {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-full-img {
    flex: 1;
}

.about-full-img img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-full-text {
    flex: 1;
}

.about-full-text h2 {
    font-family: 'Montserrat', serif;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 32px;
}

.about-full-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer {
    background: rgb(58, 22, 86);
    color: var(--white);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

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

.logo-icon.white {
    filter: brightness(0) invert(1);
}

.logo-text.white-text .title {
    color: var(--white);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-socials h4 {
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--white);
    color: #4A1F6E;
}

.footer-copy {
    text-align: right;
    font-size: 13px;
    color: #ccc;
}

@media (max-width: 1024px) {
    .cards { grid-template-columns: 1fr 1fr; margin-top: -50px; }
    .about-preview { grid-template-columns: 1fr; }
    .about-full { flex-direction: column; }
    .footer { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-copy { text-align: left; }
}

@media (max-width: 768px) {
    .header { flex-direction: column; gap: 20px; padding: 20px; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .cards { grid-template-columns: 1fr; padding: 0 20px; margin-top: -30px; }
    .hero-content h1 { font-size: 40px; }
    .hero { padding-left: 20px; }
    .footer { grid-template-columns: 1fr; text-align: center; }
    .footer-copy { text-align: center; margin-top: 20px; }
    .footer-logo { justify-content: center; }
    .footer-contacts { align-items: center; }
    .contact-item { justify-content: center; }
}