/* ═══ CASES STYLES ═══ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #293753 0%, #ff515e 100%);
    padding: 60px 0 35px;
    color: #fff;
}

.bc {
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.bc a {
    color: #fff;
    font-weight: 700;
}

.bc a:hover {
    color: #ffe0e3;
}

.bc .sep {
    opacity: .5;
    margin: 0 8px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 500;
}

.hero-meta > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-meta u {
    color: #ff515e;
    text-decoration: none;
}

.hero-meta .logo-sm {
    height: 28px;
    background: #fff;
    border-radius: 4px;
    padding: 3px 6px;
}

/* Page Layout */
.page-body {
    padding: 50px 0 60px;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

.page-grid.case-no-sidebar {
	display: block;
}

.blk .index-accordion {
	padding-top: 0;
}

/* Case Card */
.case {
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.case-top {
    background: #1b2a47;
    padding: 28px 32px;
    color: #fff;
}

.case-top h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
}

.stag {
    display: inline-flex;
    align-items: center;
    gap: 10px 20px;
    background: rgba(255, 81, 94, .12);
    border: 1px solid rgba(255, 81, 94, .25);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ff515e;
    flex-wrap: wrap;
}

.stag a,
.stag u {
    color: #ff515e;
    text-decoration: underline;
}

.stag a:hover {
    color: #fff;
}

.stag-service {
	display: flex;
	gap: 8px;
}

.case-inner {
    padding: 32px;
}

.blk {
    margin-bottom: 32px;
}

.blk:last-child {
    margin-bottom: 0;
}

.blk-lbl {
   font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #ff515e;
    font-weight: 900;
    margin-bottom: 10px;
	 /*margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
	font-size: 2rem;*/
}

/*.blk p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}*/

/* Gallery */
.gal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gal figure {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gal figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gal figure:hover img {
    transform: scale(1.05);
}

.gal figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    padding: 28px 10px 8px;
    font-size: 11px;
    color: #fff;
    line-height: 1.35;
}

/* Video */
.vid {
    position: relative;
    /*padding-bottom: 56.25%;*/
	aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    /*background: #000;*/
    margin-top: 10px;
}

.vid iframe,
.vid video {
	display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fallback для старых браузеров без aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .vid {
        padding-bottom: 56.25%;
    }
}

.vid-cap {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* Table */
.stbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}

.stbl th {
    background: #ff515e;
    color: #fff;
    padding: 10px 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.stbl td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.stbl tr:nth-child(odd) td {
    background: #f9f9f9;
}

.stbl tr:last-child td {
    border-bottom: none;
}

.stbl .l {
    font-weight: 600;
    color: #1b2a47;
    width: 38%;
}

/* ============================================================
       CTA BLOCK
       ============================================================ */
    .cta-block {
      padding: 48px;
      background: #1b2a47;
      color: #fff;
      text-align: center;
    }
    .cta-block h2 {
      font-size: 28px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 12px;
      line-height: 1.25;
    }
    .cta-block p {
      font-size: 16px;
      color: rgba(255,255,255,0.8);
      margin-bottom: 24px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
    .cta-block .btn-group {
      display: inline-flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .cta-block .btn-phone {
      background: transparent;
      color: #fff;
      border: 2px solid rgba(255,255,255,0.3);
      padding: 13px 38px;
    }
    .cta-block .btn-phone:hover {
      background: #fff;
      color: var(--ink);
      border-color: #fff;
    }

.cta-block .btn {
  display: inline-block;
  padding: 15px 40px;
  background: #ff515e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.cta-block .btn-phone {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 13px 38px;
}

.cta-block .btn:hover {
  background: #d13748;
  color: #fff;
  text-decoration: none;
}

.cta-block .btn-phone:hover {
  background: #fff;
  color: #1b2a47;
  border-color: #fff;
}
    

/* Sidebar */
.sb-title {
    font-weight: 900;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
}

.sb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-list li {
    border-bottom: 1px solid #eaeaea;
    background: rgba(0, 0, 0, .03);
}

.sb-list a {
    display: block;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 700;
    color: #ff515e;
    text-decoration: none;
}

.sb-list a:hover {
    color: #d13748;
    text-decoration: none;
}

.sb-cta {
    border-top: 2px solid #ff515e;
    padding-top: 20px;
    margin-top: 25px;
}

.sb-cta-t {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sb-cta-p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.btn-ol {
    display: block;
    text-align: center;
    padding: 15px 25px;
    border: 2px solid #d13748;
    color: #d13748;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    transition: .3s;
    text-decoration: none;
}

.btn-ol:hover {
    background: #d13748;
    color: #fff;
}

    /* ============================================================
       SERVICES USED — 3 cards, flat style
       ============================================================ */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .service-card {
      display: block;
      padding: 24px;
      background: #fff;
      border: 1px solid #e4e8ef;
      color: #212529;
      transition: border-color 0.2s;
		text-decoration: none;
    }
    .service-card:hover {
      border-color: #ff515e;
      color: #212529;
      text-decoration: none;
    }
    .service-card h4 {
      font-size: 17px;
      font-weight: 700;
      color: #1b2a47;
      margin-bottom: 8px;
    }
    .service-card p {
      font-size: 14px;
      line-height: 1.5;
      color: #6b7a8e;
      margin-bottom: 14px;
    }
    .service-card-link {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #ff515e;
      font-weight: 500;
    }

    /* ============================================================
       CHALLENGES LIST
       ============================================================ */
    .challenges-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .challenge {
      display: flex;
      gap: 14px;
      padding: 18px;
      background: #fff;
      border: 1px solid #e4e8ef;
    }
    .challenge-icon {
      width: 40px;
      height: 40px;
      background: #fff5f4;
      color: #ff515e;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .challenge h4 {
      font-size: 15px;
      font-weight: 700;
      color: #1b2a47;
      margin-bottom: 4px;
    }
    .challenge p {
      font-size: 14px;
      line-height: 1.5;
      color: #6b7a8e;
    }

/* ============================================================
       BEN'S TESTIMONIAL — specific to this move
       ============================================================ */
    .client-quote {
      background: #fff5f4;
      padding: 32px;
      border-left: 4px solid #ff515e;
    }
    .client-quote blockquote {
      font-size: 19px;
      line-height: 1.5;
      color: #1b2a47;
      font-weight: 400;
      font-style: italic;
      margin-bottom: 20px;
    }
    .client-quote-footer {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }
    .client-quote-name {
      font-weight: 700;
      color: #1b2a47;
      font-size: 15px;
    }
    .client-quote-meta {
      font-size: 13px;
      color: #6b7a8e;
    }
    .client-quote-stars {
      color: #ff515e;
      font-size: 16px;
      letter-spacing: 2px;
    }
    
    

/* Responsive */
@media (max-width: 992px) {
    .page-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .gal {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .case-top,
    .case-inner {
        padding: 22px 20px;
    }
}

@media (max-width: 720px) {
      .services-grid { grid-template-columns: 1fr; }
	.challenges-grid { grid-template-columns: 1fr; }
    }

@media (max-width: 576px) {
    .gal {
        grid-template-columns: 1fr;
    }
    
    .hero-meta {
        gap: 12px;
    }
    
    .hero {
        padding: 30px 0 25px;
    }
}


@media (max-width: 560px) {
      .client-quote { padding: 24px 20px; }
      .client-quote blockquote { font-size: 17px; }
    }

@media (max-width: 560px) {
      .cta-block { padding: 32px 24px; }
      .cta-block h2 { font-size: 22px; }
    }