/* ===== Industrial AC service theme ===== */
:root {
  --color-orange: #ff6b00;
  --color-orange-dark: #e55d00;
  --color-blue: #00b4ff;
  --color-blue-dark: #0090cc;
  --color-bg: #141416;
  --color-bg-alt: #1c1c20;
  --color-surface: #222228;
  --color-surface-raised: #2a2a32;
  --color-text: #f0f0f2;
  --color-text-muted: #9ca3af;
  --color-border: #3a3a44;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 107, 0, 0.2);
  --radius: 4px;
  --radius-lg: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", Impact, sans-serif;
  --max-width: 1140px;
  --header-height: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(20, 20, 22, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-orange);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo__icon {
  width: 38px;
  height: 38px;
  background: var(--color-orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-orange);
}

.header__phone {
  font-weight: 700;
  color: var(--color-blue);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-orange);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--color-orange-dark);
  box-shadow: 0 0 50px rgba(255, 107, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text-muted);
}

.btn--outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.btn--full {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(20, 20, 22, 0.97) 0%, rgba(20, 20, 22, 0.88) 45%, rgba(20, 20, 22, 0.6) 100%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 30%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 180, 255, 0.15);
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--color-orange);
}

.hero__text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  border-left: 3px solid var(--color-orange);
  padding-left: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-blue);
}

.hero__stat span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  max-width: 380px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero__card-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-orange) 0px,
    var(--color-orange) 12px,
    var(--color-blue) 12px,
    var(--color-blue) 24px
  );
}

.hero__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

.hero__card ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero__card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero__card li::before {
  content: "▸";
  color: var(--color-orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Services ===== */
.services {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--color-blue);
  box-shadow: var(--shadow-md);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 107, 0, 0.2);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Work / Gallery ===== */
.work {
  background: var(--color-bg);
}

.work__split {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.work__block-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.work__block-icon {
  font-size: 1.1rem;
}

.work__grid {
  display: grid;
  gap: 0.85rem;
}

.work__grid--process {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
}

.work__grid--process .work__item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.work__grid--process .work__item--tall {
  grid-row: span 2;
}

.work__grid--done {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
}

.work__grid--done .work__item--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.work__grid--done .work__item--wide {
  grid-column: span 2;
}

.work__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: border-color 0.25s, transform 0.25s, opacity 0.5s ease;
}

.work__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work__item.is-visible:hover {
  transform: scale(1.01);
}

.work__item--wide {
  aspect-ratio: auto;
}

.work__item--tall {
  aspect-ratio: auto;
}

.work__item--hero {
  aspect-ratio: auto;
}

.work__item.is-visible:hover {
  border-color: var(--color-orange);
  z-index: 2;
}

.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.work__item:hover img {
  transform: scale(1.05);
}

.work__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(20, 20, 22, 0.95));
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.work__caption::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-orange);
  margin-bottom: 0.4rem;
}

/* ===== Contacts ===== */
.contacts {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-blue);
  border-radius: var(--radius);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 180, 255, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item p {
  font-weight: 700;
  font-size: 1rem;
}

.contact-item a:hover {
  color: var(--color-orange);
}

.contacts__social h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.contacts__hint {
  margin-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.social-link:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* ===== Form ===== */
.form-section {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange);
}

.form-wrapper .section-title,
.form-wrapper .section-subtitle,
.form-wrapper .section-label {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
}

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message--loading {
  background: rgba(0, 180, 255, 0.12);
  color: var(--color-blue);
  border: 1px solid rgba(0, 180, 255, 0.3);
}

/* ===== Footer ===== */
.footer {
  background: #0a0a0c;
  color: var(--color-text-muted);
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 2px solid var(--color-orange);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer a {
  color: var(--color-blue);
  font-weight: 600;
}

.footer a:hover {
  color: var(--color-orange);
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-orange);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child {
  border-bottom: none;
  color: var(--color-blue);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero__visual {
    order: -1;
  }

  .hero__card {
    max-width: 100%;
  }

  .work__grid--process,
  .work__grid--done {
    grid-template-columns: repeat(2, 1fr);
  }

  .work__grid--process .work__item--wide,
  .work__grid--done .work__item--hero,
  .work__grid--done .work__item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .work__grid--process .work__item--tall {
    grid-row: span 1;
  }

  .work__item,
  .work__item--wide,
  .work__item--tall,
  .work__item--hero {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  section {
    padding: 3.5rem 0;
  }

  .nav,
  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

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

  .hero__stats {
    gap: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .form-wrapper {
    padding: 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .work__grid--process,
  .work__grid--done {
    grid-template-columns: 1fr;
  }

  .work__grid--process .work__item--wide,
  .work__grid--done .work__item--hero,
  .work__grid--done .work__item--wide {
    grid-column: span 1;
  }

  .work__item,
  .work__item--wide,
  .work__item--tall,
  .work__item--hero {
    aspect-ratio: 16 / 10;
  }
}
