/*
Theme Name: Скупка-мет
Theme URI: https://skypka-met.by
Author: Скупка-мет
Description: Одностраничная тема для приёма металлолома. Металлолом Минск, Заславль.
Version: 1.0
Text Domain: skypka-met
*/

/* ========== CSS Variables ========== */
:root {
  --bg-dark: #34323e;
  --bg-mid: #737285;
  --accent-gold: #fea305;
  --accent-yellow: #ffd544;
  --accent-orange: #ff981e;
  --accent-red: #d44833;
  --green: #8baa23;
  --bronze: #b79b67;
  --red-dark: #ae222f;
  --orange-light: #ff9d4a;
  --red-bright: #d3031d;
  --text-light: #f5f5f5;
  --text-muted: rgba(255,255,255,0.85);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --radius: 12px;
  --header-h: 72px;
}

/* ========== Fonts ========== */
@font-face {
  font-family: 'Angry';
  src: url('font/Angry.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Busorama';
  src: url('font/busorama.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Wremena';
  src: url('font/Wremena.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Wremena';
  src: url('font/Wremena-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bremen';
  src: url('font/a_Bremen.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(52, 50, 62, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: var(--shadow);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-name {
  font-family: 'Angry', sans-serif;
  font-size: 1.75rem;
  color: var(--accent-yellow);
  letter-spacing: 0.02em;
  margin: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== Overlay branches ========== */
.screen-branches {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1500;
}

.screen-branches--top {
  top: 0;
}

.screen-branches--bottom {
  bottom: auto;
}

.screen-branches__img {
  position: absolute;
  opacity: 0.9;
  max-width: 260px;
}

.screen-branches__img--left {
  left: -40px;
}

.screen-branches--top .screen-branches__img--left {
  top: 10vh;
}

.screen-branches--bottom .screen-branches__img--left {
  bottom: 8vh;
}

.screen-branches__img--right {
  right: -40px;
}

.screen-branches--top .screen-branches__img--right {
  top: 22vh;
}

.screen-branches--bottom .screen-branches__img--right {
  bottom: 16vh;
}

@media (max-width: 600px) {
  .screen-branches {
    display: none;
  }
}

.header-phone .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: var(--bg-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(254, 163, 5, 0.4);
}

.header-phone .phone-number {
  white-space: nowrap;
}

.header-phone .phone-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 163, 5, 0.5);
  text-decoration: none;
}

/* ========== Main content offset ========== */
main { padding-top: var(--header-h); }

/* ========== Hero ========== */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 40px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: 'Busorama', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent-yellow);
  margin: 0 0 16px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text .hero-sub {
  font-family: 'Bremen', 'Montserrat', sans-serif;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-text .hero-seo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin: 12px 0 0;
}

.hero-text .hero-address {
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.hero-text .hero-address a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffd544;
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 213, 68, 0.4);
}

.hero-text .hero-address a:hover {
  text-decoration: none;
  opacity: 0.95;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(254, 163, 5, 0.15);
}

.hero-bg-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-dark));
}

.hero-spin-wrap {
  position: absolute;
  left: -6%;
  top: -6%;
  width: 20%;
  max-width: 110px;
  z-index: 1;
  animation: spin 8s linear infinite;
}

.hero-spin-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== Sections common ========== */
section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Angry', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--accent-yellow);
  text-align: center;
  margin: 0 0 40px;
}

.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: var(--text-muted);
  margin: -24px 0 32px;
  font-size: 1rem;
}

/* ========== Why trust us ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 213, 68, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.why-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  border-radius: 50%;
  font-size: 28px;
}

.why-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text-light);
}

.why-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Calculator ========== */
.calc-wrap {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 213, 68, 0.25);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
}

.calc-wrap label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.calc-wrap select,
.calc-wrap input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border: 2px solid rgba(255, 213, 68, 0.4);
  border-radius: 8px;
  background: rgba(52, 50, 62, 0.8);
  color: var(--text-light);
}

.calc-wrap select:focus,
.calc-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.calc-wrap .btn-calc {
  width: 100%;
  padding: 14px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.calc-wrap .btn-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 163, 5, 0.4);
}

.calc-result {
  margin-top: 24px;
  padding: 20px;
  background: rgba(139, 170, 35, 0.2);
  border: 1px solid var(--green);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  display: none;
}

.calc-result.visible { display: block; }

.calc-result .sum {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

/* ========== We offer ========== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.offer-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 213, 68, 0.25);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.offer-card:hover { transform: translateY(-4px); }

.offer-card .offer-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  border-radius: 12px;
  font-size: 26px;
  animation: pulse-icon 2s ease-in-out infinite;
}

.offer-card:nth-child(2) .offer-icon { animation-delay: 0.3s; }
.offer-card:nth-child(3) .offer-icon { animation-delay: 0.6s; }
.offer-card:nth-child(4) .offer-icon { animation-delay: 0.9s; }

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.offer-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text-light);
}

.offer-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Reviews ========== */
.reviews-wrapper {
  overflow: hidden;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 213, 68, 0.25);
  border-radius: var(--radius);
  padding: 24px;
}

.review-card .stars {
  color: var(--accent-yellow);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.review-card .review-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-style: italic;
}

.review-card .review-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.reviews-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.reviews-dot.is-active {
  background: var(--accent-yellow);
}

/* ========== Footer ========== */
.site-footer {
  padding: 40px 24px 24px;
  background: rgba(52, 50, 62, 0.9);
  border-top: 2px solid var(--accent-gold);
  margin-top: 40px;
  position: relative;
  overflow: visible;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.footer-cookie-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  background: transparent;
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.footer-cookie-btn:hover {
  background: var(--accent-yellow);
  color: var(--bg-dark);
}

/* ========== FAQ ========== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-card {
  perspective: 1000px;
  cursor: pointer;
}

.faq-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.faq-card.is-flipped .faq-card-inner {
  transform: rotateY(180deg);
}

.faq-face {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 213, 68, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq-face.back {
  transform: rotateY(180deg);
}

.faq-question {
  font-family: 'Bremen', 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--accent-yellow);
}

.faq-answer {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Cookie modal ========== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-overlay.visible { display: flex; }

.cookie-modal {
  background: var(--bg-dark);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius);
  max-width: 560px;
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
}

.cookie-modal h3 {
  font-family: 'Angry', sans-serif;
  color: var(--accent-yellow);
  margin: 0 0 16px;
}

.cookie-modal p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.cookie-modal .close-cookie {
  margin-top: 20px;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* ========== Scroll to top ========== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(254, 163, 5, 0.5);
  transition: transform 0.2s, opacity 0.3s;
}

.scroll-top.visible { display: flex; }

.scroll-top:hover {
  transform: translateY(-4px);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 { text-align: center; }
  .hero-text .hero-sub { text-align: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero-spin-wrap { left: -6%; top: -6%; width: 20%; max-width: 110px; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }

  .site-header {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 8px;
    min-height: var(--header-h);
    height: auto;
    padding: 10px 16px;
  }

  .site-name { font-size: 1.35rem; }
  .site-logo { width: 40px; height: 40px; }

  .header-phone .phone-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .header-phone .phone-number {
    display: none;
  }

  .hero { padding: 24px 16px 40px; }
  .hero-spin-wrap { left: -6%; top: -6%; width: 20%; max-width: 110px; }

  section { padding: 40px 16px; }

  .why-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

  .calc-wrap { padding: 20px; }

  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .cookie-modal { padding: 20px; margin: 16px; }
}

@media (max-width: 768px) {
  .reviews-wrapper {
    overflow: hidden;
  }

  .reviews-grid {
    display: flex;
    gap: 0;
    transition: transform 0.4s ease;
  }

  .reviews-grid .review-card {
    flex: 0 0 100%;
    min-width: 0;
  }

  .reviews-dots {
    display: flex;
  }
}

@media (max-width: 380px) {
  .site-brand { gap: 8px; }
  .site-name { font-size: 1.2rem; }
}
