/*
Theme Name: Partonex
Theme URI: https://partonex.example
Author: Partonex
Author URI: https://partonex.example
Description: Современный одностраничный лендинг для оптовых поставок автозапчастей из Китая. Стилизован через Tailwind CSS (CDN). Чистый, конверсионный B2B-дизайн.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: partonex
Tags: one-page, landing, business, custom-colors, custom-menu, responsive
*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1F2937;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-bg {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.78)),
    url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tg-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #F37021;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(243, 112, 33, 0.35), 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tg-float:hover,
.tg-float:focus-visible {
  transform: translateY(-2px);
  background: #D85F18;
  box-shadow: 0 14px 30px rgba(243, 112, 33, 0.45), 0 6px 14px rgba(0, 0, 0, 0.2);
  outline: none;
}

.snap-x-scroll {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.snap-x-scroll > * {
  scroll-snap-align: start;
}

.messenger-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.messenger-pill > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  background: #fff;
  color: #1F2937;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.messenger-pill input[type="radio"]:checked + span {
  border-color: #F37021;
  background: #FFF4EC;
  color: #B14A10;
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.15);
}

.messenger-pill input[type="radio"]:focus-visible + span {
  outline: 2px solid #F37021;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F37021;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}
