/*
 * FEORY multi‑page website styles
 * Author: ChatGPT
 * Description: Shared stylesheet for a modern B2B site with multiple pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@600;700&display=swap');

html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1C1C1C;
  background-color: #FFFFFF;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: #1C1C1C;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Layout containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* Navigation */
.nav {
  background-color: #1C1C1C;
  color: #FFFFFF;
}

.nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav a.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
}

.nav ul li a:hover {
  text-decoration: underline;
}

/* Hero common styles */
.hero {
  background-color: #F5F6F7;
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1 1 50%;
  padding-right: 1rem;
}

.hero-text p.lead {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.hero-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #6A4C93;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #56397a;
}

/* Sections */
section {
  padding: 3rem 0;
}

.light-section {
  background-color: #F5F6F7;
}

.dark-section {
  background-color: #1C1C1C;
  color: #FFFFFF;
}

.dark-section a {
  color: #6A4C93;
}

/* Advantages, models and steps grids */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
}

/* Form */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex: 1 1 100%;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.5rem;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.submit-btn {
  margin-top: 1rem;
  background-color: #6A4C93;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #56397a;
}

/* Footer */
.footer {
  background-color: #1C1C1C;
  color: #FFFFFF;
  text-align: center;
  padding: 1rem 0;
}

/* Messenger links on contact page */
.messengers {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.messengers li {
  margin-bottom: 0.5rem;
}

.messengers a {
  color: #6A4C93;
  text-decoration: none;
  font-weight: 500;
}

.messengers a:hover {
  text-decoration: underline;
}

/* Icons for messenger links on the contact page */
.messenger-icons {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.messenger-icons img {
  width: 40px;
  height: 40px;
  display: block;
}

/*
  On medium and smaller screens we want the hero section to stack its text and
  image vertically rather than side‑by‑side.  We use a larger breakpoint
  (max‑width: 992px) so this applies on tablets as well as phones.  The
  navigation also shifts to a vertical layout and sections gain smaller
  padding.  The size chart retains its own breakpoint below.  See
  https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
  for details on media queries.
*/
@media (max-width: 992px) {
  /* Stack hero content on medium and small screens and center it */
  .hero-content {
    flex-direction: column;
    align-items: center;
  }
  .hero-text,
  .hero-image {
    /* do not let Flexbox redistribute height; let elements take their own height */
    flex: none;
    width: 100%;
    text-align: center;
    padding: 0;
  }
  /* add spacing above the hero image when stacked */
  .hero-image {
    margin-top: 1rem;
  }
  /* Reduce the heading size on mobile to prevent long titles from overflowing
     and allow the browser to break long words if necessary. */
  h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    word-break: break-word;
  }

  /* Navigation becomes vertical and centered */
  .nav .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
  }

  /* Section padding and grid adjustments */
  section {
    padding: 2rem 1rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .form-group {
    flex: 1 1 100%;
  }
}

/* Size chart */
.size-chart {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.size-chart th,
.size-chart td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #CCCCCC;
  text-align: left;
}

.size-chart th {
  background-color: #1C1C1C;
  color: #FFFFFF;
  font-weight: 600;
}

@media (max-width: 768px) {
  .size-chart {
    font-size: 0.9rem;
  }
}
/* ===== TESLA HERO FEORY ===== */

.hero {
    position: relative;
    min-height: 92vh;
    padding: 0;
    overflow: hidden;
}

/* картинка становится фоном */
.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

/* тёмная Tesla-плёнка поверх */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.8)
      );
    z-index: 2;
}
/* ===== TESLA HERO FEORY (FULL) ===== */

.hero{
  position: relative;
  min-height: 92vh;
  padding: 0;
  overflow: hidden;
}

/* картинка = фон во весь экран */
.hero-image{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}
/* затемнение Tesla */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.65),
    rgba(0,0,0,.35),
    rgba(0,0,0,.80)
  );
  z-index: 2;
}

/* текст поверх */
.hero-content{
  position: relative;
  z-index: 3;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-text{
  color:#fff;
  max-width: 620px;
}

.hero-text h1{
  color:#fff;
  font-size:56px;
  line-height:1.05;
}

.hero-text p{
  font-size:20px;
  opacity:.9;
}

/* кнопка под Tesla */
.hero .btn,
.hero button,
.hero a.button{
  border-radius: 999px;
}
/* FIX: вернуть текст поверх Tesla hero */
.hero .hero-text{
  position: relative !important;
  z-index: 9999 !important;
  display: block !important;
  opacity: 1 !important;
  color: #fff !important;
  padding: 40px 24px;
  max-width: 720px;
}

/* на случай если текст был скрыт старым стилем */
.hero .hero-text *{
  color: #fff !important;
}

/* выравнивание текста слева как у Tesla */
.hero .container.hero-content{
  justify-content: flex-start !important;
}
/* FULL WIDTH hero (убираем контейнерные ограничения) */
header.hero{
  width: 100vw;
  max-width: none !important;
  margin: 0 !important;
}

/* контейнер внутри hero растягиваем на всю ширину */
header.hero .container{
  max-width: none !important;
  width: 100% !important;
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}

/* фон-картинка точно на весь экран */
header.hero .hero-image{
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
}
header.hero .hero-image img{
  width: 100vw;
}
/* ===== CINEMATIC HERO TEXT ANIMATION ===== */

.hero-text {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTextIn 1.8s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-text h1 {
  animation-delay: 0.4s;
}

.hero-text p {
  animation-delay: 0.8s;
}

.hero-text .btn,
.hero-text .cta {
  animation-delay: 1.2s;
}

@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* ===== CINEMATIC: slow zoom + film grain ===== */

/* медленный кинозум фона */
.hero .hero-image img{
  transform: scale(1.08);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns{
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-10px); }
}

/* плёнка/зерно поверх (очень мягко) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index: 2;              /* важно: выше картинки, ниже текста */
  pointer-events:none;
  opacity: .10;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.10), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(0,0,0,.30), transparent 55%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 4px
    );
  animation: filmGrain 6s steps(8) infinite;
}

@keyframes filmGrain{
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%,1%); }
  40%  { transform: translate(1%,-2%); }
  60%  { transform: translate(2%,2%); }
  80%  { transform: translate(-1%,2%); }
  100% { transform: translate(0,0); }
}

/* если у человека включено "уменьшить анимацию" — выключаем */
@media (prefers-reduced-motion: reduce){
  .hero .hero-image img,
  .hero::before,
  .hero-text{ animation: none !important; }
  .hero-text{ opacity: 1 !important; transform: none !important; filter: none !important; }
}
.wholesale {
  padding: 56px 0;
}

.section-title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 22px;
  color: rgba(0,0,0,.65);
  font-size: 15px;
}

.wholesale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wh-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.wh-featured {
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.wh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wh-head h3 {
  margin: 0;
  font-size: 18px;
}

.wh-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

.wh-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 12px;
}

.wh-from {
  color: rgba(0,0,0,.55);
  font-size: 13px;
}

.wh-value {
  font-size: 36px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.wh-curr {
  font-size: 18px;
  font-weight: 600;
}

.wh-per {
  color: rgba(0,0,0,.55);
  font-size: 13px;
}

.wh-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(0,0,0,.75);
  font-size: 14px;
  line-height: 1.5;
}

.wh-btn {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.12);
  background: #111;
  color: #fff;
  transition: transform .12s ease, opacity .12s ease;
}

.wh-btn:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.wh-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.75);
  font-size: 14px;
}

/* Адаптив */
@media (max-width: 980px) {
  .wholesale-grid {
    grid-template-columns: 1fr;
  }
  .wh-featured {
    transform: none;
  }
}
/* SEO-блок: скрыт визуально, но доступен поисковым системам */
.seo-link {
  display: none;
}
.hero-image img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
}
/* Full width hero (force) */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-image,
.hero-image img {
  width: 100%;
}

.hero-image img {
  height: auto;
  display: block;
  border-radius: 0;
}
/* Hero: снять ограничение container */
.hero .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Картинка во всю ширину */
.hero-image img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
}
html, body {
  overflow-x: hidden;
}
body { outline: 10px solid red !important; }
/* FORCE rounded hero image + frame */
.hero .hero-image{
  border-radius: 16px !important;
  overflow: hidden !important;   /* важно: обрезает картинку по радиусу */
  border: 1px solid rgba(255,255,255,.12) !important;  /* рамка */
  box-shadow: 0 20px 60px rgba(0,0,0,.35) !important;  /* красиво */
}

.hero .hero-image img{
  border-radius: inherit !important;
  display: block !important;
}
/* === FORCE hero frame + radius (LAST RULE WINS) === */
.hero .hero-image{
  border-radius: 22px !important;
  overflow: hidden !important;

  /* рамка */
  border: 1px solid rgba(255,255,255,.18) !important;

  /* мягкая тень (премиум) */
  box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
}

.hero .hero-image img{
  border-radius: 22px !important; /* на всякий случай */
}
.hero .hero-image {
    border-radius: 24px;
    overflow: hidden;
}



/* ===== HERO FULL-WIDTH BACKGROUND (override) ===== */
header.hero{ position: relative; overflow: hidden; }

/* Make hero image a full-bleed background */
header.hero > .hero-image{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  z-index: 0 !important;
}
header.hero > .hero-image img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

/* Overlay + content above */
header.hero .hero-overlay,
header.hero::before{
  z-index: 1;
}
header.hero .hero-content{
  position: relative !important;
  z-index: 2 !important;
}

/* Turn off the old 2-column layout inside hero-content */
header.hero .hero-content .hero-image{ display:none !important; }

/* Optional: keep a little darkening so text is readable */
header.hero .hero-overlay{
  background: radial-gradient(60% 80% at 30% 30%, rgba(0,0,0,.25), rgba(0,0,0,.70)) !important;
}
/* чтобы фон/оверлей не перехватывали клики */
.hero-bg,
.hero-bg img,
.hero::before,
.hero-overlay {
  pointer-events: none !important;
}

/* чтобы текст и кнопка были выше всех слоёв */
.hero,
.hero-content,
.hero-text {
  position: relative;
  z-index: 3;
}

/* фон ниже */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* 1) выключаем плёнки */
header.hero::before,
header.hero::after{
  content: none !important;
  display: none !important;
}

/* 2) задаём чистый фон hero */
header.hero{
  background: #111 !important; /* можно заменить на #f5f5f7 для светлого */
}

/* 3) делаем текст читабельным */
header.hero .hero-text,
header.hero h1,
header.hero p{
  color: rgba(255,255,255,0.92) !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35) !important;
}
.cta-box{
  background:#f5f5f7;
  padding:60px;
  border-radius:20px;
  margin-top:60px;
}

.cta-buttons{
  display:flex;
  gap:20px;
  margin-top:20px;
  flex-wrap:wrap;
}
