/* style.css */

/* --- Переменные CSS для легкой настройки цветов и теней --- */
:root {
    --primary-color: #2c3e50; /* Темно-синий/серый для заголовков и акцентов */
    --secondary-color: #3498db; /* Ярко-синий для кнопок и ссылок */
    --accent-color: #27ae60; /* Зеленый акцент для выделения */
    --accent-color-rgb: 39, 174, 96; /* RGB-версия акцентного цвета для полупрозрачности */

    --primary-text-color: #34495e; /* Основной текст */
    --secondary-text-color: #7f8c8d; /* Второстепенный текст */
    --text-light: #ecf0f1; /* Светлый текст на темном фоне */
    --text-dark: #2c3e50; /* Темный текст для заголовков */

    --background-light: #f4f7f6; /* Светлый фон секций */
    --background-white: #ffffff; /* Белый фон для карточек */
    --border-color: #e0e0e0; /* Светлая граница */
    --shadow-light: 0 5px 20px rgba(0,0,0,0.08); /* Легкая тень */
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.12); /* Средняя тень */

    --section-padding-small: 40px 0;
    --section-padding-medium: 70px 0;
    --section-padding-large: 100px 0;

    --container-padding: 20px; /* Общий отступ для контейнеров */
    --light-green-bg: #e6f7e8; /* Светлый зеленый фон для секций hero и related */
    --light-yellow-bg: #fffbe6; /* Светлый желтый фон для примечаний */
}

/* --- Общие стили для всего сайта --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--primary-text-color);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content-new {
    min-height: calc(100vh - 120px); /* Примерная высота, чтобы футер был внизу */
    flex-grow: 1; /* Позволяет main-content занимать все доступное пространство */
}

.section-container-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding); /* Используем переменную */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
    color: var(--secondary-text-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Кнопки --- */
.btn-primary-new, .btn-secondary-new, .submit-button { /* Добавлен .submit-button */
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05em;
    border: 2px solid transparent;
}

.btn-primary-new, .submit-button { /* Добавлен .submit-button */
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-primary-new:hover, .submit-button:hover { /* Добавлен .submit-button */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-secondary-new {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary-new:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.large-btn-new {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* --- Заголовки секций --- */
.text-center-new {
    text-align: center;
}

.section-title-new {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title-new::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-description-new {
    font-size: 1.15em;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* --- Шапка сайта (Header) --- */
.site-header-new {
    background-color: var(--background-white);
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo-new {
    display: flex;
    align-items: center;
    font-size: 1.9em;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.logo-new img {
    height: 45px;
    margin-right: 12px;
}

.main-nav-new ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav-new a {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav-new a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav-new a:hover::after,
.main-nav-new a.active::after {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu-toggle-new {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

.menu-icon-new {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon-new::before,
.menu-icon-new::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-icon-new::before {
    top: -9px;
}

.menu-icon-new::after {
    top: 9px;
}

.main-nav-new ul.active {
    display: flex;
}

.main-nav-new.active .menu-icon-new {
    background-color: transparent;
}

.main-nav-new.active .menu-icon-new::before {
    transform: translateY(9px) rotate(45deg);
}

.main-nav-new.active .menu-icon-new::after {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Hero Section (для главной) --- */
.hero-section-new {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('images/hero-bg-new.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: var(--section-padding-large) var(--container-padding);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title-new {
    font-size: 4.2em;
    margin-bottom: 25px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.hero-subtitle-new {
    font-size: 1.5em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.hero-buttons-new {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* --- Latest Tips Section --- */
.latest-tips-section-new {
    padding: var(--section-padding-large) 0;
    background-color: var(--background-light);
    padding-bottom: 20px;
}

.tips-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tip-card-new {
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tip-card-new:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.tip-card-new.featured-card-new {
    grid-column: span 2; /* Featured card spans two columns on wider screens */
}

.tip-card-new.featured-card-new .tip-card-image-new {
    height: 300px; /* Larger image for featured card */
}

.tip-card-image-new {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.tip-card-body-new {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tip-card-category-new {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 6px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 600;
}

.tip-card-body-new h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.tip-card-body-new h3 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.tip-card-body-new h3 a:hover {
    color: var(--secondary-color);
}

.tip-card-body-new p {
    font-size: 1em;
    color: var(--secondary-text-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more-new {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-block;
    margin-top: auto;
}

.read-more-new:hover {
    color: var(--primary-color);
}

.view-all-link-new {
    margin-top: 60px;
}

/* --- Popular Tips Section (Horizontal Scroll) --- */
.popular-tips-section-new {
    padding: var(--section-padding-medium) 0;
    background-color: var(--background-white);
}

.popular-articles-scroll-new {
    display: flex;
    overflow-x: auto; /* Позволяет горизонтальную прокрутку */
    -webkit-overflow-scrolling: touch; /* Улучшает прокрутку на iOS */
    padding-bottom: 20px; /* Отступ для скроллбара */
    margin-top: 50px;
    gap: 25px;
}

.popular-articles-scroll-new::-webkit-scrollbar {
    height: 8px;
}

.popular-articles-scroll-new::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 10px;
}

.popular-articles-scroll-new::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.popular-articles-scroll-new::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text-color);
}


.popular-tip-card-new {
    flex: 0 0 auto; /* Не сжимать и не растягивать */
    width: 280px; /* Фиксированная ширина карточки */
    background-color: var(--background-white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.popular-tip-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.popular-tip-card-new a {
    display: block;
    color: var(--text-dark);
}

.popular-tip-card-new img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.popular-tip-card-new .card-info-new {
    padding: 20px;
}

.popular-tip-card-new .card-info-new h4 {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.popular-tip-card-new .card-info-new .card-category-new {
    font-size: 0.85em;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    font-weight: 500;
}

/* --- Call to Action Section --- */
.call-to-action-new {
    background: linear-gradient(rgba(44,62,80,0.85), rgba(44,62,80,0.85)), url('images/cta-bg-new.jpg') no-repeat center center/cover;
    color: #fff;
    padding: var(--section-padding-large) var(--container-padding);
    text-align: center;
}

.call-to-action-new h2 {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 25px;
}

.call-to-action-new p {
    font-size: 1.4em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

/* --- Newsletter Section --- */
.newsletter-section-new {
    background-color: var(--background-light);
    padding: var(--section-padding-medium) var(--container-padding);
}

.newsletter-section-new h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.newsletter-section-new p {
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--secondary-text-color);
}

.newsletter-form-new {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form-new input[type="email"] {
    flex-grow: 1;
    padding: 16px 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.05em;
    outline: none;
    background-color: var(--background-white);
}

.newsletter-form-new button {
    padding: 16px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form-new button:hover {
    background-color: var(--accent-color); /* Изменено на accent-color */
}

/* --- Footer --- */
.site-footer-new {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 0;
    font-size: 0.95em;
}

.footer-inner-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-nav-new ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.footer-nav-new a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-nav-new a:hover {
    color: var(--secondary-color);
}


/* --- Article Detail Section (retained from previous design, adapt if needed) --- */
/* Эти стили в основном перекрываются и уточняются более новыми классами ниже */
.article-detail-section-home {
    padding: var(--section-padding-medium);
    background-color: var(--background-light);
}

.article-content-home {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.article-main-image-home {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-category-home {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.article-content-home h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.article-intro-home {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-dark); /* Изменено с text-light на text-dark для читаемости */
    margin-bottom: 40px;
    font-weight: 400;
}

.article-content-home h2 {
    font-size: 1.9em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content-home h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-content-home p {
    margin-bottom: 1.2em;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--primary-text-color); /* Изменено с text-light на primary-text-color */
}

.article-content-home ul,
.article-content-home ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
    color: var(--primary-text-color); /* Изменено с text-light на primary-text-color */
}

.article-content-home ul li,
.article-content-home ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content-home strong {
    color: var(--primary-color);
}

.back-to-tips-home {
    margin-top: 50px;
    text-align: center;
}

.back-to-tips-home a {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-tips-home a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Description text on tips.html */
.description-text-home {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    font-size: 1.1em;
    color: var(--secondary-text-color); /* Уточнение цвета */
}

/* --- Общие стили для заголовков страниц (tips.html, categories.html) --- */
.page-hero-section {
    padding: 80px 0;
    background-color: #daf0ff;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero-section .page-title {
    font-size: 2.8em;
    color: var(--text-dark); /* Изменено на text-dark */
    margin-bottom: 20px;
}

.page-hero-section .page-description {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Стили для секции списка всех советов (tips.html) */
.tips-list-section {
    padding: var(--section-padding-large);
}

/* Стили для сетки категорий (categories.html) */
.categories-list-section {
    padding: var(--section-padding-large);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-card .category-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-card .category-info h3 {
    font-size: 1.5em;
    color: var(--text-dark); /* Изменено на text-dark */
    margin-top: 0;
    margin-bottom: 10px;
}

.category-card .category-info p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
    line-height: 1.5;
}

/* --- Стили для страницы отдельной статьи (article page) --- */

.article-hero-section {
    padding: 60px 0 40px;
    background-color: #daf0ff;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.article-hero-section .section-container-new {
    max-width: 900px;
}

.article-category-hero {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 5px;
}

.article-title-hero {
    font-size: 3em;
    color: var(--text-dark); /* Изменено на text-dark */
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-description-hero {
    font-size: 1.2em;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.article-meta-hero {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

.article-meta-hero span {
    margin: 0 10px;
    display: inline-block;
}

.article-hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content-section {
    padding: 0 var(--container-padding);
    margin-bottom: 60px;
}

.article-narrow {
    max-width: 780px;
    margin: 0 auto;
}

.article-content-section h2 {
    font-size: 2.2em;
    color: var(--text-dark); /* Изменено на text-dark */
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.article-content-section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.article-content-section ul,
.article-content-section ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.article-content-section ul li,
.article-content-section ol li {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.article-content-section strong, .article-content-section .bold-text {
    font-weight: 700;
}

.article-content-section .note {
    background-color: var(--light-yellow-bg);
    border-left: 5px solid var(--accent-color);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 5px;
    font-style: italic;
    color: var(--secondary-text-color);
}

.article-content-section .article-content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin: 30px auto;
    display: block;
}

/* --- Стили для секции "Похожие статьи" --- */
.related-tips-section {
    padding: 40px 0;
    background-color: #daf0ff;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.related-tips-section h2 {
    font-size: 2.5em;
    color: var(--text-dark); /* Изменено на text-dark */
    margin-bottom: 40px;
}

.related-tips-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Стили для страницы "О нас" (about.html) --- */
.about-hero-section {
    padding: 60px 0 40px;
    background-color: #daf0ff;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.about-title { /* Используем существующий стиль article-title-hero, но можно переопределить */
    font-size: 3em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-subtitle { /* Используем существующий стиль article-description-hero, но можно переопределить */
    font-size: 1.2em;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.about-hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-content-section {
    padding: var(--section-padding-medium) var(--container-padding);
}

.about-content-section h2 {
    font-size: 2.2em;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.about-content-section ul {
    list-style: disc; /* Возвращаем стандартные маркеры для списка */
    padding-left: 30px;
    margin-bottom: 20px;
}

.about-content-section ul li {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.about-content-section hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 40px auto;
    width: 80%; /* Делаем линию уже */
}


/* --- Стили для страницы "Контакты" (contact.html) --- */
.contact-hero-section {
    padding: 60px 0 40px;
    background-color: #daf0ff;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.contact-title {
    font-size: 3em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 1.2em;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.contact-hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-section {
    padding: var(--section-padding-medium) var(--container-padding);
}

.contact-form {
    background-color: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    max-width: 700px; /* Ограничиваем ширину формы */
    margin: 40px auto; /* Центрируем форму */
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1.05em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--primary-text-color);
    background-color: var(--background-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Разрешаем изменение размера только по вертикали */
    min-height: 120px;
}

.submit-button {
    width: 100%;
    /* Стили уже определены в .btn-primary-new, .submit-button */
}

.contact-email {
    font-size: 1.1em;
    text-align: center;
    margin-top: 30px;
}
.contact-email a {
    font-weight: 600;
}


/* --- Адаптивность --- */
@media (max-width: 992px) {
    .header-inner-new {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav-new {
        width: 100%;
        margin-top: 15px;
        position: relative;
    }

    .main-nav-new ul {
        flex-direction: column;
        gap: 10px;
        display: none;
        width: 100%;
        background-color: var(--background-white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        padding: 10px 0;
        border-radius: 8px;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }

    .main-nav-new ul li {
        text-align: center;
        width: 100%;
    }

    .main-nav-new ul li a {
        display: block;
        padding: 10px 0;
    }

    .mobile-menu-toggle-new {
        display: block;
        position: absolute;
        right: var(--container-padding); /* Используем переменную */
        top: 15px;
    }

    .hero-title-new {
        font-size: 3em;
    }

    .hero-subtitle-new {
        font-size: 1.2em;
    }

    .hero-buttons-new {
        flex-direction: column;
        gap: 15px;
    }

    .tip-card-new.featured-card-new {
        grid-column: span 1; /* Featured card no longer spans two columns on smaller screens */
    }

    .tip-card-new.featured-card-new .tip-card-image-new {
        height: 250px; /* Adjust height for smaller screens */
    }

    .newsletter-form-new {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form-new input[type="email"],
    .newsletter-form-new button {
        width: 100%;
    }

    .footer-inner-new {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-nav-new ul {
        flex-direction: column;
        gap: 10px;
    }

    .popular-articles-scroll-new {
        padding-left: var(--container-padding); /* Ensure padding on scrollable area */
        padding-right: var(--container-padding);
    }

    /* Адаптивность для about/contact hero секций */
    .about-title, .contact-title {
        font-size: 2.5em;
    }
    .about-subtitle, .contact-subtitle {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .section-title-new {
        font-size: 2.5em;
    }

    .section-description-new {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .hero-title-new {
        font-size: 2.5em;
    }

    .hero-subtitle-new {
        font-size: 1em;
    }

    .call-to-action-new h2 {
        font-size: 2.5em;
    }

    .call-to-action-new p {
        font-size: 1.1em;
    }

    .latest-tips-section-new,
    .popular-tips-section-new,
    .call-to-action-new,
    .newsletter-section-new {
        padding: var(--section-padding-small) var(--container-padding);
    }

    .tip-card-new-body h3 {
        font-size: 1.4em;
    }

    .popular-tip-card-new {
        width: 250px; /* Slightly smaller cards for mobile scroll */
    }

    /* Адаптивность для общих заголовков страниц */
    .page-hero-section .page-title {
        font-size: 2.2em;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    /* Адаптивность для страниц статей */
    .article-hero-section {
        padding: 40px 0 20px;
        margin-bottom: 20px;
    }
    .article-title-hero {
        font-size: 2em;
    }
    .article-description-hero {
        font-size: 1em;
    }
    .article-meta-hero {
        font-size: 0.8em;
        margin-bottom: 20px;
    }
    .article-content-section {
        padding: 0 var(--container-padding);
    }
    .article-content-section h2 {
        font-size: 1.8em;
    }
    .article-content-section h3 {
        font-size: 1.4em;
    }
    .article-content-section p,
    .article-content-section ul li,
    .article-content-section ol li {
        font-size: 0.95em;
    }
    .related-tips-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .related-tips-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--container-padding);
    }
    .tip-card-new {
        margin-bottom: 20px;
    }

    /* Адаптивность для about/contact контента */
    .about-content-section, .contact-form-section {
        padding: var(--section-padding-small) var(--container-padding);
    }
    .contact-form {
        padding: 25px;
        margin: 20px auto;
    }
    .form-group label {
        font-size: 1em;
    }
    .form-group input, .form-group textarea {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .hero-section-new {
        padding: var(--section-padding-small) 15px;
        min-height: 400px;
    }

    .hero-title-new {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .hero-subtitle-new {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .btn-primary-new, .btn-secondary-new, .submit-button {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .large-btn-new {
        padding: 15px 30px;
        font-size: 1em;
    }

    .tips-grid-new {
        gap: 20px;
    }

    .tip-card-image-new {
        height: 180px;
    }

    .tip-card-body-new {
        padding: 20px;
    }

    .tip-card-body-new h3 {
        font-size: 1.2em;
    }

    .popular-tip-card-new {
        width: 220px;
    }

    .popular-tip-card-new img {
        height: 150px;
    }

    .popular-tip-card-new .card-info-new h4 {
        font-size: 1.1em;
    }

    .newsletter-section-new h2 {
        font-size: 2em;
    }

    .newsletter-section-new p {
        font-size: 1em;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
    .about-hero-section, .contact-hero-section {
        padding: 30px 0 20px;
    }
    .about-title, .contact-title {
        font-size: 1.8em;
    }
    .about-subtitle, .contact-subtitle {
        font-size: 0.9em;
    }
    .about-content-section ul {
        padding-left: 20px;
    }
    .contact-email {
        font-size: 1em;
    }
}
.policy-page-hero {
    background: #daf0ff;
    text-align: center;
    padding: 60px 20px 40px;
}

.policy-page-hero .hero-title-new {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.policy-page-hero .hero-subtitle-new {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Основной контент политики */
.policy-content-new {
    padding: 40px 20px;
    background-color: #fff;
}

.policy-article-new {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #444;
}

.policy-article-new h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.policy-article-new h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.policy-article-new p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.policy-article-new ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-article-new li {
    margin-bottom: 10px;
}

.policy-article-new strong {
    font-weight: 700;
    color: #333;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .policy-page-hero {
        padding: 40px 15px 20px;
    }

    .policy-page-hero .hero-title-new {
        font-size: 2rem;
    }

    .policy-page-hero .hero-subtitle-new {
        font-size: 1rem;
    }

    .policy-content-new {
        padding: 20px 15px;
    }

    .policy-article-new h2 {
        font-size: 1.5rem;
    }
}