/* Стили для страницы шоу-рума - ПОЛНАЯ ВЕРСИЯ */

/* Общие стили для страницы */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

main {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Герой-секция */
.showroom-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('/images/showroom-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 300;
    color: rgb(253, 212, 76);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-quote {
    background: rgba(153, 128, 0, 0.3);
    border-left: 4px solid rgb(253, 212, 76);
    padding: 25px 30px;
    max-width: 800px;
    margin: 40px auto 0;
    font-style: italic;
    font-size: 1.2rem;
    text-align: left;
}

.hero-quote p {
    margin-bottom: 15px;
}

.hero-quote p:last-child {
    margin-bottom: 0;
}

/* Секции контента */
.content-section {
    padding: 80px 0;
}



/* Заголовки секций */
.section-title {
    text-align: center;
    color: rgb(153, 128, 0);
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 300;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: rgb(139, 107, 0);
}

/* Особенности шоу-рума */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #eee;
    border-left: 4px solid rgb(153, 128, 0);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgb(153, 128, 0);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: rgb(153, 128, 0);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: rgb(153, 128, 0);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Адресный блок */
.address-block {
    display: flex;
    gap: 50px;
    align-items: start;
    margin-top: 30px;
    flex-direction: row;
    align-items: center;
    
}

.address-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid rgb(153, 128, 0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.address-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.address-icon {
    font-size: 2rem;
    color: rgb(153, 128, 0);
    min-width: 40px;
    padding-top: 5px;
}

.address-text h4 {
    color: rgb(153, 128, 0);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.address-text p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

.showroom-code {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 0;
    color: #333;
}

.code-badge {
    display: inline-block;
    background: rgb(153, 128, 0);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    margin-left: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: rgb(153, 128, 0);
    min-width: 30px;
    padding-top: 3px;
}

.contact-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: rgb(153, 128, 0);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: rgb(139, 107, 0);
    text-decoration: underline;
}

/* Карта */
.map-placeholder {
    height: 100%;
    
}

.map1 {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    border: none;
    border-radius: 8px;
}

.map-frame {
    background: linear-gradient(rgba(153, 128, 0, 0.1), rgba(153, 128, 0, 0.2));
    height: 100%;
    border-radius: 10px;
    border: 3px solid rgb(153, 128, 0);
    overflow: hidden; /* важно для iframe */
    position: relative;
}

.map-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0; /* убираем отступы */
    background: none; /* убираем фон */
    text-shadow: none; /* убираем тень */
}

.map-text i {
    display: none; /* скрываем иконку, если она мешает */
}
.map1 {
    height: 100%;
}

.map-frame {
    background: linear-gradient(rgba(153, 128, 0, 0.1), rgba(153, 128, 0, 0.2));
    height: 100%;
    border-radius: 10px;
    border: 3px solid rgb(153, 128, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Временный фон карты */
.map-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(153, 128, 0, 0.05),
            rgba(153, 128, 0, 0.05) 10px,
            rgba(139, 107, 0, 0.05) 10px,
            rgba(139, 107, 0, 0.05) 20px
        ),
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.map-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.7);
    padding: 25px 30px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    height: 100%;
}

.map-text i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgb(253, 212, 76);
}

.map-text p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Преимущества локации (аналог advantages-grid) */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.advantage-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    border-color: rgb(153, 128, 0);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.advantage-number {
    background: rgb(153, 128, 0);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.advantage-content h4 {
    color: rgb(153, 128, 0);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.advantage-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Бренды */
.brands-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.brand-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
}

.brand-item:hover {
    border-color: rgb(153, 128, 0);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.brand-logo {
    width: 150px;
    height: 100px;
    margin: 0 auto 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgb(153, 128, 0);
    font-size: 1.5rem;
}

.brand-logo.sar-sar {
    font-size: 1.8rem;
    letter-spacing: 1px;
    height: 500px;
}

.brand-logo.lzr {
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.brand-item h3 {
    color: rgb(153, 128, 0);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.brand-item p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.brand-features {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 200px;
    margin: 0 auto;
}

.brand-features li {
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.brand-features i {
    color: rgb(153, 128, 0);
    font-size: 0.9rem;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, rgb(153, 128, 0) 0%, rgb(139, 107, 0) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-top: 2px solid rgb(253, 212, 76);
    border-bottom: 2px solid rgb(253, 212, 76);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: white;
    color: rgb(153, 128, 0);
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
    font-family: inherit;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: rgb(153, 128, 0);
}

.cta-button.outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.outline:hover {
    background-color: white;
    color: rgb(153, 128, 0);
}

.cta-button i {
    font-size: 1.2rem;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.address-content,
.map-frame,
.brand-item,
.advantage-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.advantage-item:nth-child(1) { animation-delay: 0.1s; }
.advantage-item:nth-child(2) { animation-delay: 0.2s; }
.advantage-item:nth-child(3) { animation-delay: 0.3s; }
.advantage-item:nth-child(4) { animation-delay: 0.4s; }
.advantage-item:nth-child(5) { animation-delay: 0.5s; }
.advantage-item:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .address-block {
        grid-template-columns: 1fr;
        gap: 30px;
        flex-direction: column;
    }
    
    .map-placeholder {
        height: 300px;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-showcase {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .address-content {
        padding: 25px;
    }
    
    .address-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .address-icon {
        margin: 0 auto;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .brands-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .code-badge {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
    
    .showroom-code {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .showroom-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-quote {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }
    
    .advantage-number {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .feature-item,
    .brand-item,
    .address-content,
    .advantage-item {
        padding: 20px;
    }
    
    .address-content {
        padding: 20px 15px;
    }
    
    .code-badge {
        display: block;
        margin: 10px auto 0 auto;
        width: fit-content;
    }
    
    .brand-logo {
        width: 120px;
        height: 80px;
        font-size: 1.3rem;
    }
    
    .brand-logo.sar-sar {
        font-size: 1.5rem;
    }
    
    .brand-logo.lzr {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .address-icon {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-quote {
        font-size: 1rem;
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .showroom-hero {
        padding: 60px 0 40px;
        margin-bottom: 60px;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .advantages-grid {
        gap: 20px;
        margin-top: 30px;
    }
}

.Torg_mark2 {
width: 100%;
border-top: 2px solid rgb(139, 107, 0);
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;
    margin-bottom: 30px;
    align-items: center;
}

.Torg_mark2 img {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    width: 10%;
    margin-bottom: 15px;
    background-color: rgb(255, 255, 255);
    padding: 15px;
    border-radius: 10px;
    height: auto;
    align-items: center;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .address-block {
        grid-template-columns: 1fr;
        gap: 40px;
        flex-direction: column;
    }

    .address-content {
        margin-left: auto;
        margin-right: auto;
    }


    
    .map-placeholder {
        height: 350px;
         margin-left: auto;
        margin-right: auto;
    }
    
    .brand-logo.sar-sar {
        height: 400px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Ноутбуки (1025px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
    .container {
        max-width: 1100px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .brand-logo.sar-sar {
        height: 350px;
    }
}

/* Мониторы 4:3 (до 1600px) */
@media (max-width: 1600px) and (min-aspect-ratio: 4/3) {
    .hero-section {
        padding: 80px 0;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .Torg_mark2 img {
        width: 12%;
        padding: 10px;
    }
}

/* Старые ноутбуки (до 1280px) */
@media (max-width: 1280px) {
    .Torg_mark2 {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .Torg_mark2 img {
        width: 15%;
        min-width: 100px;
    }
    
    .brand-logo.sar-sar {
        height: 300px;
    }
}

/* Узкие экраны (соотношение > 16:9) */
@media (max-height: 700px) and (min-width: 1024px) {
    .showroom-hero {
        padding: 60px 0 40px;
        margin-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .map-placeholder {
        height: 250px;
    }
}
