* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(to right, #f9e1e1, #d9e6f2);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
}

/* Header Styles */
.header {
    width: 100%;
    background: linear-gradient(to right, #f9e1e1, #d9e6f2);
    padding: 15px 40px;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #ff4d4d;
    text-transform: uppercase;
    font-weight: 700;
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.registry-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.registry-info img {
    width: 40px;
    height: 40px;
}

.registry-info p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.registry-info p a {
    color: #666;
    text-decoration: none;
}

.registry-info p a:hover {
    text-decoration: underline;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-icon {
    font-size: 1.2rem;
    color: #333;
}

.contact-info .phone {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
}

.catalog-button {
    background: #ff4d4d;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.star-icon {
    font-size: 1rem;
}

.header-line {
    height: 2px;
    background: #ff4d4d;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
}

/* Main Content Styles */
.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
}

.section {
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: white;
    height: 300px; /* Фиксированная высота для всех блоков */
}

.section[href] {
    text-decoration: none;
    color: inherit;
}

.red {
    background: #ff4d4d;
}

.purple {
    background: #6b4e9a;
}

.teal {
    background: #4db8b8;
}

.yellow {
    background: #f7c948;
}

h1 {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1.2; /* Уменьшаем высоту строки для текста */
}

.section-image {
    max-width: 80%;
    height: auto;
    max-height: 150px; /* Ограничиваем высоту изображения */
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

/* Benefits Section */
.benefits-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 20px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefits-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
}

.benefit-icon {
    background: #ff4d4d;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.benefit-icon img {
    width: 40px;
    height: 40px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

/* Evaluation Form Section */
.evaluation-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.evaluation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-number {
    color: #ff4d4d;
    font-size: 1rem;
    font-weight: 700;
}

.required {
    color: #ff4d4d;
}

.range-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.range-value {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ff4d4d;
    border-radius: 50%;
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.contact-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-field label {
    font-size: 0.85rem;
}

.contact-field input,
.contact-field select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.contact-field input[type="file"] {
    padding: 5px;
}

.contact-field input::placeholder {
    color: #999;
}

.contact-field select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="gray" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 20px;
}

.email-hint {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.submit-button {
    background: #ff4d4d;
    border: none;
    padding: 12px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Map Section */
.map-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 40px 0;
}

.map-content {
    max-width: 50%;
}

.map-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.map-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.map-button {
    background: #ff4d4d;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
}

.map-container {
    width: 50%;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 40px 0;
}

.advantages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.advantage-item {
    text-align: center;
    max-width: 200px;
}

.advantage-icon {
    background: #ff4d4d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
}

.advantage-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.advantage-item p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.review {
    text-align: center;
}

.review h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.review-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-prev,
.carousel-next {
    background: none;
    border: 2px solid #ff4d4d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    color: #ff4d4d;
    line-height: 1;
}

.carousel-prev::before {
    content: '\2039';
}

.carousel-next::before {
    content: '\203A';
}

.review-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
}

.review-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.review-author {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Privacy Policy Section */
.privacy-policy-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.privacy-policy-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.privacy-policy-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 20px 0 10px;
    font-weight: 700;
}

.privacy-policy-section p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.privacy-policy-section ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-policy-section ul li {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.privacy-policy-section a {
    color: #ff4d4d;
    text-decoration: none;
}

.privacy-policy-section a:hover {
    text-decoration: underline;
}

.back-button {
    display: inline-block;
    background: #ff4d4d;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}

/* Footer Section */
.footer {
    background: linear-gradient(to right, #f9e1e1, #d9e6f2);
    border-top: 2px solid #ff4d4d;
    padding: 40px 0;
    width: 100%;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-logo p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-contact .phone {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom p a {
    color: #666;
    text-decoration: none;
}

.footer-bottom p a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px; /* Уменьшаем отступы для мобильных */
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 1.5rem;
    }

    .header-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .registry-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .registry-info img {
        width: 30px;
        height: 30px;
    }

    .registry-info p {
        font-size: 0.75rem;
    }

    .contact-info {
        justify-content: center;
    }

    .phone-icon {
        font-size: 1rem;
    }

    .contact-info .phone {
        font-size: 1rem;
    }

    .nav {
        justify-content: center;
    }

    .catalog-button {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .star-icon {
        font-size: 0.85rem;
    }

    .header-line {
        margin-top: 15px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .section {
        height: 250px; /* Меньшая высота для мобильных */
    }

    h1 {
        font-size: 1.5rem;
    }

    .section-image {
        max-height: 120px; /* Уменьшаем изображение на мобильных */
    }

    .benefits-section {
        padding: 20px;
    }

    .benefits-section h2 {
        font-size: 1.8rem;
    }

    .benefits-container {
        gap: 15px;
    }

    .benefit-item {
        max-width: 120px;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .benefit-icon img {
        width: 30px;
        height: 30px;
    }

    .benefit-item p {
        font-size: 0.8rem;
    }

    .evaluation-section {
        padding: 20px;
    }

    .contact-group {
        grid-template-columns: 1fr;
    }

    .map-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .map-content {
        max-width: 100%;
        text-align: center;
    }

    .map-content h2 {
        font-size: 1.8rem;
    }

    .map-container {
        width: 100%;
    }

    .reviews-section {
        padding: 20px 0;
    }

    .advantages {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .advantage-item {
        max-width: 100%;
    }

    .review h2 {
        font-size: 1.8rem;
    }

    .review-carousel {
        flex-direction: row;
        gap: 10px;
    }

    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .review-content {
        max-width: 100%;
        padding: 20px;
    }

    .privacy-policy-section {
        padding: 20px;
    }

    .privacy-policy-section h2 {
        font-size: 1.8rem;
    }

    .privacy-policy-section h3 {
        font-size: 1.3rem;
    }

    .privacy-policy-section p,
    .privacy-policy-section ul li {
        font-size: 0.9rem;
    }

    .back-button {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact .phone {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Обновлённый стиль для .back-button */
.back-button {
    display: inline-block;
    background: #ff4d4d;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white !important; /* Явно указываем цвет текста */
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    line-height: 1.5; /* Устанавливаем высоту строки для лучшей читаемости */
    text-align: center; /* Центрируем текст */
    visibility: visible; /* Убеждаемся, что текст видим */
    opacity: 1; /* Убеждаемся, что текст не скрыт прозрачностью */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .back-button {
        padding: 8px 15px;
        font-size: 0.85rem;
        color: white !important; /* Повторяем для мобильных */
    }
}