:root {
  --bg: #080402;
  --panel: rgba(18, 12, 10, 0.78);
  --panel-strong: rgba(26, 16, 14, 0.92);
  --panel2: rgba(255, 255, 255, 0.07);
  --text: #fff4ea;
  --muted: #d6bdb0;
  --red: #d71920;
  --red2: #ff3a32;
  --gold: #e0a64d;
  --green: #25d366;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #070302;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.48), rgba(0,0,0,.92)),
    linear-gradient(180deg, rgba(0,0,0,.1), #070302 78%),
    url('assets/studio-bg.jpg') center top / cover no-repeat;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(215,25,32,.2), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(224,166,77,.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 95px);
  z-index: -1;
}
a { color: #ffd4ca; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 5, 4, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 950; letter-spacing: .05em; }
.brand img {
  width: 112px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.8)) drop-shadow(0 0 16px rgba(255,255,255,.28));
}
.brand span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.menu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.menu a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 999px; font-size: 14px; transition: .2s ease; }
.menu a:hover, .menu .active { background: rgba(215,25,32,.22); }
.cta, .btn.primary { border: 1px solid rgba(255,255,255,.22); background: linear-gradient(135deg, var(--red), #7b0c0e); box-shadow: 0 12px 35px rgba(215,25,32,.32); }
.hero { min-height: 720px; display: grid; align-items: center; padding: 88px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: #ffd0c9; background: rgba(215,25,32,.16); border: 1px solid rgba(215,25,32,.35); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { font-size: clamp(42px, 7vw, 92px); line-height: .94; margin: 22px 0 18px; letter-spacing: -.07em; }
.hero h1 b { color: var(--red2); text-shadow: 0 0 42px rgba(215,25,32,.55); }
.lead { font-size: clamp(18px, 2vw, 23px); color: #f2ded5; max-width: 760px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.messenger-buttons { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 20px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: #fff; font-weight: 900; background: rgba(255,255,255,.075); transition: transform .18s ease, background .18s ease; }
.messenger-buttons .btn { padding: 10px 13px; border-radius: 999px; font-size: 13px; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.btn.whatsapp, .messenger-buttons .whatsapp { background: linear-gradient(135deg, var(--green), #128c4a); color: #fff; box-shadow: 0 18px 45px rgba(37,211,102,.22); }
.btn.telegram { background: linear-gradient(135deg, #2aabee, #176c9f); }
.btn.viber { background: linear-gradient(135deg, #7360f2, #4630ad); }
.studio-card { padding: 26px; border-radius: 32px; background: linear-gradient(145deg, rgba(21,12,10,.9), rgba(7,5,5,.72)); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.studio-card::before { content: ""; position: absolute; inset: -60px; background: radial-gradient(circle at 70% 20%, rgba(215,25,32,.33), transparent 34%); pointer-events: none; }
.meter { height: 90px; display: flex; align-items: end; gap: 8px; margin: 25px 0; }
.meter i { display: block; width: 100%; border-radius: 999px; background: linear-gradient(180deg, #ff322e, #532); opacity: .9; animation: pulse 1.9s infinite ease-in-out; }
.meter i:nth-child(1){height:34%}.meter i:nth-child(2){height:58%;animation-delay:.1s}.meter i:nth-child(3){height:80%;animation-delay:.2s}.meter i:nth-child(4){height:44%;animation-delay:.35s}.meter i:nth-child(5){height:68%;animation-delay:.15s}.meter i:nth-child(6){height:92%;animation-delay:.28s}.meter i:nth-child(7){height:52%;animation-delay:.42s}
@keyframes pulse { 50% { transform: scaleY(.65); opacity: .6; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 28px; color: #fff; }
.stat span { font-size: 12px; color: var(--muted); }
section { padding: 74px 0; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.section-head.vertical { display: block; max-width: 900px; }
.section-head h1, .section-head h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0; letter-spacing: -.04em; }
.section-head p { max-width: 680px; color: var(--muted); margin: 10px 0 0; }
.grid { display: grid; gap: 18px; }
.services, .voices, .portfolio { grid-template-columns: repeat(3, 1fr); }
.card, .voice-card, .audio-card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 55px rgba(0,0,0,.28); }
.card { padding: 24px; }
.card h3 { margin: 0 0 10px; font-size: 23px; }
.card p, .card li { color: #dfc9bf; }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--red2), #7b0c0e); font-weight: 950; font-size: 26px; line-height: 1; }
.voice-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.voice-tools select { background: rgba(0,0,0,.48); border: 1px solid var(--line); color: #fff; border-radius: 14px; padding: 13px 14px; min-width: 220px; }
.voice-card, .audio-card { padding: 18px; background: rgba(255,255,255,.055); transition: transform .18s ease, border-color .18s ease; }
.voice-card:hover, .audio-card:hover, .card:hover { border-color: rgba(255,58,50,.34); }
.voice-card h3, .audio-card h3 { font-size: 18px; margin: 0 0 3px; }
.voice-card p, .audio-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
audio { width: 100%; height: 38px; filter: sepia(.2) saturate(.85); }
.prices { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: start; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.price-row span { color: var(--muted); }
.clients-section { padding: 42px 0 56px; }
.clients-section .section-head { margin-bottom: 18px; }
.clients-section .section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.clients-section .section-head p { font-size: 14px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.logo-box { min-height: 48px; border-radius: 12px; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; padding: 8px; filter: grayscale(.08); transition: transform .18s ease, filter .18s ease; }
.logo-box:hover { transform: translateY(-2px); filter: grayscale(0); }
.logo-box img { max-width: 100%; max-height: 30px; object-fit: contain; }
.seo-grid { grid-template-columns: 1.1fr 1.1fr .8fr; }
.seo-card ul { padding-left: 20px; margin-bottom: 0; }
.contact-grid { grid-template-columns: .95fr 1.05fr; }
.contact-line { display: flex; gap: 14px; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.contact-line b { min-width: 110px; }
.bank-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.rules-card { max-width: 980px; }
.rules-card h2 { color: #fff; margin-top: 28px; }
.rules-card h2:first-child { margin-top: 0; }
.messenger-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; max-width: 310px; }
.messenger-float a { display: flex; align-items: center; justify-content: center; min-width: auto; padding: 9px 11px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 900; font-size: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.messenger-float .wa { background: #25d366; }
.messenger-float .tg { background: #2aabee; }
.messenger-float .vb { background: #7360f2; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 48px; color: var(--muted); background: rgba(0,0,0,.35); }
.mobile-toggle { display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 14px; padding: 11px 14px; font-weight: 900; }
@media (max-width: 980px) {
  .mobile-toggle { display: block; }
  .menu { display: none; position: absolute; left: 16px; right: 16px; top: 84px; background: rgba(9,5,4,.98); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
  .menu.open { display: grid; }
  .menu a { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
  .hero { min-height: auto; padding-top: 60px; }
  .hero-grid, .services, .voices, .portfolio, .prices, .contact-grid, .seo-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .stats, .logos { grid-template-columns: repeat(2, 1fr); }
  .brand img { width: 96px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .actions, .messenger-buttons { display: grid; }
  .btn { width: 100%; }
  .stats, .logos { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .card, .studio-card { border-radius: 22px; padding: 18px; }
  .voice-tools select { min-width: 100%; width: 100%; }
  section { padding: 50px 0; }
  .messenger-float { left: 10px; right: 10px; bottom: 10px; max-width: none; justify-content: center; }
  .messenger-float a { min-width: 0; padding: 9px 8px; font-size: 11px; flex: 1; }
  .footer { padding-bottom: 82px; }
}

.voice-group-title {
  grid-column: 1 / -1;
  margin: 16px 0 2px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(215,25,32,.22), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}
.price-section { padding-top: 50px; }
.price-original { overflow: hidden; }
.legacy-price { overflow-x: auto; color: #f8e4d8; }
.legacy-price table { width: 100% !important; border-collapse: collapse; min-width: 560px; background: rgba(255,255,255,.035); border-radius: 18px; overflow: hidden; }
.legacy-price td { padding: 10px 12px !important; border: 1px solid rgba(255,255,255,.12) !important; color: #f8e4d8 !important; vertical-align: top; }
.legacy-price tr:first-child td,
.legacy-price tr:nth-child(2) td { background: rgba(215,25,32,.28); font-weight: 900; }
.legacy-price p { margin: 0; }


/* v3 refinements */
.brand img { width: 142px; max-height: 58px; object-fit: contain; background: transparent !important; filter: drop-shadow(0 2px 2px rgba(0,0,0,.9)) drop-shadow(0 0 14px rgba(255,255,255,.5)); }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(0,0,0,.28); }
.lang-switch a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 900; line-height: 1; padding: 7px 8px; border-radius: 999px; opacity: .72; }
.lang-switch a:hover, .lang-switch .active-lang { opacity: 1; background: rgba(215,25,32,.68); }
.clients-section { padding: 26px 0 34px; }
.clients-section .section-head { align-items: center; margin-bottom: 12px; }
.clients-section .section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.clients-section .section-head p { font-size: 13px; margin-top: 4px; max-width: 520px; }
.logos { grid-template-columns: repeat(8, minmax(82px, 1fr)); gap: 7px; }
.logo-box { min-height: 40px; border-radius: 10px; padding: 6px 8px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82)); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.logo-box img { max-height: 24px; }
.price-section { padding-top: 64px; }
.price-note { margin-bottom: 16px; padding: 16px 18px; }
.price-note p { margin: 0; color: #f1d7ca; }
.price-table-card { padding: 0; overflow: hidden; margin-top: 16px; }
.price-table-card h3 { margin: 0; padding: 18px 20px; background: linear-gradient(90deg, rgba(215,25,32,.42), rgba(255,255,255,.045)); border-bottom: 1px solid rgba(255,255,255,.12); font-size: 20px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: top; }
.price-table th { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: rgba(0,0,0,.22); }
.price-table td { color: #f7dfd3; }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: center; white-space: nowrap; }
.price-table tr:hover td { background: rgba(255,255,255,.035); }
.price-table-card { overflow-x: auto; }
.messenger-buttons .btn, .messenger-float a { gap: 6px; padding: 8px 10px; font-size: 12px; min-height: 34px; }
.messenger-float { max-width: 245px; }
@media (max-width: 980px) { .nav { flex-wrap: wrap; } .lang-switch { order: 3; } .logos { grid-template-columns: repeat(4, 1fr); } .brand img { width: 124px; } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(3, 1fr); } .logo-box { min-height: 34px; } .logo-box img { max-height: 20px; } .brand img { width: 112px; } .price-table { min-width: 560px; } }


/* v4 layout/language/client refinements */
@media (min-width: 981px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
  .brand { grid-column: 2; justify-self: center; text-align: center; flex-direction: column; gap: 6px; }
  .brand img { width: 178px; max-height: 76px; }
  .brand span { text-align: center; }
  .menu { grid-column: 1; grid-row: 1; justify-self: start; }
  .lang-switch { grid-column: 3; grid-row: 1; justify-self: end; }
}
.brand img { content: url('https://fastmedia.lv/logo.gif'); background: transparent !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; filter: drop-shadow(0 3px 3px rgba(0,0,0,.95)) drop-shadow(0 0 18px rgba(255,255,255,.72)); }
.clients-section { padding: 38px 0 46px; }
.clients-section .section-head { text-align: center; display: block; max-width: 760px; margin: 0 auto 18px; }
.clients-section .section-head p { margin-left: auto; margin-right: auto; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.logo-box { flex: 0 1 132px; min-height: 56px; border-radius: 14px; padding: 9px 12px; background: linear-gradient(180deg, rgba(22,14,13,.96), rgba(8,5,5,.96)); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 14px 34px rgba(0,0,0,.38); }
.logo-box img { max-height: 34px; max-width: 112px; object-fit: contain; filter: none; }
.price-table-card { border-radius: 26px; background: rgba(13,8,7,.78); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 55px rgba(0,0,0,.28); }
.price-table tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.price-table td:first-child { font-weight: 750; }
@media (max-width: 980px) {
  .nav { display: flex; }
  .brand { flex-direction: row; text-align: left; }
  .brand img { width: 132px; }
  .menu { top: 92px; }
  .logos { display: flex; grid-template-columns: none; }
  .logo-box { flex-basis: 124px; min-height: 52px; }
}
@media (max-width: 560px) {
  .brand img { width: 118px; }
  .brand span { display:none; }
  .logo-box { flex-basis: calc(50% - 8px); min-height: 48px; }
  .logo-box img { max-height: 30px; }
}


/* v5 header, prices, clients and messenger refinements */
@media (min-width: 981px) {
  .topbar .wrap { width: min(1380px, calc(100% - 36px)); }
  .nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 18px;
    padding: 10px 0 12px;
  }
  .brand {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 4px;
  }
  .brand img { width: 220px !important; max-height: 92px !important; }
  .brand span { font-size: 10px; letter-spacing: .14em; }
  .menu {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    justify-content: center;
    gap: 7px;
  }
  .menu a { padding: 9px 13px; font-size: 14px; }
  .lang-switch {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: start;
    margin-top: 8px;
  }
}
.price-section .section-head.vertical p {
  display: inline-block;
  max-width: 760px;
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(215,25,32,.22), rgba(255,255,255,.055));
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
  color: #fff1e8;
  font-weight: 750;
}
.price-note { padding: 14px 18px; border-radius: 22px; }
.price-table-card { margin-top: 12px; border-radius: 22px; }
.price-table-card h3 { padding: 13px 16px; font-size: 17px; }
.price-table { min-width: 0; font-size: 14px; }
.price-table th, .price-table td { padding: 10px 12px; line-height: 1.35; }
.price-table th { font-size: 11px; }
.price-table td:not(:first-child), .price-table th:not(:first-child) { width: 120px; }
.clients-section { padding: 44px 0 54px; }
.logos { justify-content: center; gap: 12px; }
.logo-box {
  flex: 0 1 150px;
  min-height: 62px;
  background: linear-gradient(180deg, rgba(13,8,8,.98), rgba(2,1,1,.98));
  border-color: rgba(255,255,255,.18);
}
.logo-box img { max-width: 124px; max-height: 38px; }
.messenger-float {
  right: 18px;
  bottom: 20px;
  flex-direction: column;
  align-items: stretch;
  max-width: 135px;
  gap: 8px;
}
.messenger-float a {
  width: 100%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: .02em;
}
.messenger-buttons .btn { gap: 0; }
@media (max-width: 980px) {
  .nav { display: flex !important; align-items: center; justify-content: space-between; }
  .brand { flex-direction: row !important; text-align: left !important; }
  .brand img { width: 142px !important; max-height: 62px !important; }
  .lang-switch { order: 3; margin-left: auto; }
}
@media (max-width: 700px) {
  .price-table-card { overflow: visible; }
  .price-table, .price-table thead, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tr { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.11); }
  .price-table td { padding: 4px 0; border: 0; }
  .price-table td:first-child { font-size: 13px; color: #fff6ef; margin-bottom: 5px; }
  .price-table td:not(:first-child) { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: right; white-space: normal; font-size: 13px; color: #ffd2c7; }
  .price-table td:nth-child(2)::before { content: 'До 30 сек'; color: var(--muted); font-weight: 800; text-align: left; }
  .price-table td:nth-child(3)::before { content: 'До 30 сек'; color: var(--muted); font-weight: 800; text-align: left; }
  .price-table.two-col td:nth-child(2)::before { content: 'Стоимость'; }
  .price-table td:empty { display: none; }
}
html[lang="lv"] .price-table td:nth-child(2)::before { content: 'Līdz 30 sek.'; }
html[lang="lv"] .price-table td:nth-child(3)::before { content: 'Līdz 30 sek'; }
html[lang="lv"] .price-table.two-col td:nth-child(2)::before { content: 'Cena'; }
html[lang="en"] .price-table td:nth-child(2)::before { content: 'Up to 30 sec'; }
html[lang="en"] .price-table td:nth-child(3)::before { content: 'Up to 30 sec'; }
html[lang="en"] .price-table.two-col td:nth-child(2)::before { content: 'Price'; }
@media (max-width: 560px) {
  .price-section .section-head.vertical p { display: block; padding: 14px 15px; font-size: 14px; }
  .logos { gap: 9px; }
  .logo-box { flex: 0 1 calc(50% - 9px); min-height: 54px; }
  .messenger-float {
    left: 12px;
    right: 12px;
    bottom: 10px;
    max-width: none;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  .messenger-float a { flex: 1; width: auto; padding: 10px 8px; border-radius: 15px; font-size: 11px; }
  .footer { padding-bottom: 86px; }
}

.bank-line{display:block;margin:3px 0;color:#f8e4d8;font-weight:400;}
@media (min-width: 701px) {
  .price-table td::before { content: none !important; }
}
@media (max-width: 700px) {
  html[lang="lv"] .price-table td:nth-child(2)::before { content: 'Līdz 30 sek.' !important; }
  html[lang="lv"] .price-table td:nth-child(3)::before { content: 'Līdz 30 sek' !important; }
  html[lang="lv"] .price-table.two-col td:nth-child(2)::before { content: 'Cena' !important; }
  html[lang="en"] .price-table td:nth-child(2)::before { content: 'Up to 30 sec' !important; }
  html[lang="en"] .price-table td:nth-child(3)::before { content: 'Up to 30 sec' !important; }
  html[lang="en"] .price-table.two-col td:nth-child(2)::before { content: 'Price' !important; }
}

/* v6 mobile header and compact messenger footer refinements */
@media (max-width: 980px) {
  .topbar { overflow: visible; }
  .topbar .wrap { width: min(100% - 24px, 1180px); }
  .nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 0 12px;
    position: relative;
  }
  .brand {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 4px !important;
    min-width: 0;
  }
  .brand img {
    width: 156px !important;
    max-height: 66px !important;
  }
  .brand > div {
    color: #fff;
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: .06em;
  }
  .brand span {
    display: block !important;
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .lang-switch {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-self: center;
    order: initial !important;
    margin: 0 !important;
  }
  .mobile-toggle {
    display: inline-flex !important;
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
  }
  .menu {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 80;
  }
}
@media (max-width: 560px) {
  .nav { gap: 7px 8px; padding-top: 8px; }
  .brand img { width: 148px !important; max-height: 62px !important; }
  .brand > div { font-size: 12px; }
  .brand span { font-size: 8px; letter-spacing: .1em; }
  .lang-switch { gap: 5px; padding: 4px; border-radius: 999px; }
  .lang-switch a { padding: 7px 8px; font-size: 11px; }
  .mobile-toggle { min-height: 34px; padding: 7px 12px; font-size: 12px; }
  .messenger-float {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(92vw, 300px);
    max-width: 300px;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border-radius: 20px;
    background: rgba(8,5,5,.86);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 14px 36px rgba(0,0,0,.42);
    backdrop-filter: blur(12px);
  }
  .messenger-float a {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 8px 6px;
    border-radius: 14px;
    font-size: 10px;
    line-height: 1;
    box-shadow: none;
  }
  .footer { padding-bottom: 78px; }
}
@media (max-width: 360px) {
  .brand img { width: 136px !important; }
  .brand > div { font-size: 11px; }
  .lang-switch a { padding: 6px 7px; }
  .messenger-float { width: min(94vw, 280px); }
  .messenger-float a { font-size: 9.5px; padding: 7px 4px; }
}

/* v8 requested targeted refinements */
.service-calc-brief{margin-top:14px;border-color:rgba(255,255,255,.12);}
.service-calc-brief h3{margin-bottom:8px;}
.service-calc-brief p{margin:0;color:#ead8d2;}
.mobile-inline-bank{display:none;}
@media (max-width: 760px){
  .mobile-inline-bank{display:block;margin:14px 0 10px;padding:12px;border-radius:16px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);}
  .mobile-inline-bank h2{font-size:16px;margin:0 0 8px;}
  .mobile-inline-bank p{margin:4px 0;color:#ead8d2;font-size:13px;line-height:1.45;}
  .bank-card .bank-account-part{display:none;}
  .bank-card hr:first-of-type{display:none;}
}


/* v14: audio card rows keep the previous card design, while incomplete final rows are centered */
.voices,
.portfolio {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}
.voice-card,
.audio-card {
  flex: 0 1 calc((100% - 36px) / 3);
  min-width: 250px;
  max-width: 360px;
  box-sizing: border-box;
}
.voice-card audio,
.audio-card audio {
  width: 100%;
}
.voice-group-title,
.portfolio-group-title {
  flex: 0 0 100%;
  width: 100%;
  margin: 16px 0 2px;
  text-align: left;
}
@media (max-width: 900px) {
  .voice-card,
  .audio-card {
    flex-basis: calc((100% - 18px) / 2);
    max-width: 420px;
  }
}
@media (max-width: 560px) {
  .voices,
  .portfolio {
    gap: 12px;
  }
  .voice-card,
  .audio-card {
    flex-basis: 100%;
    min-width: 0;
    max-width: none;
    padding: 14px;
    border-radius: 20px;
  }
  .voice-card h3,
  .audio-card h3 {
    font-size: 16px;
  }
  .voice-card p,
  .audio-card p {
    font-size: 13px;
  }
}

/* v15: header shows the slogan as the main visible brand text */
.brand > div {
  color: #fff;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: none;
  text-shadow: 0 0 18px rgba(255,255,255,.18), 0 0 22px rgba(215,25,32,.18);
}
@media (max-width: 560px) {
  .brand > div { font-size: 13px; line-height: 1.2; text-align: center; }
}

/* v16: refined slogan style in the header, based on stable v15 */
.brand > div {
  color: #e9a3b4 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700 !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
  font-size: 18px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.7), 0 0 16px rgba(233,163,180,.18) !important;
}
@media (max-width: 980px) {
  .brand > div {
    color: #e9a3b4 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px !important;
    letter-spacing: .02em !important;
    text-shadow: 0 2px 9px rgba(0,0,0,.72), 0 0 12px rgba(233,163,180,.14) !important;
  }
}
@media (max-width: 560px) {
  .brand > div { font-size: 14px !important; }
}

/* v17: soft premium slogan badge in the header */
.brand > div {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 13px 8px;
  border: 1px solid rgba(224, 166, 77, .34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(224,166,77,.075));
  color: #f4d7a7 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: .035em !important;
  text-transform: none !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.18);
  white-space: nowrap;
}

@media (min-width: 981px) {
  .brand > div {
    font-size: 16px !important;
    padding: 8px 15px 9px;
  }
}

@media (max-width: 560px) {
  .brand > div {
    font-size: 12px !important;
    padding: 6px 10px 7px;
    letter-spacing: .015em !important;
    white-space: normal;
    text-align: center;
  }
}


/* v22: fixes for rules links, Android audio controls and mobile menu stability */
.brief-link,
.brief-link:visited,
.rules-content a[href*="brief_"] {
  text-decoration: none !important;
}
.brief-link:hover,
.rules-content a[href*="brief_"]:hover {
  text-decoration: none !important;
}
html.is-android .voice-card audio,
html.is-android .audio-card audio {
  filter: invert(1) hue-rotate(180deg) brightness(.88) contrast(.95);
}
@media (max-width: 980px) {
  .menu.open {
    display: grid !important;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
  }
  .menu a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }
}


/* v24: compact price tables after removing 15 sec column */
@media (max-width: 700px) {
  .price-table td:nth-child(2)::before,
  .price-table td:nth-child(3)::before { content: none !important; }

  .price-table.studio-prices td:nth-child(2)::before {
    content: 'До 30 сек' !important;
    color: var(--muted);
    font-weight: 800;
    text-align: left;
  }
  html[lang="lv"] .price-table.studio-prices td:nth-child(2)::before { content: 'Līdz 30 sek.' !important; }
  html[lang="en"] .price-table.studio-prices td:nth-child(2)::before { content: 'Up to 30 sec' !important; }

  .price-table.two-col td:nth-child(2)::before {
    content: 'Стоимость' !important;
    color: var(--muted);
    font-weight: 800;
    text-align: left;
  }
  html[lang="lv"] .price-table.two-col td:nth-child(2)::before { content: 'Cena' !important; }
  html[lang="en"] .price-table.two-col td:nth-child(2)::before { content: 'Price' !important; }

  .price-table.extra-services td:nth-child(2)::before {
    content: 'Объём' !important;
    color: var(--muted);
    font-weight: 800;
    text-align: left;
  }
  .price-table.extra-services td:nth-child(3)::before {
    content: 'Стоимость' !important;
    color: var(--muted);
    font-weight: 800;
    text-align: left;
  }
  html[lang="lv"] .price-table.extra-services td:nth-child(2)::before { content: 'Apjoms' !important; }
  html[lang="lv"] .price-table.extra-services td:nth-child(3)::before { content: 'Cena' !important; }
  html[lang="en"] .price-table.extra-services td:nth-child(2)::before { content: 'Scope' !important; }
  html[lang="en"] .price-table.extra-services td:nth-child(3)::before { content: 'Price' !important; }
}


/* v25: Android/mobile menu active-state and tap stability fix */
@media (max-width: 980px) {
  .menu.open {
    position: static !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    margin-top: 4px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 120 !important;
    box-sizing: border-box !important;
    gap: 6px !important;
  }
  .menu.open a {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    line-height: 1.25 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

.voice-info-card {
  max-width: 880px;
  margin: 12px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.voice-info-card p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

.voice-info-card span {
  color: rgba(255,255,255,.68);
}

@media (max-width: 640px) {
  .voice-info-card {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .voice-info-card p {
    font-size: .92rem;
    line-height: 1.48;
  }
}

/* v29: compact mini-card for voice intro */
.voice-info-card {
  max-width: 760px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 10, 9, .86), rgba(42, 20, 18, .72));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.voice-info-card p {
  margin: 0;
  color: rgba(255, 242, 237, .86);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.voice-info-card span {
  color: rgba(255, 210, 190, .82);
}

@media (max-width: 720px) {
  .voice-info-card {
    max-width: calc(100% - 16px);
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 14px;
  }

  .voice-info-card p {
    font-size: 12px;
    line-height: 1.42;
  }
}
