/* ============================================
   БАРЕНЦ ТРЕЙДИНГ — Minimalist Dark Design System
   Font: Comfortaa (Designed by Johan Aakerlund)
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-bg: #0C1425;
  --color-bg-alt: #080D19;
  --color-peach: #F4A683;
  --color-peach-hover: #FFAF8C;
  
  --color-text: rgba(255, 255, 255, 0.88);
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-text-heading: #FFFFFF;

  /* Typography — Comfortaa */
  --font: 'Comfortaa', cursive, sans-serif;

  --fs-hero-1: clamp(3.5rem, 9.5vw, 8.5rem);
  --fs-hero-2: clamp(2.8rem, 7.5vw, 6.5rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.25;
  --lh-normal: 1.65;
  --lh-relaxed: 1.85;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-wide: 1440px;

  --header-height: 90px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text-heading);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  background-color: var(--color-bg);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   WAVE CREST DIVIDERS (Морская волна гребень)
   ============================================ */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
  z-index: 5;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 52px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header--transparent {
  background-color: transparent;
}

.header--scrolled {
  background-color: rgba(12, 20, 37, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  text-decoration: none;
}

.header__logo img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header__logo:hover img {
  transform: scale(1.04);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: #FFFFFF;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  z-index: 1001;
  cursor: pointer;
}

.burger__line {
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger--active .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger--active .burger__line:nth-child(2) { opacity: 0; }
.burger--active .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(12, 20, 37, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav__link {
  font-size: 1.35rem;
}

/* ============================================
   BRAND NEW UNIQUE HERO SECTION
   Pure Brand Statement: БАРЕНЦ ТРЕЙДИНГ
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(12, 20, 37, 0.85) 0%,
    rgba(12, 20, 37, 0.45) 50%,
    rgba(12, 20, 37, 0.75) 100%
  );
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
}

.hero__brand-word-1 {
  font-size: var(--fs-hero-1);
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
}

.hero__brand-word-2 {
  font-size: var(--fs-hero-2);
  font-weight: var(--fw-light);
  color: var(--color-peach);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.1;
  margin-top: 0.1em;
}

.hero__brand-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-top: 1.25rem;
  padding-left: 4px;
}

/* Minimalist Down Arrow */
.hero__scroll {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  animation: floatDown 2s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--color-peach);
}

.hero__scroll-icon {
  width: 32px;
  height: 32px;
}

@keyframes floatDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  height: 38vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 20, 37, 0.65) 0%, rgba(12, 20, 37, 0.9) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero__title {
  font-size: var(--fs-h1);
  color: #FFFFFF;
  margin-bottom: var(--space-xs);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.page-hero__breadcrumb span {
  color: var(--color-text);
}

/* ============================================
   BUTTONS (Only Peach buttons allowed)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  padding: 14px 34px;
  border-radius: 30px;
  transition: all 0.35s ease;
}

.btn--primary {
  background-color: var(--color-peach);
  color: var(--color-bg);
}

.btn--primary:hover {
  background-color: var(--color-peach-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-peach);
  border: 1.5px solid var(--color-peach);
}

.btn--outline:hover {
  background-color: var(--color-peach);
  color: var(--color-bg);
  transform: translateY(-2px);
}

/* Text link button */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-peach);
  transition: gap 0.3s ease;
}

.link-btn:hover {
  gap: 14px;
}

.link-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   OVERLAPPING IMAGE + TEXT BLOCKS (Based on User Red Box Diagram)
   Image is HUGE, overlaps UNDER the text from 30% of section width
   ============================================ */
.about-block {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: var(--space-2xl) 0;
}

.about-block__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.about-block__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.about-block__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.about-block__text {
  font-size: var(--fs-body-lg);
  color: var(--color-text);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.about-block__image-wrapper {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 75%;
  max-width: 1050px;
  height: 100%;
  max-height: 600px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.about-block--reverse {
  justify-content: flex-end;
}

.about-block--reverse .about-block__content {
  margin-left: auto;
}

.about-block--reverse .about-block__image-wrapper {
  right: auto;
  left: -8%;
}

.about-block__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  background: transparent;
}

/* ============================================
   MINIMALIST PRODUCT SLIDER (2 products per view, borderless)
   ============================================ */
.product-card {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card__image {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: var(--space-md);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 0;
}

.product-card__category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.product-card__title {
  font-size: var(--fs-h3);
  color: #FFFFFF;
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

/* Minimalist Swiper Navigation Arrows (Frameless) */
.swiper-button-next,
.swiper-button-prev {
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color 0.3s ease, transform 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #FFFFFF !important;
  transform: scale(1.15) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: normal !important;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3) !important;
}

.swiper-pagination-bullet-active {
  background: #FFFFFF !important;
}

/* ============================================
   FRAMELESS FEATURES SECTION (Spacious & Minimalist)
   ============================================ */
.feature-card {
  text-align: left;
  padding: var(--space-md) 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #FFFFFF;
  background: transparent;
  border: none;
}

.feature-card__icon svg {
  width: 32px;
  height: 32px;
}

.feature-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.feature-card__desc {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* ============================================
   CERTIFICATIONS & STANDARDS (Spacious & Minimalist)
   ============================================ */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding: var(--space-2xl) 0;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.trust-badge:hover {
  opacity: 1;
}

.trust-badge__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: transparent;
  border: none;
}

.trust-badge__icon svg {
  width: 36px;
  height: 36px;
}

.trust-badge__text {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-align: center;
  color: var(--color-text);
}

/* ============================================
   BORDERLESS ACCORDION & CATALOG ITEMS
   ============================================ */
.accordion {
  border: none;
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  cursor: pointer;
  background: transparent;
  border: none;
  color: #FFFFFF;
}

.accordion__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.accordion__item--open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__body-inner {
  padding: 0 0 var(--space-md) 0;
  color: var(--color-text-muted);
}

/* Catalog item */
.catalog-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.catalog-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: transparent;
}

.catalog-item__name {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.catalog-item__latin {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   CONTACT FORM & CARDS
   ============================================ */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: transparent;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__title {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  margin-bottom: 4px;
}

.contact-card__text {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.contact-form__input,
.contact-form__textarea {
  font-family: var(--font);
  font-size: var(--fs-body);
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--color-peach);
}

.contact-form__textarea {
  min-height: 120px;
  resize: vertical;
}

/* Map Wrapper */
.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  padding-top: var(--space-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
  font-size: var(--fs-small);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.footer__heading {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.footer__link:hover {
  color: #FFFFFF;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
}

.footer__contact-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--color-text-muted);
}

.footer__bottom {
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about-block, .about-block--reverse {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }
  .about-block__image-wrapper, .about-block--reverse .about-block__image-wrapper {
    position: relative;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    top: 0;
    margin-top: var(--space-lg);
  }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .product-card__image { height: 260px; }
  .trust-badges { gap: var(--space-lg); }
}
