:root {
    /* Цветовая палитра */
    --primary: #034a4f;
    --primary-dark: #02373b;
    --primary-light: rgba(3, 74, 79, 0.1);
    --secondary: #6b9a9a;
    --accent: #cae4df;
    --light-accent: #f7fadb;
    --light-bg: #f7f7d9;
    --background: #f4f4f4;
    --background-alt: #ffffff;
    --border: #e0e0e0;
    --text: #2b2d42;
    --text-light: #5a5a5a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --elegant-shadow: 0 8px 32px rgba(3, 74, 79, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    
/* Плавная прокрутка для всей страницы */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Добавьте это */
    width: 100%;
}

/* Базовые стили */
body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: var(--transition);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
    overflow-x: hidden; /* Добавьте это */
    width: 100%;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Шапка */
.header {
    background: var(--primary) !important;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    transition: var(--transition);
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.logo__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.logo__icon svg {
    width: 24px;
    height: 24px;
}

/* Навигация */
.nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav__link:hover, 
.nav__link:focus {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav__link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: -1;
    transition: var(--transition);
    opacity: 1;
}

.button--primary {
    background: var(--primary);
    color: white;
}

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

.button--small {
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #ffffff; /* Цвет текста станет белым */
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
}

/* Секция поиска */
.search-section {
    background: linear-gradient(135deg, rgba(3, 74, 79, 0.95) 0%, rgba(107, 154, 154, 0.95) 100%);
    padding: 80px 0 60px; /* Увеличил нижний отступ для баланса */
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -18px;
     /* Только закругление снизу */
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.search-wrapper {
    position: relative;
    z-index: 2;
}


.search-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.3;
    text-align: center;
}

.search {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: white;
  position: relative;
}

.search__input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background-color: #fff; /* Важно: явный фон */
  color: #222;
  transition: var(--transition);
  min-width: 0;
  z-index: 1; /* Чтобы быть поверх других элементов */
}

 .search__input:focus {
  box-shadow: inset 0 0 0 2px var(--accent); /* Цвет из вашего CSS */
  background-color: #f8f8f8;
  color: #000;
}

.search__button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  z-index: 1;
}

.search__button:hover {
  background: #b8d9d4;
}

.search__button i {
  font-size: 1rem;
}

.search__button span {
  display: none;
}

.search-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.search-tags a {
    color: white;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.search-tags a:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* Категории */
.categories {
    padding: 80px 0;
    background: var(--background);
}

.section__header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%; 
}

.section__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    position: relative;
    display: block;
    color: var(--primary);
    width: 100%;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section__subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.link:hover {
    color: var(--primary-dark);
}

.link i {
    font-size: 0.9rem;
}

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

.category-card {
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    background: var(--background-alt) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elegant-shadow);
    border-color: var(--accent);
}

/* Search results cards */
.search-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 24px 0 60px;
}
.search-card { 
    background: var(--background-alt) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.search-card .guide-card__image {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.search-card .guide-card__image img { 
    width: 100%;
    height: auto;
    object-fit: cover;
}
.search-card .guide-card__content { 
    padding: 16px 18px;
}
.search-card .guide-card__title a { 
    color: var(--primary);
    text-decoration: none;
}
.search-card .guide-card__excerpt { 
    color: var(--text-light);
    margin: 8px 0 12px;
}

.category-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: var(--transition);
    background: var(--primary-light);
    border-radius: 50%;
}

.category-card__icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.category-card:hover .category-card__icon {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--primary);
}

.category-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
    color: var(--primary);
}

    /* Ensure search result cards look good in text-only mode */
    .search-results .guide-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start;
    }
    .search-results .guide-card .guide-card__content {
      padding: 18px !important;
    }

.category-card__count {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Новости технологий */
.tech-news {
    padding: 80px 0;
    background: var(--background-alt);
    position: relative;
}

.tech-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card__date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.3;
}

.news-card__excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-card__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.news-card__link:hover {
    color: var(--primary-dark);
}

.news-card__link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-card__link:hover::after {
    transform: translateX(3px);
}

/* Гайды */
.popular-guides {
    padding: 80px 0;
    background: var(--background);
    position: relative;
}

/* Новости с молниевым фоном */
.news {
    padding: 80px 0;
    background-color: #fffae8; /* Светло-желтый фон */
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(255,215,0,0.15)" d="M30,10 L40,50 L10,30 L50,40 L30,10 Z" transform="rotate(20 50 50)"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(255,165,0,0.1)" d="M30,10 L40,50 L10,30 L50,40 L30,10 Z" transform="rotate(-10 50 50)"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(255,200,0,0.1)" d="M25,5 L35,45 L5,25 L45,35 L25,5 Z" transform="rotate(5 50 50)"/></svg>');
    background-size: 150px 150px, 200px 200px, 180px 180px;
    background-position: 10% 20%, 80% 60%, 40% 80%;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 60px;
    overflow: hidden;
}
   .news .section__header .link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00c6ff, #4CAF50, #FFEB3B);
    color: white !important;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,198,255,0.3);
    margin-top: 15px;
    border: none;
    position: relative;
    overflow: hidden;
}

.news .section__header .link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,198,255,0.4);
    background: linear-gradient(135deg, #00b4e6, #3e8e41, #FBC02D);
}

.news .section__header .link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.news .section__header .link:hover::before {
    left: 100%;
}
    
/* Анимированные молнии */
.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(255,225,0,0.07)" d="M30,10 L40,50 L10,30 L50,40 L30,10 Z" transform="rotate(15 50 50)"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(255,200,50,0.07)" d="M25,15 L35,55 L5,35 L45,45 L25,15 Z" transform="rotate(-15 50 50)"/></svg>');
    background-size: 120px 120px;
    animation: lightningMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes lightningMove {
    0% { background-position: 0% 0%, 100% 100%; }
    50% { background-position: 100% 50%, 0% 50%; }
    100% { background-position: 0% 100%, 100% 0%; }
}

/* Разделительная линия */
.news::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 1;
}

/* Стили карточек новостей */
.news .guides__grid {
    gap: 30px;
    position: relative;
    z-index: 2;
}

.news .guide-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news .guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: white;
}

/* Стили для кнопок */
.news .button--small {
    background: linear-gradient(135deg, #00c6ff, #4CAF50, #FFEB3B);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    display: block;
    width: max-content;
    margin: 15px auto 0;
    box-shadow: 0 4px 15px rgba(0,198,255,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.news .button--small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.news .button--small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,198,255,0.4);
}

.news .button--small:hover::before {
    left: 100%;
}

/* Стили для бейджей */
.news .guide-card__badge {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Текст в карточках */
.news .guide-card__title {
    color: var(--primary-dark);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 10px;
}

.news .guide-card__excerpt {
    text-align: center;
    color: var(--text);
    font-size: 0.95rem;
}


/* Разделитель перед популярными гайдами */
.popular-guides {
    position: relative;
    padding-top: 80px;
}

.popular-guides::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.guides-section {
    padding: 60px 0;
    background: var(--background);
}

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

.guide-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--background-alt);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elegant-shadow);
}

.guide-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.guide-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.guide-card:hover .guide-card__image img {
    transform: scale(1.1);
}

.guide-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.guide-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.guide-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.guide-card__excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.guide-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
}

/* Подвал */
.footer {
    background: var(--primary) !important;
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

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

.footer__col--logo {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.footer-logo .logo__icon {
    width: 30px;
    height: 30px;
}

.footer-logo .logo__icon svg {
    width: 20px;
    height: 20px;
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer__link:hover {
    color: white !important;
    transform: translateX(5px);
}

.footer__link i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.disclaimer {
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer__copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Пагинация */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 10px;
}

.pagination__link {
  padding: 10px 16px;
  background-color: #e0f5ec; /* светло-мятный фон */
  color: #064f43; /* насыщенный тёмно-зелёный текст */
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
}

.pagination__link:hover {
  background: linear-gradient(135deg, #a9ccca, #bdf2cd); /* градиент в твоём стиле */
  color: #064f43;
  border-color: #a9ccca;
}

.pagination__link--active {
  background-color: #0d7d91; /* морской акцент */
  color: white;
  font-weight: bold;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pagination__link--next,
.pagination__link--prev {
  min-width: 90px;
}

    

/* Стили для изображения */
.special-offer-image {
    margin-bottom: 20px;
}

.special-offer-image img {
    width: 100%;
    max-width: 400px; /* Увеличенный размер изображения */
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-offer-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Стили для заголовка */
.special-offer-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Стили для текста */
.special-offer-content p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Стили для кнопки */
.special-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffd700;
    color: black;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.special-offer-button:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Стили для подписи */
.image-caption {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
}
    
@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .categories-gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .news__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .news-card__content {
        padding: 20px;
    }
    
    .news-card__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .search-title {
        font-size: 1.6rem;
    }
    
    .search {
        flex-direction: column;
        gap: 10px;
    }
    
    .categories-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .news__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card__image {
        height: 180px;
    }
    
    .news-card__content {
        padding: 18px;
    }
    
    .news-card__title {
        font-size: 1.05rem;
    }
    
    .search__input {
        padding: 14px 16px;
    }
    
    .search__button {
        padding: 12px;
        justify-content: center;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .categories__grid {
        grid-template-columns: 1fr 1fr;
    }

    .categories-heading {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px; /* или другая подходящая ширина */
}
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__col {
        align-items: center;
        text-align: center;
    }
    
    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer__links {
        align-items: center;
    }
}

/* Галерея категорий */
/* Галерея категорий */
.categories-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.gallery-card__image {
    width: 100%;
    height: 100%;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-card__overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card__title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: white;
}

.gallery-card__count {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}
    
/* Страница гайда */
.guide-page {
    padding: 60px 0;
    background: var(--background-alt);
}

.breadcrumbs {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.guide-meta {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    color: var(--text-light);
}

.guide-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--elegant-shadow);
    margin: 30px 0;
}

.guide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.step {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: var(--background);
    border-radius: var(--border-radius);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-list {
    padding-left: 20px;
    margin: 15px 0;
}

.warning-box {
    background: #fff3cd;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.pro-tips {
    background: var(--primary-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

    /* Глобальные стили для таблиц */
.error-table, .element-table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* Для изображений */
img {
    max-width: 100%;
    height: auto;
}
    
    @media (max-width: 768px) {
  body {
    overflow-x: hidden; /* Блокируем горизонтальный скролл */
    width: 100%;
  }

@media (max-width: 768px) {
    .guide-image img {
        height: 250px;
    }
    
    .step {
        flex-direction: column;
        padding: 20px;
    }
}
        @media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Добавьте эти стили */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .step {
        flex-direction: column;
    }
}

        body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer {
  margin-top: auto;
}

@media (max-width: 576px) {
    /* Добавьте это */
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .error-table, .element-table {
        font-size: 0.9rem;
    }
}
@media (max-width: 400px) {
    .categories-gallery {
        grid-template-columns: 1fr;
    }
    
    .news-card__image {
        height: 160px;
    }
    
    .news-card__content {
        padding: 15px;
    }
    
    .news-card__title {
        font-size: 1rem;
    }
}

.text-center {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

@media (max-width: 400px) {
    .categories__grid {
        grid-template-columns: 1fr;
    }
}

/* Cookie Agreement Page Styles */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-alt);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb-separator {
    margin: 0 10px;
}

.breadcrumb-current {
    color: var(--text);
}

.page-content h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text);
}

.page-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text);
}

.page-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.page-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.page-content strong {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .main-content {
        padding: 40px 0;
    }
    
    .page-content {
        padding: 30px 20px;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 0;
    }
    
    .page-content {
        padding: 20px 15px;
    }
    
    .page-content h1 {
        font-size: 1.8rem;
    }
    
    .page-content h2 {
        font-size: 1.4rem;
    }
}

/* Cookie Consent Banner Styles */
div.cookie-banner {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px) !important;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: white !important;
    padding: 20px 25px !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-width: 90% !important;
    width: 600px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

div.cookie-banner.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.cookie-banner__text {
    flex: 1;
    margin-right: 20px;
}

.cookie-banner__text a {
    color: #64b5f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cookie-banner__text a:hover {
    color: #90caf9;
    border-bottom-color: #90caf9;
}

.cookie-banner__buttons {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

button.cookie-btn {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

button.cookie-btn--primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}

button.cookie-btn--primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb860 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

.cookie-btn--secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

div.cookie-banner.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(100px) !important;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
        width: auto;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .cookie-banner.show {
        transform: none;
    }
    
    .cookie-banner__text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-banner__buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
    
    .cookie-banner__text {
        font-size: 13px;
    }
    
    .cookie-btn {
        font-size: 13px;
        padding: 8px 16px;
        min-width: 100px;
    }
}

