/* =========================================================
   RailingsFab LLC landing page
   Replace contact details and project placeholders before launch.
   ========================================================= */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-dark: #101317;
  --surface-mid: #1b2027;
  --text: #15191e;
  --text-muted: #66707b;
  --line: #d9dee4;
  --blue: #1976d2;
  --blue-dark: #0f5eac;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(15, 22, 30, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(16, 19, 23, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}


.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
}

.hero-logo {
  display: block;
  width: clamp(260px, 30vw, 460px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  
}

.hero-contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 132, 223, 0.65);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-row:hover {
  color: #2684df;
  transform: translateX(5px);
}

.contact-email {
  font-size: clamp(1.05rem, 1.65vw, 1.75rem);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  color: #2684df;
  font-size: 2rem;
  border: 2px solid #2684df;
  border-radius: 50%;
}

.contact-email .contact-icon {
  border: 0;
  border-radius: 0;
}

@media (max-width: 900px) {
  .hero-brand {
    margin-top: 50px;
  }

  .hero-logo {
    width: min(360px, 85vw);
  }

  .hero-contact {
    max-width: 420px;
  }

  .contact-row {
    justify-content: center;
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .contact-email {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: "Oswald", sans-serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--white);
}

.logo strong {
  color: var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #75b8ff;
}

.main-nav .nav-cta {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: 0.25s ease;
}

.hero {
  position: relative;
  min-height: 840px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 11, 14, 0.98) 12%, rgba(8, 11, 14, 0.78) 58%, rgba(8, 11, 14, 0.88)),
    repeating-linear-gradient(135deg, transparent 0 36px, rgba(255,255,255,0.025) 36px 38px),
    radial-gradient(circle at 80% 25%, #33404c 0, #1e252c 28%, #0d1014 70%);
}



.hero-overlay {
  position: absolute;
  inset: auto -10% -45% 30%;
  height: 70%;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.20), transparent 62%);
}

.hero-grid {
  display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
  max-width: 1000px; /* было меньше */
  width: 100%;
}

.h2 {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(58px, 8vw, 105px);
  line-height: 0.95;
}

.hero-text {
  max-width: 700px;
  margin: 28px 0 34px;
  color: #c8d0d9;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--white);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  color: #d5dbe1;
  font-size: 13px;
  font-weight: 700;
}

.hero-points span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.quote-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-label {
  margin: 0;
  color: #8fc6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-card h2 {
  margin: 5px 0 8px;
  font-size: 34px;
}

.quote-card > p {
  color: #c5cdd5;
}

.contact-line {
  display: block;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-line small,
.contact-line strong {
  display: block;
}

.contact-line small {
  margin-bottom: 2px;
  color: #9ca9b5;
}

.contact-line strong {
  font-size: 17px;
}

.small-note {
  margin: 18px 0 0;
  color: #9aa4ae;
  font-size: 12px;
}

.stats {
  position: relative;
  z-index: 4;
  margin-top: -32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats-grid div {
  padding: 5px 25px;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  font-family: "Oswald", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}

.stats-grid span {
  color: var(--text-muted);
  font-size: 13px;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 710px;
  margin-bottom: 50px;
}

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
}

.section-heading > p:last-child {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25, 118, 210, 0.5);
  box-shadow: 0 18px 45px rgba(20, 30, 40, 0.10);
}

.service-number {
  display: block;
  margin-bottom: 60px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: "Oswald", sans-serif;
  font-size: 25px;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.dark-section {
  color: var(--white);
  background: var(--surface-dark);
}

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

.about-visual {
  min-height: 530px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 13, 17, 0.18), rgba(9, 13, 17, 0.72)),
    repeating-linear-gradient(90deg, #252d35 0 30px, #181e24 30px 33px);
}

.steel-frame {
  width: 70%;
  height: 65%;
  display: grid;
  place-items: end start;
  padding: 28px;
  border: 14px solid #656f79;
  border-top-color: #88929d;
  transform: skewY(-4deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.steel-frame span {
  padding: 9px 12px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-content > p:not(.eyebrow) {
  color: #b8c1ca;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #66b2ff;
  font-weight: 800;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #222831;
}

.project-large {
  grid-row: span 2;
  min-height: 802px;
}

.project-art {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.project:hover .project-art {
  transform: scale(1.04);
}

.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(6, 9, 12, 0.90));
}

.project-art-1 {
  background:
  url("image/residRail1.png") center center/cover no-repeat;
}

.project-art-2 {
  background:
  url("image/уу.png") center center/cover no-repeat;
}

.project-art-3 {
  background:
  url("image/comercical1.png") center center/cover no-repeat;
}

.project-art-4 {
  background:
  url("image/plates.png") center center/cover no-repeat;
}

.project-art-5 {
  background:
  url("image/outdoor4.png") center center/cover no-repeat;
}

.project-info {
  position: absolute;
  z-index: 2;
  inset: auto 28px 26px 28px;
  color: var(--white);
}

.project-info span {
  color: #80bdff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-info h3 {
  margin: 4px 0 0;
  font-family: "Oswald", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}

.process-section {
  background: #e9edf1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step {
  min-height: 300px;
  padding: 28px;
  border-top: 3px solid var(--blue);
  background: var(--surface);
}

.process-step strong {
  color: #a3acb5;
  font-family: "Oswald", sans-serif;
  font-size: 58px;
  line-height: 1;
}

.process-step h3 {
  margin: 60px 0 10px;
  font-family: "Oswald", sans-serif;
  font-size: 23px;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 12, 16, 0.96), rgba(9, 12, 16, 0.88)),
    repeating-linear-gradient(45deg, #141a20 0 32px, #1d252d 32px 35px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact-copy > p:not(.eyebrow) {
  color: #b9c2ca;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-details a {
  width: fit-content;
  font-size: 18px;
  font-weight: 800;
}

.contact-details span {
  color: #aab4bd;
}

.estimate-form {
  padding: 34px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.estimate-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.estimate-form input,
.estimate-form textarea,
.estimate-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.estimate-form input,
.estimate-form select {
  height: 50px;
  padding: 0 14px;
}

.estimate-form textarea {
  min-height: 140px;
  padding: 13px 14px;
  resize: vertical;
}

.estimate-form input:focus,
.estimate-form textarea:focus,
.estimate-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.14);
}

.form-button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  padding: 50px 0;
  color: #aeb7c0;
  background: #080a0d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 50px;
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-links,
.footer-meta {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 160px 0 110px;
  }

  .hero-grid {
    padding-top: 0;
  }

  .quote-card {
    max-width: 600px;
  }

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

  .stats-grid div:nth-child(2) {
    border-right: 0;
  }

  .stats-grid div:nth-child(-n+2) {
    padding-bottom: 20px;
  }

  .stats-grid div:nth-child(n+3) {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .project-large {
    min-height: 600px;
  }

  .contact-grid {
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    background: rgba(16, 19, 23, 0.94);
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    font-size: 20px;
    background: rgba(8, 10, 13, 0.98);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .hero-text {
    font-size: 16px;
  }

  .stats {
    margin-top: 0;
    padding-top: 14px;
  }

  .stats-grid,
  .services-grid,
  .process-grid,
  .projects-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    padding: 18px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .stats-grid div:last-child {
    border-bottom: 0 !important;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .project,
  .project-large {
    min-height: 420px;
    grid-row: auto;
  }

  .about-visual {
    min-height: 400px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .estimate-form {
    padding: 22px;
  }

  .footer-meta {
    text-align: left;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.about-visual {
  min-height: 530px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;

  background: url("image/built.png") center center/cover no-repeat;
}
