/* ============================================
   ОСНОВНЫЕ СТИЛИ - Белый, Синий, Красный
   ============================================ */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

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

:root {
    --white: #ffffff;
    --blue: #0039a6;
    --blue-light: #4a7bc4;
    --blue-dark: #002b7a;
    --red: #d52b1e;
    --red-light: #e74c3c;
    --gray: #f0f2f5;
    --gray-dark: #2c3e50;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.25);
    --radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--gray);
    color: #333;
    line-height: 1.6;
}

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

/* ============================================
   ШАПКА САЙТА
   ============================================ */
.header-top {
    background: var(--blue);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-top a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.header-top a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-main {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 70px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--blue);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-text .subtitle {
    font-size: 14px;
    color: var(--red);
    font-weight: 500;
}

.header-contact {
    text-align: right;
}

.header-contact .phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
}

.header-contact .phone i {
    color: var(--red);
}

.header-contact .email {
    color: var(--gray-dark);
    font-size: 14px;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.main-nav {
    background: var(--blue-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 80%;
}

.main-nav ul li a:hover {
    background: rgba(255,255,255,0.1);
}

.main-nav ul li a.admin-link {
    background: var(--red);
    border-radius: 5px;
    margin: 5px;
}

.main-nav ul li a.admin-link:hover {
    background: #c0392b;
}

/* ============================================
   ГЛАВНЫЙ БАННЕР
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 50%, var(--red) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: #ffd700;
}

.hero p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--blue);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: white;
    color: var(--blue);
    transform: translateY(-3px);
}

.btn-red {
    display: inline-block;
    padding: 16px 40px;
    background: var(--red);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(213, 43, 30, 0.4);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(213, 43, 30, 0.5);
}

/* ============================================
   КОНТАКТЫ И КАРТА
   ============================================ */
.contacts {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--blue);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--red);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    margin-bottom: 40px;
    font-size: 18px;
}

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

.contact-card {
    background: var(--gray);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--blue);
    box-shadow: var(--shadow);
}

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

.contact-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 20px;
}

.contact-card p {
    color: var(--gray-dark);
    font-size: 16px;
}

.contact-card.red-border {
    border-top-color: var(--red);
}

/* ============================================
   КАРТА
   ============================================ */
.map-section {
    padding: 60px 0;
    background: var(--gray);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border-left: 5px solid var(--red);
}

.map-overlay strong {
    color: var(--blue);
    display: block;
    font-size: 18px;
}

.map-overlay small {
    color: var(--gray-dark);
}

/* ============================================
   НОВОСТИ
   ============================================ */
.news-section {
    padding: 60px 0;
    background: white;
}

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

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--blue);
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content .date {
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
}

.news-content h3 {
    color: var(--blue);
    margin: 10px 0;
    font-size: 20px;
}

.news-content p {
    color: #666;
    line-height: 1.8;
}

.news-content .read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

.news-content .read-more:hover {
    text-decoration: underline;
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.reviews-section {
    padding: 60px 0;
    background: var(--gray);
}

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

.review-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--blue);
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.review-item.red-border {
    border-left-color: var(--red);
}

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

.review-header .name {
    font-weight: 700;
    color: var(--blue);
    font-size: 18px;
}

.review-header .house {
    color: var(--gray-dark);
    font-size: 14px;
}

.review-rating {
    color: #f1c40f;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-item p {
    color: #555;
    line-height: 1.8;
}

.review-item .date {
    display: block;
    margin-top: 15px;
    color: #999;
    font-size: 13px;
}

/* ============================================
   ФОРМА ОТЗЫВА
   ============================================ */
.add-review {
    padding: 60px 0;
    background: white;
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* CAPTCHA */
.captcha-container {
    background: var(--gray);
    padding: 25px;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 2px solid #e0e0e0;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-label {
    font-weight: 600;
    color: var(--blue);
    font-size: 16px;
}

.captcha-question input {
    width: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(213, 43, 30, 0.4);
}

/* ============================================
   ГАЛЕРЕЯ
   ============================================ */
.gallery-section {
    padding: 60px 0;
    background: var(--gray);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 3px solid white;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 57, 166, 0.9));
    color: white;
    padding: 25px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-caption p {
    opacity: 0.9;
    font-size: 14px;
}

/* ============================================
   ПОДВАЛ
   ============================================ */
footer {
    background: var(--blue-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--red);
}

.footer-col p {
    opacity: 0.8;
    margin: 8px 0;
}

.footer-col a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   ОБЪЕМНЫЕ ЭФФЕКТЫ
   ============================================ */
.volume-card {
    position: relative;
    perspective: 1000px;
}

.volume-card .card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.volume-card:hover .card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 38px; }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .main-nav .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li a {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 18px; }
    
    .section-title { font-size: 28px; }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .map-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 16px; }
    
    .btn-primary,
    .btn-secondary,
    .btn-red {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* Стили для ссылки "Подробнее" */
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #d52b1e;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.read-more::after {
    content: ' →';
    transition: transform 0.3s;
    display: inline-block;
}

.read-more:hover {
    color: #0039a6;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Стили для страницы новости */
.news-article {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.news-article h1 {
    font-size: 32px;
    color: #0039a6;
    margin-bottom: 25px;
    line-height: 1.3;
}

.news-article .content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.news-article .content p {
    margin-bottom: 20px;
}

.news-article .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.news-article .meta .date {
    color: #d52b1e;
    font-weight: 600;
}

.news-article .meta .time {
    color: #999;
    font-size: 14px;
}

.news-article .back-link {
    display: inline-block;
    padding: 12px 30px;
    background: #0039a6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-article .back-link:hover {
    background: #002b7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 57, 166, 0.3);
}

/* Другие новости */
.other-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.other-news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.other-news-item:hover {
    transform: translateY(-5px);
}

.other-news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.other-news-item .info {
    padding: 20px;
}

.other-news-item .info .date {
    color: #d52b1e;
    font-size: 13px;
    font-weight: 600;
}

.other-news-item .info h3 {
    font-size: 18px;
    color: #0039a6;
    margin: 10px 0;
}

.other-news-item .info p {
    color: #666;
    font-size: 14px;
}

/* Адаптивность для страницы новости */
@media (max-width: 768px) {
    .news-article {
        padding: 20px;
    }
    .news-article h1 {
        font-size: 24px;
    }
    .news-article .content {
        font-size: 16px;
    }
    .other-news-grid {
        grid-template-columns: 1fr;
    }
}
/* Стили для формы отзыва с адресом */
.review-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review-form-container .form-group input,
.review-form-container .form-group textarea,
.review-form-container .form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
}

.review-form-container .form-group input:focus,
.review-form-container .form-group textarea:focus {
    outline: none;
    border-color: #0039a6;
    box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.1);
}

.review-form-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0039a6;
    font-size: 15px;
}

.review-form-container .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Адаптивность для формы */
@media (max-width: 768px) {
    .review-form-container .form-row {
        grid-template-columns: 1fr;
    }
}
