:root {
    --primary-color: #f0f5f9; /* Светло-голубой вместо белого */
    --accent-color: #386fa4; /* Синий вместо золотого */
    --secondary-color: #dbe2ef; /* Светло-голубой оттенок */
    --text-color: #133c55; /* Темно-синий для текста */
    --dark-accent: #0d2c40; /* Темно-синий для фона */
    --light-accent: #e3ebf3; /* Светлый оттенок для фона секций */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
    margin-left: 5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--light-accent);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/back.jpg') center/cover no-repeat;
    opacity: 0.2; /* Уменьшена непрозрачность фона */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-color);
}

h1 span {
    color: var(--accent-color);
    font-weight: 400;
}

.subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 20px;
    border: 1px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* About Section - НОВЫЙ ДИЗАЙН */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

h2 {
    font-size: 36px;
    font-weight: 300;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
}

.section-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ОБНОВЛЕННЫЙ БЛОК О НАС */
.about {
    background-color: var(--light-accent);
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: inherit;
    transform-origin: left bottom;
    transform: skewY(-3deg);
    z-index: 0;
}

.about-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas: 
        "image text"
        "more-text text";
    gap: 30px;
    align-items: start;
    z-index: 1;
}

.about-image {
    grid-area: image;
    height: 500px;
    width: 100%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: var(--accent-color);
    opacity: 0.1;
    top: -20px;
    right: -20px;
    z-index: -1;
}

.about-text {
    grid-area: text;
    padding: 40px 30px;
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: relative;
    border-left: 3px solid var(--accent-color);
}

.about-text::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    width: 3px;
    height: 60%;
    background-color: var(--accent-color);
    opacity: 0;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text-more {
    grid-area: more-text;
    padding: 30px;
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: relative;
    border-bottom: 3px solid var(--accent-color);
}

.about-text-more h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 24px;
}

.about-text-more ul {
    list-style: none;
    margin-bottom: 20px;
}

.about-text-more ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.about-text-more ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.about-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.05;
    z-index: 0;
}

.about-decoration:nth-child(1) {
    top: -100px;
    right: 10%;
}

.about-decoration:nth-child(2) {
    bottom: -50px;
    left: 5%;
    width: 150px;
    height: 150px;
}
/* КОНЕЦ ОБНОВЛЕННОГО БЛОКА О НАС */

/* Philosophy Section */
.philosophy {
    background-color: var(--light-accent);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.quote::before,
.quote::after {
    content: '"';
    color: var(--accent-color);
    font-size: 40px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Companions Section */
.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.companion-card {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.companion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.companion-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 44, 64, 0.7); /* Обновленный фон для инфоблока */
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(0); /* Всегда видно */
}

.companion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.companion-card:hover .companion-img {
    transform: scale(1.05);
}

.companion-name {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--primary-color);
}

.companion-desc {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: var(--dark-accent);
    color: var(--primary-color);
}

.contact h2::after {
    background-color: var(--accent-color); /* Изменен цвет подчеркивания в контактах */
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-family: inherit;
    font-size: 16px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background-color: var(--dark-accent);
    color: var(--primary-color);
    text-align: center;
    padding: 30px 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--primary-color);
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-links span {
    font-size: 20px;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Адаптив для новой секции О нас */
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "text"
            "more-text";
    }
    
    .about-image {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        height: 400px;
        margin: 0 auto;
    }

    h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 70px 0;
    }

    /* Адаптив для новой секции О нас */
    .about {
        padding: 70px 0 50px;
    }
    
    .about-text,
    .about-text-more {
        padding: 20px;
    }
    
    .about-image {
        height: 300px;
    }

    .benefit-card {
        padding: 20px;
    }

    .companion-card {
        height: 300px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }
    
    .companion-info {
        padding: 10px;
    }
    
    .companion-name {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .companion-desc {
        font-size: 12px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    /* Адаптив для новой секции О нас */
    .about-image {
        height: 250px;
        clip-path: none;
    }
    
    .about-image::after {
        display: none;
    }

    .companions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .companion-card {
        height: 250px;
    }
    
    .companion-desc {
        font-size: 11px;
    }
}

/* Services Section Styles */
  /* Новые стили для секции услуг */
  .services {
    padding: 120px 0;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background-color: var(--accent-color);
    opacity: 0.02;
    border-radius: 50%;
    z-index: 0;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.services-alternating {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-item {
    display: flex;
    margin-bottom: 60px;
    background-color: var(--light-accent);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.4s ease;
}

.service-item:hover::before {
    height: 100%;
}

.service-icon-large {
    flex: 0 0 120px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.service-details {
    flex: 1;
    padding: 35px 40px;
}

.service-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.service-details h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
}

.service-details p {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 25px;
    color: var(--text-color);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.service-tags span {
    padding: 6px 12px;
    background-color: rgba(56, 111, 164, 0.1);
    color: var(--accent-color);
    font-size: 14px;
}

.service-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
    padding-right: 25px;
}

.service-link::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.service-link:hover {
    padding-right: 30px;
}

.service-link:hover::after {
    right: -5px;
}

.services-assurance {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.assurance-content {
    background-color: var(--light-accent);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.assurance-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.assurance-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.assurance-content p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.assurance-btn {
    margin-top: 0;
}

/* Адаптивные стили */
@media (max-width: 991px) {
    .services-assurance {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {

    .service-item,
    .service-item.reverse {
        flex-direction: column;
    }

    .service-icon-large {
        height: 100px;
        flex: 0 0 100px;
    }

    .service-details {
        padding: 25px;
    }

    .assurance-content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .service-tags {
        gap: 8px;
    }

    .service-tags span {
        padding: 4px 8px;
        font-size: 12px;
    }
}