/* style.css - CLEANED
   Comments in English as requested.
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  /* english comment: main font stack, keep Montserrat for headings */
  font-family: "Montserrat", "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #000;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* english comment: page container */
.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 120px;
}

/* Header */
.header {
  /* english comment: transparent background, red bottom border */
  background-color: transparent;
  padding: 20px 0;
  border-bottom: 2px solid #e31e24;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* english comment: logo area */
.logo img {
  display: block;
  height: 76px;
  width: auto;
}

/* english comment: right side of header with contacts */
.header-right {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: flex-end;
}

/* english comment: social icons */
.social-icons {
  display: flex;
  gap: 10px;
}

/* english comment: make small social icons consistent */
.social-icon img {
  display: block;
  width: 26px;
  height: 26px;
}

/* english comment: working hours and order button container */
.working-hours {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 12px;
  color: #d71f22; /* red accent */
  line-height: 1.1;
  gap: 15px;
  min-width: 220px;
  align-items: flex-end;
}

/* english comment: prominent order button */
.order-btn {
  background-color: #e31e24;
  color: #fff;
  border: none;
  padding: 8px 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  width: 185px;
}

/* english comment: contact column */
.contact-info {
  font-size: 18px;
  text-align: left;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  line-height: 22px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.phone a {
  margin-right: 10px;
}
/* specific phone icon sizes */
.phone a:nth-child(2) img {
  height: 14px;
}
.phone a:nth-child(3) img {
  height: 19px;
}
.contact-info a img {
  width: auto;
  height: 16px;
}

/* Hero Section */
.hero {
  /* min-height: 520px; */
  position: relative;
  background-image: url("../img/gradient.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  padding-top: 8px;
  padding-bottom: 12px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  min-height: 520px;
  position: relative;
  gap: 30px;
}

/* english comment: text column */
.hero-text {
  z-index: 2;
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
}

/* english comment: main big title styling */
.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 81px; /* tight lines to match design */
  margin-bottom: 100px;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* english comment: action buttons block */
.hero-buttons {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  flex-direction: column;
}

.btn {
  max-width: 200px;
  padding: 10px 14px;
  border: 2px solid #ff0000;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn:hover {
  background-color: #fff;
  color: #000;
}

/* english comment: right art column */
.hero-image {
  position: relative;
  width: 360px;
  flex: 0 0 360px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* english comment: samurai art */
.red-bird {
  position: absolute;
  right: -10px;
  bottom: -22px;

  /* fixed sizes so artwork renders */
  width: 420px;
  height: 520px;
  background: url("../img/samurai.png") no-repeat bottom right;
  background-size: contain;
  pointer-events: none;
}

/* MARQUEE (services ticker) */
/* english comment: full width red bar */
.marquee {
  background: #e31e24;
  color: #000;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

/* english comment: track wrapper, we keep two identical sequences inside for seamless loop */
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding: 0px 20px;
  white-space: nowrap;
  /* english comment: animation duration adjusted based on number of items */
  animation: marquee-scroll 16s linear infinite;
  font-variant-numeric: tabular-nums;
}

/* english comment: duplicate group is simple flex container */
.marquee__track--duplicate {
  display: inline-flex;
  gap: 48px;
  margin-left: 0px;
  /* make it ignored by screen readers */
}

/* english comment: individual item look */
.marquee__item {
  font-weight: 600;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: 0.95px;
  text-transform: uppercase;
  display: inline-block;
  padding: 6px 0;
  color: #000;
}

/* english comment: pause on hover - accessibility */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

/* english comment: respects reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* english comment: animation moves left by half since content duplicated */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Team Section */
.team-section {
  padding: 0;
}

.team-image {
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

/* Advantages Section */
.advantages {
  background-color: #000;
  padding: 70px 0px;
  color: #fff;
  position: relative;
}
.advantages:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 16px;
  width: 100%;
  background: #e31e24;
}

.section-header {
  margin-bottom: 30px;
  margin-left: 75px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
}

.section-label {
  font-size: 12px;
  color: #fff;
  letter-spacing: 1px;
}

.section-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

/* advantages grid: more consistent spacing */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.advantage-item {
  /* layout */
  padding: 28px;
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  position: relative;
  border-radius: 7px;
  border: 1.5px solid transparent;
  background-image: linear-gradient(#363636, #363636), /* inner color - top layer */ linear-gradient(180deg, #666666 -25%, #363636 116.54%); /* border gradient - bottom layer */
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

.advantage-item h3 {
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
}
.advantage-item span {
  font-size: 13px;
}

/* Experience Section */
.experience {
  background-color: #e31e24;
  padding: 70px 0px;
  color: #fff;
}

.experience .section-number,
.experience .section-label {
  color: rgba(255, 255, 255, 0.85);
}

.experience-description {
  margin: 50px 0;
}

.experience-description p {
  font-family: "Montserrat";
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  max-width: 85%;
  text-transform: capitalize;
}

/* stats grid */
.section-number {
  margin-top: 10px;
  position: absolute;
  left: -45px;
  transform: translateX(-100%);
  font-size: 20px;
  font-weight: 400;
  display: block;
}

.section-header h2 span {
  display: block;
  font-weight: bold;
}

.description {
  font-size: 14px;
  max-width: 900px;
  line-height: 1.6;
  margin-top: 20px;
  text-transform: uppercase;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-block {
  position: relative;
  height: 150px;
  padding: 24px;
  border-radius: 7px;
  border: 1.5px solid transparent;
  background-image: linear-gradient(#28292d, #28292d), /* inner color - top layer */ linear-gradient(180deg, #666666 0%, #363636 100%);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
}

.stat-block .number {
  font-size: 40px;
  line-height: 0.9;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  font-family: "Nunito Sans";
}

.stat-block .number span {
  color: #ff0000;
}

.stat-block .label {
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.4;
}

.stat-block::before {
  content: "";
  z-index: 11111;
  position: absolute;
  right: -21px;
  top: -7px;
  width: 105px;
  height: 105px;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
}

.stat-block:nth-child(1)::before {
  background-image: url("../img/medal.png"); /* Icon for "years of experience" */
}

.stat-block:nth-child(2)::before {
  background-image: url("../img/up.png"); /* Happy clients */
}

.stat-block:nth-child(3)::before {
  background-image: url("../img/check.png"); /* Completed projects */
}

.stat-block:nth-child(4)::before {
  background-image: url("../img/world.png"); /* Partners */
}

/* Footer */
.footer {
  font-family: Roboto;
  font-size: 14px;
  background-color: #000;
  padding: 100px 0 50px;
  border-top: 1px solid #333;
  color: #fff;
}

.footer-content {
  /* display: flex; */
  /* justify-content: space-between; */
  /* align-items: flex-start; */
  /* flex-wrap: wrap; */
}

.footer-logo img {
  height: 64px;
  display: block;
  margin: 6px 0px 30px 0px;
}

.footer-columns {
  position: relative;
  display: flex;
  /* gap: 45px; */
  justify-content: space-between;
}
.footer-columns:before {
  position: absolute;
  content: "";
  width: calc(100% - (100% - 880px) / 3 - 320px);
  height: 1px;
  top: -20px;
  right: 100px;
  background: #e31e24;
}

.footer-column {
  width: 220px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 700;
  font-family: "Montserrat";
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #fff;
}

.footer-column p,
.footer-column a {
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}
.footer-column a img {
  margin-right: 5px;
  height: 11px;
  vertical-align: middle;
}

.payment-methods {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 60px;
}

.payment-icon {
  height: 30px;
  width: auto;
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 44px;
    line-height: 66px;
    margin-bottom: 60px;
  }
  .hero-text {
    padding: 70px 0 65px 0;
  }
  .header-right {
    gap: 10px;
  }
  .order-btn {
    width: 160px;
    font-size: 13px;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-columns {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-direction: row;
    flex-flow: row wrap;
  }
  .container {
    padding: 0 40px;
  }
  .header-content {
    gap: 15px;
  }
  .working-hours {
    min-width: 200px;
  }
  .contact-info {
    font-size: 15px;
  }
  .hero {
    background-position: -250px top;
  }
  .hero-image {
    display: none;
  }
  .section-header {
    margin-left: unset;
  }
  .section-number {
    left: 0;
    transform: unset;
    position: relative;
    font-size: 18px;
    margin-right: 40px;
  }
  .section-title {
    font-size: 32px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
  }
  .footer {
    padding: 70px 0 30px;
  }
  .footer-columns:before {
    display: none;
  }
  .footer-column {
    display: block;
  }
}

@media (max-width: 780px) {
  body {
    background-image: url(../img/gradient.png);
    background-position: 70% 200px;
    background-repeat: no-repeat;
  }
  .header {
    border-bottom: unset;
  }
  .header .logo {
    padding-bottom: 16px;
    border-bottom: 2px solid #e31e24;
    width: 100%;
  }
  .logo img {
    margin: 20px auto;
    width: 50vw;
    max-width: 195px;
    height: auto;
  }
  .header-content {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .header-right {
    flex-direction: column;
    align-items: flex-end;
    text-align: center;
    gap: 12px;
    position: relative;
    padding-top: 15px;
  }
  .hero-content {
    flex-direction: column-reverse;
    padding: 30px 0;
    min-height: auto;
  }
  .hero-title {
    font-size: 34px;
    line-height: 1.6;
  }
  .hero-image {
    display: none;
  }
  .section-header {
    display: flex;
    justify-content: flex-start;
    margin: unset;
  }
  .section-header h2 {
    font-size: 26px;
  }
  .section-number {
    left: 0;
    transform: unset;
    position: relative;
    font-size: 16px;
    margin-right: 30px;
  }
  .advantages {
    padding: 60px 0px;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 50px;
  }
  .marquee__item {
    font-size: 25px;
  }
  .marquee__track {
    gap: 28px;
    padding: 10px;
    animation-duration: 14s;
  }
  .social-icons {
    position: absolute;
    right: 250px;
    top: 14px;
  }
  .social-icon img {
    width: 35px;
    height: 35px;
  }
  .working-hours {
    align-items: baseline;
    text-align: left;
    font-size: 11px;
    min-width: 230px;
  }
  .contact-info {
    min-width: 230px;
  }
  .hero {
    background: none;
  }
  .hero-text {
    padding: 20px 0 20px 0;
  }
  .advantage-item {
    width: 100%;
  }
}

/* breakpoint - max-width: 480px */
@media (max-width: 480px) {
  /* adapted and simplified mobile rules */
  .hero-title {
    font-size: 24px;
  }
  .section-title {
    font-size: 28px;
  }
  .marquee__track {
    animation-duration: 12s;
    padding: 8px;
  }
  .marquee__item {
    font-size: 14px;
    gap: 16px;
  }
  .order-btn {
    width: 140px;
    font-size: 12px;
    padding: 8px 10px;
  }
  .section-number {
    display: none;
  }

  /* mobile layout adjustments */
  .container {
    padding: 0 15px;
  }
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .header-right {
    flex-direction: column;
    align-items: flex-end;
    text-align: center;
    gap: 12px;
    display: flex;
    width: 100%;
  }
  .order-btn {
    width: 200px;
    max-width: 240px;
    font-size: 15px;
    padding: 8px;
  }
  .contact-info {
    text-align: left;
    align-items: baseline;
    font-size: 14px;
    gap: 6px;
  }
  .phone,
  .email,
  .address {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .hero {
    padding: 24px 0;
  }
  .hero-text {
    padding: 0;
  }
  .hero-title {
    margin-bottom: 20px;
    line-height: 1.25;
  }
  .hero-buttons {
    display: flex;
    align-content: flex-start;
  }
  .hero-buttons .btn {
    max-width: 100%;
    width: 200px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .hero-image {
    height: 200px;
    justify-content: center;
    display: none;
  }
  .red-bird {
    right: 0;
    bottom: -10px;
    width: 280px;
    height: 200px;
    background-size: contain;
    opacity: 0.95;
  }
  .advantages {
    padding: 40px 16px;
  }
  .section-header {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header h2 {
    font-size: 28px;
    line-height: 1.1;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .advantage-item {
    padding: 18px;
    font-size: 14px;
  }
  .experience {
    padding: 40px 16px;
  }
  .experience-description p {
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
  }
  .stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-block {
    min-width: 100%;
    height: auto;
    padding: 20px;
  }
  .stat-block .number {
    font-size: 32px;
  }
  .stat-block .label {
    font-size: 11px;
  }
  .team-image {
    max-height: 300px;
  }
  .team-image img {
    object-fit: cover;
  }
  .footer {
    padding: 60px 16px 30px;
    /* text-align: center; */
  }
  .footer-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }
  .footer-column {
    min-width: 100%;
  }
  .footer-logo img {
    /* margin: 0 auto 20px; */
  }
  .footer-columns:before {
    width: 100%;
    left: 0;
  }
  .payment-methods {
    justify-content: center;
    margin-top: 30px;
  }
}
