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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    font-size: 16px;
}

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

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Хлебные крошки (Breadcrumbs) */
.breadcrumbs {
    background: #f8f9fa;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #6c757d;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .breadcrumbs li:not(:last-child)::after {
        margin: 0 0.3rem;
    }
}

/* Ссылки */
a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #34495e;
}

/* Ссылки в тексте */
.handwritten-message a {
    color: #2c3e50;
    text-decoration: underline;
    text-decoration-color: rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
}

.handwritten-message a:hover {
    color: #1a252f;
    text-decoration-color: #2c3e50;
}

/* Ссылки в подвале */
.footer-info a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-info a:hover {
    color: #ecf0f1;
    text-decoration-color: #ffffff;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background-color: #34495e;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    color: white;
}

/* Шапка */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

.navigation {
    margin-left: auto;
    margin-right: 1rem;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    flex-wrap: nowrap;
}

.navigation a {
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.3s ease;
    font-size: 0.96em;
    white-space: nowrap;
}

.navigation a:hover {
    color: #34495e;
}

/* Акцентная телефонная кнопка в меню */
.navigation .phone-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    line-height: 1;
    vertical-align: middle;
    border-radius: 999px;
    background: transparent;
    color: #2c3e50 !important;
    font-weight: 600;
    border: 1px solid #d9dde3;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.navigation .phone-menu-btn::before {
    content: "📞";
    font-size: 0.9em;
}

.navigation .phone-menu-btn:hover {
    color: #2c3e50 !important;
    background-color: #fafbfc;
    border-color: #cbd2db;
}

.navigation .phone-menu-btn:focus-visible {
    outline: 2px solid #d9dde3;
    outline-offset: 2px;
}

/* Подменю скрыты по умолчанию везде */
.submenu {
    display: none !important;
}

/* Стили подменю для десктопа */
.navigation .submenu {
    padding: 0.12rem 0 !important;
    gap: 0 !important;
}

.navigation .submenu li {
    margin: 0 !important;
    padding: 0 !important;
}

.navigation .submenu a {
    padding: 0.15rem 1rem !important;
    line-height: 1.2 !important;
    font-size: 1.02rem !important;
}

/* На десктопе inline стили переопределяют !important */
@media (min-width: 769px) {
    .submenu[style*="display: block"] {
        display: block !important;
    }
}

/* Логотип в шапке */
.header-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Главный баннер */
.hero {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

/* Блоки под шапкой */
.top-blocks {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    margin-bottom: 3rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.top-block {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    padding: 1.5rem;
    text-align: left;
    flex: 1;
    max-width: 350px;
}

.top-block:first-child {
    flex: 3;
    max-width: none;
    margin-left: 0;
}

.top-block h3 {
    color: #2c3e50;
    font-size: 1.17rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.director-message p {
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', cursive, sans-serif;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.director-message p strong {
    font-weight: 700;
    color: #1a252f;
    font-size: 1.3rem;
}

.director-message .signature {
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    text-align: right;
    color: #34495e;
    font-size: 1rem;
}



.hero-content {
    position: relative;
}



.hero-content h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Рукописное сообщение */
.handwritten-message {
    max-width: 770px;
    margin: 0 2rem 3rem 0;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    text-align: left;
    position: relative;
}

.handwritten-message p {
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', cursive, sans-serif;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.handwritten-message p strong {
    font-weight: 700;
    color: #1a252f;
    font-size: 1.3rem;
}

.handwritten-message .signature {
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    text-align: right;
    color: #34495e;
    font-size: 1rem;
}

/* Правая боковая панель */
.right-sidebar {
    position: absolute;
    right: 262px;
    top: 20.4%;
    width: 350px;
    margin-right: 0;
    height: calc(100% - 140px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sidebar-block {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-block h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.article-preview {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
    flex: 1;
}

.article-preview h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.article-preview h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.preview-link {
    color: #722F37;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.preview-link:hover {
    color: #8B4A52;
    text-decoration: underline;
}

.article-preview h4 a:hover {
    color: #1a252f;
    text-decoration: underline;
}

.article-preview p {
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}



.important-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.important-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.important-info h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.important-info p {
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.telegram-btn {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Секции */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Услуги */
.services {
    padding: 4rem 0;
    background-color: #ffffff;
}

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

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* О компании */
.about {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.advantages {
    list-style: none;
    margin-top: 1.5rem;
}

.advantages li {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.advantages li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Команда */
.team {
    padding: 4rem 0;
    background-color: #ffffff;
}

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

.team-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.team-photo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-position {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Контакты */
.contacts {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #6c757d;
    margin: 0;
}

/* Форма */
.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Telegram контакт */
.telegram-contact {
    text-align: center;
    padding: 2rem 0;
}

.telegram-contact p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.telegram-contact p:not(:first-child) {
    margin-top: 1.5rem;
}

.telegram-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    background-color: #2c3e50;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.telegram-btn:hover {
    background-color: #34495e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.telegram-btn + .telegram-btn {
    margin-top: 0.5rem;
}

/* Блок перелинковки "Смотрите также" */
.related-links {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #722F37;
}

.related-links h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.related-links li {
    margin: 0;
}

.related-links a {
    display: block;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.related-links a:hover {
    background: #007bff;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.related-links a::before {
    content: "\2192";
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .related-links {
        padding: 1.5rem;
    }
    
    .related-links ul {
        grid-template-columns: 1fr;
    }
}

/* Подвал */
.footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 3rem 0 1rem;
    width: 100%;
}

/* 2 окна над подвалом */
.info-windows-section {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    padding: 3rem 0;
    color: white;
}

.info-windows {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.info-window {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.info-window h3 {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.info-content p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.info-content p strong {
    color: #ecf0f1;
    font-weight: 600;
}

.telegram-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.telegram-link {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.telegram-link:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.telegram-channels-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.telegram-channel-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ecf0f1;
}

.telegram-channel-link:hover {
    background: #ecf0f1;
    color: #2c3e50;
    transform: translateY(-2px);
}

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

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-content p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Убрали стили для footer окон, так как теперь все окна в одной секции */

/* Стили для footer-content уже определены выше */

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
    text-align: center;
}

/* Адаптивность для средних экранов */
@media (max-width: 1240px) {
    .handwritten-message {
        margin-left: 0;
        margin-right: 20px;
        max-width: calc(100% - 20px);
    }
    
    .right-sidebar {
        position: static;
        width: 100%;
        margin-right: 0;
        margin-top: 2rem;
    }
    
    .sidebar-block {
        margin-left: 0;
        margin-right: 20px;
        max-width: calc(100% - 20px);
    }
    
    .top-blocks {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .top-block {
        max-width: 100%;
        width: 100%;
    }
    
    .top-block:first-child {
        max-width: 100%;
        margin-left: 0;
    }
    
    .four-windows-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .four-window {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    .two-windows-container {
        gap: 1.5rem;
    }
    
    .two-window {
        min-width: calc(50% - 0.75rem);
        max-width: none;
    }
}

/* Telegram блок */
.telegram-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 3rem 0;
    color: white;
}

.telegram-content {
    width: 100%;
}

.telegram-columns {
    display: flex !important;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.telegram-column {
    flex: 1;
    max-width: 300px;
    text-align: center;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.telegram-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.telegram-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.telegram-buttons,
.telegram-channels {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.telegram-btn-primary,
.telegram-btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.telegram-btn-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.telegram-btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.telegram-btn-secondary {
    background: transparent;
    color: #ecf0f1;
    border-color: #ecf0f1;
}

.telegram-btn-secondary:hover {
    background: #ecf0f1;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Стили для винного канала с видео */
.wine-channel-block {
    flex-direction: row !important;
}

.video-container {
    flex-shrink: 0;
}

.wine-video {
    max-width: 100%;
    height: auto;
}

/* Стили для раздела из 4 окон */
.four-windows-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
}

.four-window {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.four-window:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
}

.four-window h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.5rem;
    text-align: center;
}

.window-content p {
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.window-content p strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.window-content p:last-child {
    margin-bottom: 0;
}

/* Стили для раздела из 2 окон */
.two-windows-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
}

.two-window {
    flex: 1;
    min-width: 45%;
    max-width: none;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.two-window:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
}

.two-window h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.5rem;
    text-align: center;
}

.two-window .window-content p {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.two-window .window-content p strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.two-window .window-content p:last-child {
    margin-bottom: 0;
}

/* Специальный стиль для заголовка "Интеллектуальная собственность в современном мире" */
.two-window .window-content p:first-child strong {
    font-size: 0.85em;
}

/* Разделительные линии между событиями */
.event-separator {
    height: 1px;
    background-color: #e5e5e5;
    margin: 1.5rem 0;
    border: none;
}

/* Стили для событий в календаре */
.event-item {
    margin-bottom: 0.5rem;
}

.event-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
    border-left: 3px solid #2c3e50;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.event-subtitle {
    font-size: 0.9rem;
    color: #34495e;
    font-style: italic;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.event-location {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.event-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.contact-buttons,
.channel-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
    align-items: center;
}

.contact-buttons .btn,
.channel-buttons .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Бургер-меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .wine-channel-block {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .video-container {
        flex-shrink: 1;
        width: 100%;
    }
    
    .wine-video {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    
    .four-windows-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .four-window {
        min-width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .four-window h3 {
        font-size: 1rem;
    }
    
    .window-content p {
        font-size: 0.85rem;
    }
    
    .two-windows-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .two-window {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .two-window h3 {
        font-size: 1.1rem;
    }
    
    .two-window .window-content p {
        font-size: 0.9rem;
    }
    
    .contact-buttons,
    .channel-buttons {
        gap: 0.6rem;
    }
    
    .contact-buttons .btn,
    .channel-buttons .btn {
        max-width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-content > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-logo {
        display: none;
    }
    
    .header-logo .logo-image {
        height: 50px;
    }
    
    .navigation {
        display: none;
        width: 100%;
        order: 3;
        margin: 0;
        background: #fff;
        position: relative;
        z-index: 999;
    }
    
    .navigation.active {
        display: block;
    }
    
    .navigation ul.main-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .navigation .main-menu li {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
        position: relative;
        list-style: none;
    }
    
    .navigation .main-menu li:last-child {
        border-bottom: none;
    }
    
    .navigation .main-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-decoration: none !important;
        color: #2c3e50 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        z-index: 1001;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    
    .navigation .main-menu a:visited {
        color: #2c3e50;
    }
    
    .navigation .main-menu a:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }
    
    .navigation .submenu {
        position: static;
        display: none !important;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        padding: 0;
        width: 100%;
        list-style: none;
        margin: 0;
    }
    
    /* Только на мобильных активное подменю показывается */
    .navigation .submenu.active {
        display: block !important;
    }
    
    .navigation .submenu li {
        padding: 0;
        border-bottom: 1px solid #e5e5e5;
        width: 100%;
    }
    
    .navigation .submenu a {
        display: block;
        padding: 0.375rem 1rem;
        text-decoration: none;
        color: #2c3e50;
        cursor: pointer;
        pointer-events: auto;
        z-index: 1001;
        position: relative;
    }
    
    .navigation .submenu a:hover {
        background-color: #e9ecef;
        color: #007bff;
    }
    
    .navigation ul {
        gap: 0;
    }
    
    .top-blocks {
        flex-direction: column;
        gap: 1rem;
    }
    
    .top-block {
        max-width: 100%;
        padding: 1rem;
    }
    
    .top-block:first-child {
        flex-direction: column;
        gap: 1rem;
    }
    
    .top-block:first-child > div:first-child {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .top-block img {
        width: 100%;
        height: auto;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .handwritten-message {
        padding: 1.5rem;
        margin-bottom: 2rem;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        transform: none;
    }
    
    .right-sidebar {
        position: static;
        width: 100%;
        margin-right: 0;
        margin-top: 1rem;
    }
    
    .sidebar-block {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 1rem;
    }
    
    .telegram-btn {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
        width: 100%;
    }
    
    .handwritten-message p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .offer-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .offer-buttons .btn {
        width: 100%;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        width: 100%;
    }
    
    form input,
    form textarea,
    form select {
        font-size: 16px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
}


    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-columns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .telegram-columns {
        flex-direction: column;
        gap: 2rem;
    }
    
    .telegram-column {
        max-width: 100%;
    }
    
    .telegram-buttons,
    .telegram-channels {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .telegram-btn-primary,
    .telegram-btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .info-windows {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-window {
        max-width: 100%;
    }
    
    .telegram-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .telegram-channel-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
/* Адаптивность для footer окон убрана, так как окна теперь в одной секции */
    
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services,
    .about,
    .team,
    .contacts {
        padding: 2rem 0;
    }
    
    .about-stats {
        flex-direction: column;
    }
}

/* Дополнительные стили для статей */
.highlight-accent {
    color: #f8f9fa;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.highlight-box {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
}

.highlight-box h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.highlight-box p {
    margin-bottom: 15px;
    opacity: 0.95;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Стили для формы поиска товарных знаков */
.search-form {
    max-width: 100%;
}

.search-form .form-group {
    margin-bottom: 1.5rem;
}

.search-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.search-form input,
.search-form select,
.search-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.search-form input:focus,
.search-form select:focus,
.search-form textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.search-form textarea {
    resize: vertical;
    min-height: 100px;
}

.search-form select {
    cursor: pointer;
}

/* Стили для чекбокса */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.checkbox-label a {
    color: #2c3e50;
    text-decoration: underline;
    text-decoration-color: rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
}

.checkbox-label a:hover {
    color: #1a252f;
    text-decoration-color: #2c3e50;
}

/* Адаптивность для формы поиска */
@media (max-width: 768px) {
    .search-form input,
    .search-form select,
    .search-form textarea {
        padding: 10px 14px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}

/* Стили для секции формы товарного знака */
.trademark-form-section {
    background-color: #ffffff;
    padding: 4rem 0;
}

.trademark-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    padding: 2.5rem;
}

.trademark-form-wrapper h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Стили для загрузки файлов */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px dashed #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.file-upload-label:hover {
    border-color: #2c3e50;
    background-color: #ffffff;
}

.file-upload-text {
    color: #6c757d;
    font-size: 16px;
}

.file-upload-button {
    background-color: #2c3e50;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.file-upload-label:hover .file-upload-button {
    background-color: #34495e;
}

.file-name {
    margin-top: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    background-color: #e8f4f8;
    border-radius: 4px;
    display: none;
}

.file-name.active {
    display: block;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Стили для секции контактной формы */
.contact-form-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-left: 4px solid #2c3e50;
    padding: 2.5rem;
}

.contact-form-wrapper h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-description {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.required {
    color: #e74c3c;
    font-weight: 600;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Кнопка отправки в состоянии загрузки */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Адаптивность для контактной формы */
@media (max-width: 768px) {
    .trademark-form-section {
        padding: 3rem 0;
    }
    
    .trademark-form-wrapper {
        padding: 1.5rem;
    }
    
    .trademark-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .form-description {
        font-size: 1rem;
    }
    
    .file-upload-label {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .file-upload-button {
        width: 100%;
    }
}

/* ========================================
   СТИЛИ ДЛЯ ОПТИМИЗИРОВАННОЙ ГЛАВНОЙ СТРАНИЦЫ
   ======================================== */

/* Стили для logo-text (замена H1 в шапке) */
.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

/* Стили для главного заголовка страницы */
.hero-title-block {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 5px solid #2c3e50;
}

.hero-title-block h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-item {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Стили для карточек городов */
.city-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.city-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.city-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.city-card strong {
    color: #2c3e50;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .hero-title-block h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
    
    /* Адаптивность для блока с офисом */
    .top-block[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .top-block[style*="display: flex"] > div:first-child {
        flex: none !important;
        max-width: 100% !important;
    }
        gap: 1rem;
    }
    
    .feature-item {
        width: 100%;
        text-align: center;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}
