/* ==================================================
   OViK Expert — Full Site CSS
   ================================================== */

:root {
  --ovik-blue: #1E3A5F;
  --ovik-blue-dark: #162C43;
  --ovik-teal: #2CA6A4;
  --ovik-orange: #F28C38;

  --ovik-bg: #F5F7FA;
  --ovik-soft: #EAF2F8;
  --ovik-white: #FFFFFF;

  --ovik-text: #334155;
  --ovik-muted: #64748B;
  --ovik-border: #E2E8F0;

  --ovik-radius: 16px;
  --ovik-wrap: 1100px;
}

/* BASE */

body {
  background: var(--ovik-bg);
  color: var(--ovik-text);
}

a {
  color: var(--ovik-teal);
  text-decoration: none;
}

a:hover {
  color: var(--ovik-blue);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ovik-blue);
  line-height: 1.2;
}

.entry-title,
h1 {
  font-size: 38px;
  margin-top: 0;
  margin-bottom: 14px;
}

h2 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  margin-top: 0;
  margin-bottom: 10px;
}

p {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 16px;
}

/* WRAPPER */

.ovik-wrap {
  width: 100%;
  max-width: var(--ovik-wrap);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
  box-sizing: border-box;
}

.ovik-section {
  padding: 54px 0;
}

.ovik-section-soft {
  background: var(--ovik-soft);
}

.ovik-section-head {
  margin-bottom: 26px;
}

.ovik-section-head h2 {
  margin-top: 0;
}

.ovik-section-head p {
  color: var(--ovik-muted);
  max-width: 720px;
}

/* HERO */

.ovik-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #EAF2F8 100%);
  padding: 54px 0;
}

.ovik-hero-simple {
  max-width: 820px;
}

.ovik-hero-text {
  max-width: 820px;
}

.ovik-hero-title {
  color: var(--ovik-blue);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
}

.ovik-hero-text p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ovik-text);
}

/* BUTTONS */

.ovik-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 16px;
}

.ovik-btn,
.wp-block-button__link {
  display: inline-block;
  background: var(--ovik-orange);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.ovik-btn:hover,
.wp-block-button__link:hover {
  background: #E67A22;
  color: #fff !important;
  text-decoration: none;
}

.ovik-btn-secondary {
  background: var(--ovik-orange);
  color: #fff !important;
}

/* GRID */

.ovik-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ovik-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* CARDS */

.ovik-card {
  display: block;
  background: var(--ovik-white);
  border: 1px solid var(--ovik-border);
  border-radius: var(--ovik-radius);
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ovik-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 42px;
  height: 3px;
  background: var(--ovik-teal);
  border-radius: 0 0 4px 4px;
}

.ovik-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.08);
  border-color: #CFE0EA;
}

.ovik-card h3 {
  margin-top: 8px;
}

.ovik-card p {
  color: var(--ovik-text);
  margin-bottom: 14px;
}

.ovik-card a,
.ovik-card-link span {
  color: var(--ovik-teal);
  font-weight: 600;
}

.ovik-card a:hover,
.ovik-card-link:hover span {
  color: var(--ovik-blue);
}

.ovik-card-link {
  color: inherit;
  text-decoration: none;
}

.ovik-card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* INFO BLOCK */

.ovik-info-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.ovik-note {
  background: var(--ovik-soft);
  border-left: 4px solid var(--ovik-teal);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--ovik-text);
}

/* CATEGORY DESCRIPTION */

.ovik-category-head {
  background: var(--ovik-soft);
  border: 1px solid #D8E6EF;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 34px;
  text-align: left;
}

.ovik-category-head h2 {
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
}

.ovik-category-head p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: left;
}

/* ARTICLE */

.single .entry-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.single .entry-content p,
.single .entry-content li {
  font-size: 18px;
  line-height: 1.8;
}

.single .entry-content h2 {
  margin-top: 42px;
  margin-bottom: 16px;
}

.single .entry-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.single .entry-content ul,
.single .entry-content ol {
  margin-bottom: 22px;
  padding-left: 22px;
}

.single .entry-content li {
  margin-bottom: 8px;
}

.ovik-warning {
  background: #FFF4EA;
  border-left: 4px solid var(--ovik-orange);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
}

/* FOOTER */

.ovik-footer {
  background: var(--ovik-blue-dark);
  border-top: 2px solid var(--ovik-teal);
  padding: 42px 0 20px;
  margin-top: 60px;
}

.ovik-footer-card {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.ovik-footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.ovik-footer-brand h3 {
  color: #FFFFFF;
  font-size: 20px;
  margin: 0;
}

.ovik-footer-brand p {
  color: #A9B8C6;
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0;
}

.ovik-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 0;
}

.ovik-footer-nav a {
  color: #D6DEE6;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.ovik-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--ovik-teal);
  transition: width 0.16s ease;
}

.ovik-footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.ovik-footer-nav a:hover::after {
  width: 100%;
}

.ovik-footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  color: #8FA3B5;
  font-size: 13px;
}

/* KADENCE SMALL FIXES */

.entry-header {
  margin-bottom: 16px;
}

.content-area {
  margin-top: 0;
}

/* MOBILE */

@media (max-width: 768px) {

  .ovik-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ovik-section {
    padding: 40px 0;
  }

  .ovik-hero {
    padding: 34px 0 38px;
  }

  .entry-title,
  h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 23px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 19px;
  }

  p {
    font-size: 16px;
    line-height: 1.65;
  }

  .ovik-hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .ovik-hero-text p {
    font-size: 16px;
  }

  .ovik-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 16px;
  }

  .ovik-btn,
  .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
  }

  .ovik-grid-3,
  .ovik-grid-2,
  .ovik-info-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ovik-card {
    padding: 22px;
    border-radius: 14px;
  }

  .ovik-card::before {
    left: 22px;
  }

  .ovik-category-head {
    padding: 22px;
    border-radius: 14px;
  }

  .single .entry-content p,
  .single .entry-content li {
    font-size: 16px;
    line-height: 1.75;
  }

  .single .entry-content h2 {
    margin-top: 34px;
  }

  .ovik-footer {
    padding: 32px 0 18px;
    margin-top: 42px;
  }

  .ovik-footer-brand {
    flex-direction: column;
    gap: 10px;
  }

  .ovik-footer-nav {
    gap: 12px 18px;
  }

  .ovik-footer-copy {
    font-size: 12px;
  }
}
/* FOOTER LEGAL */

.ovik-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0 0 16px;
}

.ovik-footer-legal a {
  color: #8FA3B5;
  font-size: 13px;
  text-decoration: none;
}

.ovik-footer-legal a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

@media (max-width: 768px) {
  .ovik-footer-legal {
    flex-direction: column;
    gap: 8px;
  }
}
/* LEGAL PAGES */

.ovik-legal-page {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--ovik-border);
  border-radius: 16px;
  padding: 34px;
}

.ovik-legal-page p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ovik-text);
}

.ovik-legal-page h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 24px;
}

.ovik-legal-page ul {
  margin-bottom: 20px;
}

.ovik-legal-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ovik-legal-page {
    padding: 22px;
    border-radius: 14px;
  }

  .ovik-legal-page h2 {
    font-size: 21px;
  }
}
/* COOKIE BANNER */

.ovik-cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  background: #162C43;
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.ovik-cookie-text {
  font-size: 14px;
  line-height: 1.55;
}

.ovik-cookie a {
  color: #9FD7D3;
  text-decoration: underline;
}

.ovik-cookie-btn {
  background: #2CA6A4;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ovik-cookie-btn:hover {
  background: #24918F;
}

@media (max-width: 768px) {
  .ovik-cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ovik-cookie-btn {
    width: 100%;
  }
}
.ovik-image {
  margin: 30px 0;
  text-align: center;
}

.ovik-image img {
  max-width: 100%;
  border-radius: 12px;
}

.ovik-image figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7c8f;
}
/* Красивое отображение картинки в карточке */
.entry .post-thumbnail img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}
/* Убираем изображение записи внутри статьи */
.single .post-thumbnail {
  display: none;
}
/* ===== ARCHIVE POST CARDS — FINAL PREMIUM ===== */

.posts {
  gap: 28px;
}

/* Карточка записи */
.posts .entry {
  background: #ffffff;
  border: 1px solid var(--ovik-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Акцентная линия сверху */
.posts .entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 44px;
  height: 3px;
  background: var(--ovik-teal);
  z-index: 2;
  border-radius: 0 0 4px 4px;
}

/* Hover */
.posts .entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(30, 58, 95, 0.12);
  border-color: #cfe0ea;
}

/* Картинка */
.posts .entry .post-thumbnail {
  margin: 0;
  line-height: 0;
  overflow: hidden;
}

.posts .entry .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: transform 0.25s ease;
}

/* Лёгкое увеличение картинки */
.posts .entry:hover .post-thumbnail img {
  transform: scale(1.025);
}

/* Контент внутри карточки */
.posts .entry .entry-content-wrap {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Убираем рубрику */
.posts .entry .entry-taxonomies {
  display: none;
}

/* Убираем автора и дату */
.posts .entry .entry-meta {
  display: none;
}

/* Заголовок */
.posts .entry .entry-title {
  font-size: 23px;
  line-height: 1.32;
  margin: 0 0 14px;
  color: var(--ovik-blue);
}

.posts .entry .entry-title a {
  color: var(--ovik-blue);
  text-decoration: none;
}

.posts .entry .entry-title a:hover {
  color: var(--ovik-teal);
}

/* Отрывок */
.posts .entry .entry-content p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ovik-text);
  margin: 0 0 18px;
}

/* Читать далее */
.posts .entry .more-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ovik-teal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.posts .entry .more-link:hover {
  color: var(--ovik-blue);
  text-decoration: none;
}

/* Убираем лишние подчёркивания */
.posts .entry a {
  text-decoration: none;
}

.posts .entry a:hover {
  text-decoration: none;
}

/* Если карточка без картинки */
.posts .entry:not(:has(.post-thumbnail)) {
  padding-top: 8px;
}

/* MOBILE */

@media (max-width: 768px) {

  .posts {
    gap: 18px;
  }

  .posts .entry {
    border-radius: 16px;
  }

  .posts .entry::before {
    left: 18px;
    width: 38px;
  }

  .posts .entry .entry-content-wrap {
    padding: 18px;
  }

  .posts .entry .entry-title {
    font-size: 21px;
    line-height: 1.3;
  }

  .posts .entry .entry-content p {
    font-size: 15px;
    line-height: 1.6;
  }
}
/* ===== RELATED ARTICLES ===== */

.ovik-related {
  margin: 24px 0;
  padding: 18px 22px;
  background: #f4f8fb;
  border-left: 4px solid var(--ovik-teal);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ovik-text);
}

.ovik-related strong {
  color: var(--ovik-blue);
  font-weight: 700;
}

.ovik-related a {
  color: var(--ovik-teal);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ovik-related a:hover {
  color: var(--ovik-blue);
  text-decoration: underline;
}