:root {
  --color-dark: #101F2E;
  --color-light: #F3F1EA;
  --color-accent: #D8342A;
  --color-accent-hover: #b82b22;
  --color-secondary: #5B7A8C;
  --color-white: #FFFFFF;
  --color-dark-glass: rgba(16, 31, 46, 0.85);
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Onest', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .nav-links a {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(216, 52, 42, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 52, 42, 0.4);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

header.scrolled {
  background: var(--color-dark-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.header-phone:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-sun {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(216,52,42,0) 60%);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
  animation: pulse 8s infinite alternate;
}

.hero-sun-core {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background-color: var(--color-accent);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 150px rgba(216, 52, 42, 0.5);
}

@keyframes pulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.15; }
  100% { transform: translateY(-50%) scale(1.1); opacity: 0.25; }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 650px;
}

.hero-sup {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Sections Base */
.section {
  padding: 8rem 0;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}
.section-dark h2 {
  color: var(--color-white);
}
.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 31, 46, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(16, 31, 46, 0.1);
  border-bottom-color: var(--color-accent);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-light);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  transition: color 0.4s ease;
}

.service-card:hover .service-number {
  color: rgba(216, 52, 42, 0.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--color-secondary);
  position: relative;
  z-index: 2;
}

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.catalog-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.catalog-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.catalog-img-wrap {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: #1a324a;
}

.catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  opacity: 0.8;
}

.catalog-card:hover .catalog-img {
  transform: scale(1.05);
  opacity: 1;
}

.catalog-content {
  padding: 2.5rem 2rem;
}

.catalog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.catalog-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Steps */
.steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 2.5rem;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid transparent;
}

.step-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-left-color: var(--color-accent);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: rgba(216, 52, 42, 0.2);
  min-width: 70px;
  line-height: 1;
  transition: color 0.3s ease;
}

.step-item:hover .step-number {
  color: var(--color-accent);
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.step-content p {
  color: var(--color-secondary);
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.5rem;
  margin-bottom: 5rem;
}

.why-item h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.why-item h3::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.why-item p {
  color: var(--color-secondary);
}

.why-callout {
  background: linear-gradient(135deg, var(--color-dark), #1a324a);
  color: var(--color-white);
  padding: 4rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 2rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  box-shadow: 0 20px 40px rgba(16, 31, 46, 0.2);
  position: relative;
  overflow: hidden;
}

.why-callout::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.why-callout span {
  color: var(--color-accent);
}

/* Contacts */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

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

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-value:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.contact-form {
  background: rgba(255,255,255,0.03);
  padding: 3.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-form h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0,0,0,0.3);
}

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

/* Footer */
footer {
  background-color: #0b151f;
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 1px;
}

.footer-info {
  display: flex;
  gap: 2.5rem;
  font-size: 0.95rem;
}

/* Animations (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.8rem; }
  .contacts-wrapper { gap: 3rem; }
  .why-callout { font-size: 1.6rem; }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .contacts-wrapper { grid-template-columns: 1fr; }
  .hero-sun-core { right: -10%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .header-contact { display: none; }
  
  .hero-content { margin-top: 2rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  
  .section { padding: 5rem 0; }
  .section-subtitle { margin-bottom: 2.5rem; }
  
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { flex-direction: column; gap: 0.8rem; }
  
  .contact-form { padding: 2rem; }
  .step-item { flex-direction: column; gap: 1rem; text-align: center; align-items: center; }
  .step-item:hover { transform: translateY(-5px); }
  .why-callout { padding: 2.5rem 1.5rem; font-size: 1.4rem; }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 31, 46, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-light);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 8px;
  padding: 3rem;
  position: relative;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-dark);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--color-accent);
}

.modal-body {
  color: var(--color-dark);
}

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.modal-body h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 700;
}

.modal-body p, .modal-body ul {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: rgba(16, 31, 46, 0.8);
}

.modal-body ul {
  padding-left: 1.5rem;
}
