/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c1810;
    max-width: 1090px;
    margin: 0 auto;
    background-color: #f5f0e8;
}

.container {
    padding: 40px 20px;
}

/* Типография */
h1 {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #8b0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: #5c2e1a;
    border-bottom: 3px solid #c19a6b;
    padding-bottom: 15px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #8b0000, #c19a6b, #8b0000);
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #8b0000;
}

/* Блок 1: Офферный блок с ковровым узором */
.hero-section {
    background: linear-gradient(135deg, #8b0000 0%, #5c1a1a 50%, #8b0000 100%);
    min-height: 470px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 8px solid #c19a6b;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(193, 154, 107, 0.1) 35px, rgba(193, 154, 107, 0.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(193, 154, 107, 0.1) 35px, rgba(193, 154, 107, 0.1) 70px);
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(193, 154, 107, 0.5);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #f5f0e8;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-section .lead {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #f5f0e8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.7;
}

.hero-section p {
    color: #f5f0e8;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Кнопка CTA */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #c19a6b 0%, #d4af77 50%, #c19a6b 100%);
    color: #2c1810;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid #8b0000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #d4af77 0%, #e5c088 50%, #d4af77 100%);
}

/* Блок отзывов */
.reviews-section {
    background: linear-gradient(135deg, #2c1810 0%, #3d2415 100%);
    color: #f5f0e8;
    border-top: 5px solid #c19a6b;
    border-bottom: 5px solid #c19a6b;
}

.reviews-section h2 {
    color: #c19a6b;
    border-bottom-color: #8b0000;
}

.reviews-section h2::after {
    background: linear-gradient(90deg, #c19a6b, #8b0000, #c19a6b);
}

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

.review-item {
    background: rgba(193, 154, 107, 0.15);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #c19a6b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: relative;
}

.review-item::before {
    content: '❝';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3em;
    color: #c19a6b;
    opacity: 0.3;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(193, 154, 107, 0.4);
}

.review-item h3 {
    color: #c19a6b;
    margin-bottom: 12px;
    font-size: 1.3em;
}

.review-item p {
    color: #f5f0e8;
    font-style: italic;
    line-height: 1.7;
}

/* Блок специалистов */
.specialists-section {
    background: linear-gradient(135deg, #5c2e1a 0%, #7d4426 100%);
    color: #f5f0e8;
    position: relative;
}

.specialists-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(193, 154, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.specialists-section .container {
    position: relative;
    z-index: 1;
}

.specialists-section h2 {
    color: #c19a6b;
    border-bottom-color: #8b0000;
}

.specialists-section h2::after {
    background: linear-gradient(90deg, #c19a6b, #f5f0e8, #c19a6b);
}

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

.specialist-item {
    background: rgba(245, 240, 232, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 3px solid #c19a6b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.specialist-item:hover {
    transform: scale(1.05);
    border-color: #8b0000;
    background: rgba(245, 240, 232, 0.2);
}

.specialist-item h3 {
    color: #c19a6b;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.specialist-item p {
    color: #f5f0e8;
    line-height: 1.7;
}

/* Блок формы newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #c19a6b 0%, #8b7355 100%);
    color: #2c1810;
    border-top: 6px solid #8b0000;
    border-bottom: 6px solid #8b0000;
}

.newsletter-section h2 {
    color: #8b0000;
    border-bottom-color: #5c2e1a;
}

.newsletter-section h2::after {
    background: linear-gradient(90deg, #8b0000, #2c1810, #8b0000);
}

.newsletter-section p {
    text-align: center;
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #2c1810;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 3px solid #8b0000;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f5f0e8;
    color: #2c1810;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #5c2e1a;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4);
}

.submit-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #8b0000 0%, #5c1a1a 100%);
    color: #f5f0e8;
    border: 3px solid #2c1810;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #a50000 0%, #6d1f1f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
}

.submit-button:active {
    transform: translateY(0);
}

/* Блок медиа */
.media-section {
    background: linear-gradient(135deg, #f5f0e8 0%, #e5d5c0 100%);
    color: #2c1810;
    border-top: 4px solid #8b0000;
    border-bottom: 4px solid #8b0000;
    position: relative;
}

.media-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 49%, rgba(139, 0, 0, 0.05) 49%, rgba(139, 0, 0, 0.05) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(139, 0, 0, 0.05) 49%, rgba(139, 0, 0, 0.05) 51%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.3;
}

.media-section .container {
    position: relative;
    z-index: 1;
}

.media-section h2 {
    color: #8b0000;
}

.media-section p {
    font-size: 1.15em;
    line-height: 1.9;
    text-align: justify;
    color: #2c1810;
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #c19a6b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Блок продуктов */
.products-section {
    background: linear-gradient(135deg, #3d2415 0%, #2c1810 100%);
    color: #f5f0e8;
    border-top: 5px solid #c19a6b;
}

.products-section h2 {
    color: #c19a6b;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-item {
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.2) 0%, rgba(139, 0, 0, 0.1) 100%);
    padding: 30px;
    border-radius: 10px;
    border: 3px solid #c19a6b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(193, 154, 107, 0.2) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    border-color: #8b0000;
    box-shadow: 0 10px 30px rgba(193, 154, 107, 0.4);
}

.product-item:hover::before {
    top: 0;
    right: 0;
}

.product-item h3 {
    color: #c19a6b;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.product-item p {
    color: #f5f0e8;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Стили для статьи */
.finance-article {
    background: linear-gradient(135deg, #c19a6b 0%, #a87f4f 100%);
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
    border: 5px solid #8b0000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.finance-article::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px dashed #2c1810;
    border-radius: 10px;
    pointer-events: none;
}

.finance-article h2 {
    color: #8b0000;
    font-size: 2em;
    text-align: left;
    border-bottom: 3px solid #8b0000;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.finance-article h2::after {
    display: none;
}

.finance-article p {
    color: #2c1810;
    font-size: 1.1em;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 30px;
    background: rgba(245, 240, 232, 0.3);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #8b0000;
}

.finance-article p:first-of-type::first-letter {
    font-size: 3em;
    font-weight: bold;
    float: left;
    line-height: 0.8;
    margin: 5px 10px 0 0;
    color: #8b0000;
}

/* Блок оставления отзыва */
.leave-review-section {
    background: linear-gradient(135deg, #5c2e1a 0%, #7d4426 100%);
    color: #f5f0e8;
    border-top: 5px solid #c19a6b;
    border-bottom: 5px solid #c19a6b;
}

.leave-review-section h2 {
    color: #c19a6b;
}

.leave-review-section p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.review-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-form input[type="text"],
.review-form textarea {
    padding: 15px 20px;
    border: 3px solid #c19a6b;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f5f0e8;
    color: #2c1810;
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 15px rgba(193, 154, 107, 0.5);
}

.review-form textarea {
    resize: vertical;
    min-height: 150px;
}

.review-form .submit-button {
    align-self: center;
}

/* Блок контактов */
.contact-section {
    background: linear-gradient(135deg, #8b0000 0%, #5c1a1a 100%);
    color: #f5f0e8;
    border-top: 6px solid #c19a6b;
}

.contact-section h2 {
    color: #c19a6b;
}

.address {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #c19a6b;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.map-container {
    border: 5px solid #c19a6b;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
    display: block;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    color: #c19a6b;
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid #8b0000;
}

.footer p {
    font-size: 1em;
    margin: 0;
}

.footer .domainName {
    color: #f5f0e8;
    font-weight: bold;
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.7em;
        margin-bottom: 25px;
    }

    h3 {
        font-size: 1.3em;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-section .lead {
        font-size: 1.1em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1em;
        width: 100%;
        text-align: center;
    }

    .reviews-grid,
    .specialists-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        min-width: 100%;
    }

    .submit-button {
        width: 100%;
        padding: 15px 20px;
    }

    .finance-article {
        padding: 25px 20px;
    }

    .finance-article h2 {
        font-size: 1.5em;
    }

    .finance-article p {
        font-size: 1em;
        padding: 15px;
        text-indent: 20px;
    }

    .review-form {
        padding: 0 10px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
    }

    .hero-section {
        min-height: 350px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .review-item,
    .specialist-item,
    .product-item {
        padding: 20px;
    }

    .finance-article {
        padding: 20px 15px;
    }

    .finance-article p:first-of-type::first-letter {
        font-size: 2.5em;
    }
}
