/* Prote.uz — Kanoo Machinery style clone */

:root {
  --blue: #003366;
  --blue-dark: #002244;
  --blue-light: #004d99;
  --orange: #e85d04;
  --orange-dark: #c44d03;
  --gray-bg: #f0f2f5;
  --gray-text: #555;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,.12);
  --font: 'Open Sans', Arial, sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: #333; line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: .2s; }
.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,20,50,.75);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.is-hidden { display: none; }
.modal {
  background: var(--white); border-radius: 8px;
  padding: 2rem; max-width: 480px; width: 100%;
  position: relative; box-shadow: var(--shadow);
}
.modal__close {
  position: absolute; top: .75rem; right: 1rem;
  background: none; border: none; font-size: 1.75rem;
  cursor: pointer; color: #999; line-height: 1;
}
.modal__title { font-size: 1.25rem; color: var(--blue); margin-bottom: 1.5rem; font-weight: 700; }
.modal__fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.modal__fields label { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--blue); }
.modal__fields select {
  padding: .65rem .75rem; border: 1px solid #ccc; border-radius: 4px;
  font-family: inherit; font-size: .95rem; background: #fff;
}

/* Lang switch */
.lang-switch {
  display: flex; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px; overflow: hidden;
}
.lang-switch__btn {
  padding: .3rem .65rem; border: none; background: transparent;
  font-family: inherit; font-size: .75rem; font-weight: 700;
  color: rgba(255,255,255,.75); cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch__btn.is-active { background: var(--orange); color: #fff; }
.lang-switch__btn:hover:not(.is-active) { background: rgba(255,255,255,.1); }

/* Header */
.header {
  background: var(--blue); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.header__right {
  display: flex; align-items: center; gap: 1.5rem;
}
.logo__img {
  height: 44px; width: auto;
  background: #fff; border-radius: 6px; padding: 4px 8px;
}
.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
}
.nav a:hover { color: var(--orange); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

/* Brand strip */
.brand-strip { background: var(--gray-bg); padding: 1rem 0; border-bottom: 3px solid var(--orange); }
.brand-strip__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .75rem; align-items: center;
}
.brand-strip__item {
  background: #fff; border-radius: 4px; padding: .5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #ddd; transition: .2s; height: 56px;
}
.brand-strip__item:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-strip__item img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; }

/* Brand blocks — чередование: фото слева/справа */
.brands-section { padding: 0; background: #fff; }
.brand-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}
.brand-block__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.brand-block--reverse .brand-block__image { order: 2; }
.brand-block--reverse .brand-block__content { order: 1; }
.brand-block__image {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}
.brand-block__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.brand-block__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: transparent;
}
.brand-block__logo {
  height: 3rem;
  width: auto;
  max-width: 14rem;
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left;
}
.brand-block__content h2 {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.brand-block__content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.brand-block__btn {
  display: inline-block;
  align-self: flex-start;
  background: #148f45;
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.2s;
}
.brand-block__btn:hover { background: #0e6d34; color: #fff; }

/* Page hero banner */
.page-hero {
  position: relative;
  min-height: clamp(14rem, 42vh, 26rem);
  display: flex; align-items: center; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,34,68,.88) 0%, rgba(0,51,102,.65) 50%, rgba(0,51,102,.35) 100%);
}
.page-hero__content {
  position: relative; z-index: 1; padding: 4rem 0;
  max-width: 680px; color: #fff;
}
.page-hero__content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 1rem;
}
.page-hero__content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem); opacity: .9; line-height: 1.6; margin-bottom: 1.75rem;
}

/* Excellence */
.excellence { padding: 3.5rem 0; background: var(--white); }
.excellence__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.excellence__card { text-align: center; padding: 2rem 1.5rem; }
.excellence__icon { margin-bottom: 1.25rem; }
.excellence__icon img { width: 96px; height: 96px; margin: 0 auto; }
.excellence__card h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--blue); margin-bottom: 0;
  font-weight: 700; text-transform: uppercase;
}
.excellence__card ul { list-style: none; text-align: left; }
.excellence__card li {
  padding: .4rem 0 .4rem 1.5rem; position: relative;
  font-size: .9rem; color: var(--gray-text); border-bottom: 1px solid #eee;
}
.excellence__card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}

/* Why us */
.why-us { padding: 4rem 0; background: var(--gray-bg); }
.why-us__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-us__content h2 {
  font-size: 1.75rem; color: var(--blue); margin-bottom: 1.5rem; font-weight: 700;
}
.why-us__content ul { list-style: none; margin-bottom: 2rem; }
.why-us__content li {
  padding: .5rem 0 .5rem 1.75rem; position: relative;
  font-size: .95rem; color: var(--gray-text);
}
.why-us__content li::before {
  content: '▸'; position: absolute; left: 0; color: var(--orange); font-size: 1.1rem;
}
.why-us__image img {
  border-radius: 8px; box-shadow: var(--shadow);
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
}

/* Partners carousel */
.partners-section {
  padding: 4rem 0;
  background: var(--gray-bg);
  overflow: hidden;
}

.partners-carousel {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-carousel__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: partners-scroll 35s linear infinite;
}

.partners-carousel:hover .partners-carousel__track {
  animation-play-state: paused;
}

.partners-carousel__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 300px;
  min-height: 190px;
  padding: 1rem 1rem 0.85rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.partners-carousel__item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
  border-color: var(--orange);
  z-index: 2;
}

.partners-carousel__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  flex-shrink: 0;
}

.partners-carousel__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.partners-carousel__logo img[src$=".svg"] {
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.partners-carousel__item:hover .partners-carousel__logo img {
  transform: scale(1.03);
}

.partners-carousel__caption {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #eee;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  color: var(--gray-text);
  font-weight: 600;
}

@keyframes partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section titles */
.section-title {
  text-align: center; font-size: 1.75rem; color: var(--blue);
  margin-bottom: 2.5rem; font-weight: 700;
}

.contact-section {
  position: relative; padding: 5rem 0; text-align: center; overflow: hidden;
}
.contact-section__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.contact-section__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,28,56,.93) 0%, rgba(0,51,102,.9) 100%);
}
.contact-section__content { position: relative; z-index: 1; color: #fff; }
.contact-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.contact-section p { opacity: .85; margin-bottom: 1.5rem; }
.contact-section__details {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  margin-bottom: 2rem; font-size: .95rem;
}
.contact-section__details a { color: #fff; }
.contact-section__details a:hover { color: var(--orange); }
.contact-section__details strong { color: var(--orange); margin-right: .25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.75rem; border-radius: 4px;
  font-family: inherit; font-size: .9rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
  text-transform: uppercase; letter-spacing: .04em; transition: .2s;
}
.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn--full { width: 100%; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* Footer */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.8); }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; padding: 3rem 0;
}
.footer__logo {
  height: 44px; width: auto;
  background: #fff; border-radius: 6px; padding: 4px 8px; margin-bottom: 1rem;
}
.footer__brand p { font-size: .9rem; line-height: 1.6; }
.footer__nav h4, .footer__social h4 {
  color: var(--orange); font-size: .85rem; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 1rem;
}
.footer__nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer__nav a:hover { color: #fff; }
.footer__social-links {
  display: flex; flex-direction: column; gap: .6rem;
}
.social-link {
  display: inline-flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.85); font-size: .9rem;
  padding: .4rem 0; transition: color .2s;
}
.social-link:hover { color: #fff; }
.social-link__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,.12); flex-shrink: 0;
  transition: background .2s;
}
.social-link:hover .social-link__icon { background: var(--orange); }
.social-link__label { font-weight: 500; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0; text-align: center; font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* Responsive */
@media (max-width: 992px) {
  .brand-strip__grid { grid-template-columns: repeat(4, 1fr); }
  .excellence__grid { grid-template-columns: 1fr; }
  .why-us__inner { grid-template-columns: 1fr; }
  .brand-block__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .brand-block--reverse .brand-block__image { order: 0; }
  .brand-block--reverse .brand-block__content { order: 0; }
  .brand-block__image { max-width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--blue); flex-direction: column;
    padding: 1.5rem; gap: 1rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .brand-strip__grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero__content { text-align: center; max-width: 100%; }
  .partners-carousel__item { width: 240px; min-height: 170px; }
  .partners-carousel__logo { height: 84px; }
  .partners-carousel__track { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .brand-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
