/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

/* ===================================================================
   === ÁÀÇÎÂÛÅ ÑÒÈËÈ È ÏÅÐÅÌÅÍÍÛÅ ===
=================================================================== */
:root {
  --space-s: 20px;
  --space-m: 32px;
  --space-l: 52px;
  --space-xl: 84px;
  --accent: #e8007f;
}

body {
  background: #fafafa;
  color: #111;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* ===================================================================
   === HERO (êåéñû è òåõíîëîãèè) ===
=================================================================== */
.case-hero,
.tech-hero {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #eee;
  padding: var(--space-xl) 20px var(--space-l);
  margin-bottom: var(--space-l);
}

.case-hero-inner,
.tech-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding-left: 16px;
}

.case-title,
.tech-title,
.archive-title {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  margin: 0 0 var(--space-s);
  border-left: 6px solid var(--accent);
  padding-left: 16px;
  display: inline-block;
}

/* ===================================================================
   === ÊËÈÅÍÒ / ÒÅÕÍÎËÎÃÈÈ ===
=================================================================== */
.case-client-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--space-s);
}

.case-client-label {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.case-client {
  font-size: 1rem;
  color: #666;
}

.case-tech-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.case-tech-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  margin-right: 6px;
}

.case-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tech-badge {
  display: inline-flex;
  align-items: center;
  background: #f6f6f6;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.2;
}

.case-tech-badge:hover {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  color: #000;
}

/* ===================================================================
   === ÊÎÍÒÅÍÒ: ÇÀÄÀ×À / ÐÅØÅÍÈÅ / ÐÅÇÓËÜÒÀÒ ===
=================================================================== */
.case-meta {
  margin-top: var(--space-s);
  margin-bottom: var(--space-l);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
  line-height: 1.55;
  font-size: 17px;
}

.case-meta h2,
.case-meta h3 {
  position: relative;
  font-weight: 700;
  color: #222;
  margin-top: var(--space-m);
  margin-bottom: 12px;
}

.case-meta h2 {
  font-size: 22px;
  line-height: 1.3;
}

.case-meta h3 {
  font-size: 18px;
}

.case-meta h2::after,
.case-meta h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

.case-meta p {
  margin-bottom: 8px;
  line-height: 1.45;
  color: #222;
  font-size: 17px;
}

.case-meta strong {
  font-weight: 600;
  color: #111;
}

.case-meta em {
  font-style: italic;
  color: #444;
}

/* ñïèñêè (âûðàâíåíî ïî òåêñòó) */
.case-meta ul,
.case-meta ol {
  margin: 8px 0 14px 0;
  padding-left: 1.2em;
  list-style-position: inside;
}

.case-meta li {
  margin-bottom: 4px;
  line-height: 1.45;
  color: #222;
}

.case-meta br {
  display: block;
  content: "";
  margin-top: 0;
}

/* òàáëèöû */
.case-meta table {
  border-collapse: collapse;
  margin: 14px 0;
  width: 100%;
}

.case-meta th,
.case-meta td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}

.case-meta th {
  background: #f6f6f6;
  font-weight: 600;
}

/* ===================================================================
   === ÃÀËÅÐÅß ===
=================================================================== */
.case-gallery {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.case-gallery h3 {
  font-size: 22px;
  margin-bottom: var(--space-m);
  font-weight: 600;
  color: #333;
}

.case-gallery-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.case-gallery-wrap a {
  display: block;
  max-width: 340px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-gallery-wrap a:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.case-gallery-wrap img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* ===================================================================
   === ÍÀÂÈÃÀÖÈß ÌÅÆÄÓ ÊÅÉÑÀÌÈ ===
=================================================================== */
.case-nav {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.case-nav a {
  color: var(--accent);
  text-decoration: none;
}

.case-nav a:hover {
  text-decoration: underline;
}

/* ===================================================================
   === CTA ÏÎÄ ÊÅÉÑ ===
=================================================================== */
.case-cta {
  margin-top: 80px;
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.case-cta h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.case-cta p {
  font-size: 18px;
  color: #555;
  margin-bottom: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0088cc;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background-color: #007ab8;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
  transform: translateY(-2px);
}

.cta-icon {
  width: 20px;
  height: 20px;
  color: #fff;
  transition: color 0.25s ease;
}

.cta-button:hover .cta-icon {
  color: #e5f6ff;
}

/* ===================================================================
   === ÀÐÕÈÂ ÊÅÉÑÎÂ ===
=================================================================== */
.case-archive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  margin-top: var(--space-l);
}

.case-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  padding: 30px 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.case-item-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.case-item-title a {
  text-decoration: none;
  color: inherit;
}

.case-item-excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.case-link:hover {
  text-decoration: underline;
}

/* ===================================================================
   === LIGHTBOX ÊÍÎÏÊÈ ===
=================================================================== */
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  user-select: none;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

#lightbox-prev { left: 30px; }
#lightbox-next { right: 30px; }

@media (max-width: 768px) {
  #lightbox-prev,
  #lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    top: auto;
    bottom: 24px;
    transform: none;
  }
  #lightbox-prev { left: 25%; }
  #lightbox-next { right: 25%; }
}

/* ===================================================================
   === ÌÅÄÈÀ ===
=================================================================== */
@media (max-width: 768px) {
  .case-hero {
    padding: 50px 20px 40px;
  }
  .case-title {
    font-size: 1.8rem;
  }
  .case-gallery-wrap a {
    width: 90%;
  }
}
