/* ===== ИМПОРТ ШРИФТОВ ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== ШАПКА ===== */
.header {
    padding: 25px 0 20px;
    border-bottom: 2px solid #800000;
    margin-bottom: 50px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #800000 20%, #800000 80%, transparent 100%);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-link {
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}
.logo-link:hover { opacity: 0.8; }
.logo-img { width: 65px; height: auto; display: block; }

.header-center {
    flex-grow: 1;
    text-align: center;
}
.title-main {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.1;
}
.title-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #800000;
    text-transform: uppercase;
    margin-top: -2px;
}

.nav-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.nav-btn-small {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.8px;
    color: #ffffff;
    background-color: #800000;
    padding: 8px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #800000;
    text-transform: uppercase;
}
.nav-btn-small:hover {
    background-color: #ffffff;
    color: #800000;
    box-shadow: 0 2px 10px rgba(128, 0, 0, 0.15);
}

/* ===== ОБЩИЕ КНОПКИ ===== */
.btn-primary, .btn-secondary, .btn-cta {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: #800000;
    color: #ffffff;
    border-color: #800000;
}
.btn-primary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}
.btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}
.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}
.btn-cta {
    background-color: #800000;
    color: #ffffff;
    border-color: #800000;
    padding: 14px 48px;
    font-size: 16px;
}
.btn-cta:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */

/* Вступление */
.hero-section {
    padding: 40px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 60px;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.hero-description {
    font-size: 18px;
    color: #555555;
    max-width: 680px;
    margin: 0 auto 35px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Принципы */
.principles-section {
    margin-bottom: 70px;
}
.principles-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 45px;
    letter-spacing: 0.5px;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.principle-card {
    padding: 30px 25px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}
.principle-card:hover {
    border-color: #800000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}
.principle-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #800000;
    opacity: 0.5;
    margin-bottom: 12px;
    line-height: 1;
}
.principle-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.principle-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
}

/* Превью услуг */
.services-preview {
    background: #fafafa;
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 70px;
}
.services-preview-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}
.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 30px;
}
.service-preview-item {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    padding: 14px 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}
.service-preview-item:hover {
    border-color: #800000;
}
.services-preview-link { text-align: center; }
.link-arrow {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #800000;
    text-decoration: none;
    border-bottom: 1px solid #800000;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}
.link-arrow:hover { opacity: 0.7; }

/* CTA Заявка */
.cta-section {
    background: #1a1a1a;
    padding: 70px 40px;
    border-radius: 12px;
    margin-bottom: 70px;
    text-align: center;
}
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.cta-desc {
    font-size: 17px;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Карта */
.map-section { margin-bottom: 70px; }
.map-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}
.map-container iframe { width: 100%; height: 350px; display: block; border: none; }

/* Руководитель */
.boss-section {
    text-align: center;
    padding: 40px 20px 30px;
    border-top: 1px solid #e8e8e8;
    margin-bottom: 30px;
}
.boss-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}
.boss-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    margin-bottom: 18px;
}
.boss-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.boss-position {
    font-size: 16px;
    color: #777777;
}

/* Реквизиты */
.org-info {
    text-align: center;
    padding: 25px 0 10px;
    border-top: 1px solid #e8e8e8;
    font-size: 14px;
    color: #888888;
    letter-spacing: 0.3px;
}
.org-info strong { color: #1a1a1a; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .container { padding: 0 25px; }
    .title-main { font-size: 30px; letter-spacing: 4px; }
    .hero-title { font-size: 36px; }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
    .services-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .header-center { order: 2; width: 100%; margin: 5px 0; }
    .title-main { font-size: 26px; letter-spacing: 3px; }
    .title-sub { font-size: 12px; letter-spacing: 3px; }
    .nav-right { order: 3; flex-direction: row; width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid #f0f0f0; }
    .logo-link { order: 1; }
    .logo-img { width: 50px; }
    .hero-title { font-size: 30px; }
    .hero-description { font-size: 16px; }
    .principles-grid { grid-template-columns: 1fr; }
    .services-preview { padding: 40px 20px; }
    .services-preview-grid { grid-template-columns: 1fr 1fr; }
    .cta-title { font-size: 28px; }
    .btn-primary, .btn-secondary, .btn-cta { padding: 10px 24px; font-size: 14px; }
    .boss-photo { max-width: 220px; }
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .title-main { font-size: 22px; letter-spacing: 2px; }
    .title-sub { font-size: 11px; letter-spacing: 2px; }
    .hero-title { font-size: 24px; }
    .hero-description { font-size: 15px; }
    .services-preview-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 24px; }
    .map-container iframe { height: 220px; }
    .boss-photo { max-width: 180px; }
}
