/* =========================================================
   Ювелірний Магазин — основні стилі (темна navy-тема)
   ========================================================= */

:root {
  --gold: #d4af37;
  --gold-light: #f2d789;
  --gold-dark: #a9821f;
  --blue: #2f6fed;
  --blue-light: #5a8cf5;
  --blue-dark: #1c4bc4;
  --navy-950: #060d18;
  --navy-900: #0b1830;
  --navy-800: #112544;
  --navy-700: #1b3358;
  --navy-600: #274a80;
  --black: #05090f;
  --text: #eef2f8;
  --text-light: #a9b8cc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);
  --header-h: 108px;
  --header-h-mobile: 122px;
  --font-head: "Playfair Display", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.65;
  padding-top: var(--header-h);
}

body.has-mobile-padding {
  padding-top: var(--header-h-mobile);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.breadcrumbs {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs .sep { opacity: 0.45; padding: 0 2px; }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

.section--alt {
  background: var(--navy-900);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 720px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--gold {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy-950);
  border-color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--navy-950);
}

/* ---------------- Top utility bar ---------------- */
.topbar {
  background: var(--black);
  color: var(--text-light);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar__phone {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.topbar__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.topbar__socials a:hover {
  background: var(--gold);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.topbar__socials svg { width: 16px; height: 16px; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(10, 20, 38, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-light);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.main-nav a.is-active {
  color: var(--gold-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone svg {
  width: 20px;
  height: 20px;
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--navy-700);
  background: var(--navy-800);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: rotate(45deg) translate(4px, 5px); background: var(--text); }
.nav-toggle.is-open span::after { transform: rotate(-45deg) translate(4px, -5px); background: var(--text); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__content h1 {
  margin-bottom: 18px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero__badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__badge svg { width: 16px; height: 16px; color: var(--gold-light); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------------- Trust stats ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat__num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------------- Shop gallery (real photos) ---------------- */
.shop-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  max-width: 640px;
}

.shop-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--navy-700);
  background: var(--navy-900);
}

.shop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3 / 4;
}

.shop-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(0deg, rgba(6,13,24,0.85), rgba(6,13,24,0));
}

/* ---------------- Cards / nav blocks ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.4);
}

.card__media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  min-width: 0;
  background: var(--navy-900);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__body h3 { margin-bottom: 2px; }

.card__body p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin-bottom: 0;
  flex: 1;
}

.card__link {
  margin-top: 12px;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- Steps ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.step {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------------- Price table ---------------- */
.price-note {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.price-table-wrap {
  overflow-x: auto;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.price-table caption {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px 6px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.price-table thead th {
  background: var(--black);
  color: var(--text);
  text-align: left;
  padding: 14px 16px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.price-table thead th:first-child { border-top-left-radius: 10px; }
.price-table thead th:last-child { border-top-right-radius: 10px; }

.price-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--navy-700);
  font-size: 0.98rem;
  color: var(--text);
}

.price-table tbody tr:nth-child(even) {
  background: var(--navy-900);
}

.price-table tbody td:last-child {
  font-weight: 800;
  color: var(--gold-light);
}

/* ---------------- Accepting list ---------------- */
.accept-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.accept-item {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.accept-item svg { width: 22px; height: 22px; color: var(--gold-light); flex-shrink: 0; }

/* ---------------- FAQ ---------------- */
.faq {
  margin-top: 20px;
}

.faq-item {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-light);
  margin: 0;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-light);
  border-radius: 22px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--text-light); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--black);
  color: var(--text-light);
  padding: 56px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img { width: 38px; height: 38px; }

.footer-brand span {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.footer-socials svg { width: 17px; height: 17px; }

.footer-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-map iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

.footer-bottom {
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(169, 184, 204, 0.6);
}

/* ---------------- Floating mobile action bar ---------------- */
.float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 600;
}

.float-actions a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  color: var(--white);
}

.float-actions svg { width: 24px; height: 24px; }

.fa-call { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.fa-whatsapp { background: #25D366; }
.fa-viber { background: #7360F2; }
.fa-telegram { background: #29A9EA; }

/* ---------------- Mobile call bar ---------------- */
.mobile-callbar {
  display: none;
}

/* ---------------- Responsive ---------------- */
/* Reserve horizontal clearance so page content never sits under the
   fixed float-actions dock (52px buttons + 16px offset = 68px footprint). */
@media (max-width: 1400px) {
  .container { padding-right: 80px; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .accept-list { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .navwrap { flex-wrap: wrap; }

  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
  }

  .site-header.is-open .main-nav a {
    width: 100%;
    padding: 10px 4px;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 96px; }
  .container { padding-right: 66px; }
  .topbar__socials a:nth-child(n+4) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .accept-list { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-band { flex-direction: column; text-align: center; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-actions { bottom: 14px; right: 12px; }
  .float-actions a { width: 46px; height: 46px; }
  .float-actions svg { width: 20px; height: 20px; }
  body { padding-bottom: 6px; }
}

/* Extra-narrow phones (e.g. 320-360px): give long nowrap CTA labels
   and the topbar phone room to breathe instead of forcing layout to widen. */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
}

@media (max-width: 360px) {
  .topbar__socials { display: none; }
}
