:root {
  --red: #ff1f1f;
  --red-hover: #d60000;
  --black: #000;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik";
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 100px 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 70px;
  height: 4px;
  background: var(--red);
}

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

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

/* =========================
   NAVBAR
========================= */

nav {
  position: sticky;

  top: 0;

  z-index: 10000;

  line-height: normal;

  background: rgba(0, 0, 0, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 2px solid #ff1f1f;
}

.pionowa-linia {
  border-left: 1.5px solid #ff1f1f; /* Kolor i grubość kreski */
  height: 50px; /* Wysokość kreski */
  margin: 0 10px; /* Odstępy wokół kreski */
}

.center-info:hover {
  color: #ff1f1f;
}
.nav-container {
  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 2%;
}

.logo {
  font-size: 28px;

  font-weight: 800;

  letter-spacing: 1px;
}

.nav-right {
  display: flex;

  align-items: center;

  gap: 20px;
}

/* MENU */

.dropdown {
  position: relative;
}

.menu-btn {
  background: #111;

  color: white;

  border: 1px solid #333;

  padding: 12px 20px;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.menu-btn:hover {
  border-color: #ff1f1f;
}

.dropdown-content {
  display: none;

  position: absolute;

  right: 0;

  top: 120%;

  width: 240px;

  background: #080808;

  border: 1px solid #222;

  border-radius: 15px;

  overflow: hidden;

  z-index: 10001;
}

.dropdown-content a {
  display: block;

  padding: 15px 20px;

  color: white;

  text-decoration: none;
}

.dropdown-content a:hover {
  background: #ff1f1f;
}

.dropdown.active .dropdown-content {
  display: block;
}

/* =========================
   KOSZYK
========================= */

.menu-cart {
  color: white;
  font-size: 1rem;
  font-weight: 500;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  background: none;
  border: none;

  transition: 0.3s;
}

.menu-cart:hover {
  color: var(--red);
}

#cart-count {
  background: var(--red);

  color: white;

  font-size: 0.75rem;

  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

/* =========================
   MENU ROZWIJANE
========================= */

.nav-right {
  display: flex;

  align-items: center;

  gap: 15px;
}

.dropdown {
  position: relative;
}

.menu-btn {
  background: #111;

  color: white;

  border: 1px solid #333;

  padding: 12px 18px;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.menu-btn:hover {
  border-color: #ff1f1f;
}

.dropdown-content {
  position: absolute;

  top: 110%;

  right: 0;

  min-width: 250px;

  background: #080808;

  border: 1px solid #222;

  border-radius: 15px;

  overflow: hidden;

  display: none;

  z-index: 10001;
}

.dropdown-content a {
  display: block;

  padding: 15px 20px;

  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.dropdown-content a:hover {
  background: #111;

  color: #ff1f1f;
}

.dropdown-content .mobile-nav-link {
  display: none;
}

.dropdown.active .dropdown-content {
  display: block;
}

/* HERO */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2000");
  background-size: cover;
  background-position: center;
}

/* Smaller menu */
.menu-btn {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
}

.dropdown-content a {
  font-size: 0.88rem;
  padding: 12px 16px;
}

.menu-cart {
  font-size: 0.9rem;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 35px;
  background: var(--red);
  color: white;
  border: 2px solid var(--red);
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--red);
}

/* ABOUT */

.about {
  background: #050505;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #ccc;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.team-showcase {
  display: flex;
  gap: 10px;
  height: 420px;
  min-width: 0;
}

.team-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #222;
  border-radius: 10px;
  background: #090909;
  cursor: pointer;
  isolation: isolate;
  transition:
    flex 0.68s var(--smooth-ease),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.team-card.is-active,
.team-card:focus-visible {
  flex: 2.35 1 0;
  border-color: rgba(255, 31, 31, 0.62);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
}

.team-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 22%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.team-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.78);
  transition:
    transform 0.75s var(--smooth-ease),
    filter 0.4s ease;
}

.team-card.is-active img,
.team-card:focus-visible img {
  transform: scale(1.055);
  filter: saturate(0.95) brightness(0.9);
}

.team-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.team-card-content span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.15;
  white-space: normal;
}

.team-card-content p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #ddd;
  opacity: 0;
  translate: 0 12px;
  transition:
    max-height 0.55s var(--smooth-ease),
    margin 0.4s ease,
    opacity 0.38s ease 0.08s,
    translate 0.55s var(--smooth-ease);
}

.team-card.is-active .team-card-content p,
.team-card:focus-visible .team-card-content p {
  max-height: 120px;
  margin-top: 12px;
  opacity: 1;
  translate: 0 0;
}

/* STATS */

.stat h3 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--red);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat h3 {
  font-size: 4rem;
  font-weight: 800;
}

.stat p {
  font-weight: 600;
}

.counter {
  color: #ff1f1f;

  font-size: clamp(3rem, 6vw, 5rem);

  font-weight: 800;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  border: 1px solid #222;
  padding: 30px;
  transition: 0.3s;
  border-radius: 30px;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(255, 31, 31, 0.2);
  border-radius: 10px;
}

.card h3 {
  margin-bottom: 15px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 20px 0;
}

.price-custom {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

/* TRANSFORMATIONS */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery img {
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

/* TESTIMONIALS */

.testimonials {
  background: #050505;
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: center;
  margin-top: 50px;
}

.testimonial-viewport {
  min-width: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.testimonial-viewport.is-jumping {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.testimonial-grid {
  display: flex;
  gap: 24px;
}

.testimonial {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  min-height: 220px;
  padding: 30px;
  border: 1px solid #222;
  scroll-snap-align: start;
}

.testimonial p {
  color: #ccc;
  margin-bottom: 20px;
}

.testimonial h4 {
  font-size: 1rem;
}

.testimonial-arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #333;
  border-radius: 50%;
  background: #0b0b0b;
  color: white;
  font-size: 2.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}

.testimonial-arrow:hover:not(:disabled) {
  border-color: var(--red);
  background: var(--red);
}

.testimonial-arrow:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.testimonial-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.testimonial-arrow-prev {
  grid-column: 1;
}

.testimonial-arrow-next {
  grid-column: 3;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid #222;
  padding: 25px 0;
  cursor: pointer;
}

.question {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
  color: #aaa;
}

.answer p {
  padding-top: 15px;
}

/* CONTACT */

.contact {
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 18px;
  background: #111;
  border: 1px solid #222;
  color: white;
}

button {
  padding: 18px;
  background: white;
  color: black;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #ffb3b3;
  font-weight: 800;
  line-height: 1.5;
}

.form-status.is-success {
  color: #8cffb5;
}

.form-status.is-error {
  color: #ffb3b3;
}

.form-honey {
  display: none !important;
}

/* FOOTER */

footer {
  border-top: 1px solid #222;
  padding: 40px 0;
  text-align: center;
  color: #777;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-instagram,
.footer-facebook {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  color: white;
  transition: 0.3s;
}

.footer-instagram:hover,
.footer-facebook:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.footer-instagram svg,
.footer-facebook svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-facebook svg {
  fill: currentColor;
  stroke: none;
}

.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }
}

/* =========================
   FINALNY SZLIF
========================= */

.card,
.testimonial {
  border-radius: 8px;
  background: linear-gradient(180deg, #090909 0%, #050505 100%);
}

.card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.card p {
  color: #c7c7c7;
  flex: 1;
}

.card:hover {
  border-radius: 8px;
}

.gallery img {
  border-radius: 8px;
  border: 1px solid #222;
}

.gallery img {
  filter: grayscale(0.18) contrast(1.05);
  transition: 0.3s;
}

.gallery img:hover {
  filter: grayscale(0) contrast(1.1);
  transform: translateY(-6px);
}

.contact button {
  background: var(--red);
  color: white;
  border: 2px solid var(--red);
  transition: 0.3s;
}

.contact button:hover {
  background: transparent;
  color: var(--red);
}

input,
textarea {
  border-radius: 8px;
}

@media (max-width: 560px) {
  .nav-container {
    gap: 14px;
    flex-direction: column;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-content {
    right: auto;
    left: 0;
    width: min(88vw, 290px);
  }

  .hero {
    min-height: 86vh;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .services-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SLOTY NA TREŚCI KLIENTÓW
========================= */

.transformation-slot {
  min-height: 350px;
  border: 1px dashed rgba(255, 31, 31, 0.5);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #070707, #0f0f0f);
  color: #777;
  text-align: center;
}

.transformation-slot span {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transformation-slot p {
  color: #aaa;
  font-weight: 600;
}

.testimonial-editable {
  border-radius: 8px;
  background: #080808;
}

@media (max-width: 1180px) {
  .nav-container {
    gap: 16px;
    padding: 14px 4%;
  }

  .center-info,
  .pionowa-linia {
    display: none;
  }

  .dropdown-content .mobile-nav-link {
    display: block;
  }

  .logo {
    flex: 0 0 auto;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    white-space: nowrap;
  }

  .nav-right {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .nav-container {
    width: 100%;
    min-height: 64px;
    flex-direction: row;
    gap: 8px;
    padding: 10px 4%;
  }

  .logo {
    font-size: clamp(1.12rem, 5vw, 1.35rem);
    letter-spacing: 0.02em;
  }

  .nav-right {
    width: auto;
    gap: 8px;
    justify-content: flex-end;
  }

  .menu-btn {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .menu-cart {
    gap: 4px;
    font-size: 0.8rem;
  }

  #cart-count {
    width: 19px;
    height: 19px;
    font-size: 0.7rem;
  }

  .dropdown-content {
    right: 0;
    left: auto;
    width: min(88vw, 290px);
  }
}

@media (max-width: 900px) {
  section {
    padding: 76px 0;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - 74px);
    padding: 80px 0;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 8vw, 3.6rem);
  }

  .about-grid {
    gap: 36px;
  }

  .about-text h2,
  #services h2,
  #results h2,
  #opinieK h2,
  #faq h2,
  #contact h2 {
    font-size: clamp(2.15rem, 7vw, 2.8rem) !important;
  }

  .testimonial {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 560px) {
  .container {
    width: 92%;
  }

  .nav-container {
    width: 100%;
    min-height: 64px;
    flex-direction: row;
    gap: 8px;
    padding: 10px 4%;
  }

  .logo {
    font-size: clamp(1.12rem, 5vw, 1.35rem);
    letter-spacing: 0.02em;
  }

  .nav-right {
    width: auto;
    gap: 8px;
    justify-content: flex-end;
  }

  .menu-btn {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .menu-cart {
    gap: 4px;
    font-size: 0.8rem;
  }

  #cart-count {
    width: 19px;
    height: 19px;
    font-size: 0.7rem;
  }

  .dropdown-content {
    right: 0;
    left: auto;
    width: min(88vw, 290px);
  }

  section {
    padding: 64px 0;
  }

  .hero {
    min-height: calc(100svh - 64px);
    padding: 68px 0;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
  }

  .card,
  .testimonial {
    padding: 24px;
  }

  .transformation-slot {
    min-height: 280px;
  }

  .testimonial-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .testimonial-arrow {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .testimonial {
    flex-basis: 100%;
    min-height: 210px;
  }

  .contact form {
    margin-top: 38px;
  }

  input,
  textarea,
  button {
    font-size: 16px;
  }

  footer {
    padding: 32px 5%;
  }
}

@media (max-width: 560px) {
  .team-showcase {
    height: 610px;
    flex-direction: column;
  }

  .team-card {
    min-height: 0;
  }

  .team-card.is-active,
  .team-card:focus-visible {
    flex: 2.1 1 0;
  }

  .team-card-content {
    padding: 18px;
  }

  .team-card-content h3 {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.02rem;
  }

  .menu-btn {
    padding-inline: 9px;
  }

  .menu-cart {
    font-size: 0;
  }

  .menu-cart::before {
    content: "🛒";
    font-size: 1rem;
  }

  #cart-count {
    font-size: 0.7rem;
  }
}

/* =========================
   SUBTELNY SYSTEM ANIMACJI
========================= */

:root {
  --smooth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .reveal-on-scroll {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.68s var(--smooth-ease) var(--reveal-delay, 0ms),
    translate 0.68s var(--smooth-ease) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

.motion-enabled .reveal-on-scroll.is-revealed {
  opacity: 1;
  translate: 0 0;
}

.btn,
.menu-btn,
.menu-cart,
.dropdown-content a,
.footer-instagram,
.footer-facebook,
.testimonial-arrow,
input,
textarea {
  transition-duration: 0.25s;
  transition-timing-function: var(--smooth-ease);
}

button:active,
.btn:active,
.menu-cart:active {
  scale: 0.98;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 31, 31, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 31, 31, 0.1);
  outline: none;
}

@media (hover: hover) {
  .btn:hover,
  .menu-btn:hover,
  .testimonial-arrow:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(255, 31, 31, 0.16);
  }

  .menu-cart:hover,
  .dropdown-content a:hover {
    translate: 0 -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-enabled .reveal-on-scroll {
    opacity: 1;
    translate: none;
  }

}
