/* styles.css — яркий и живой дизайн для OPORA IT */
:root {
  --accent: #5e35b1;
  --accent-dark: #4527a0;
  --accent-light: #7e57c2;
  --orange: #ff6b35;
  --orange-dark: #e85a2a;
  --blue: #00bcd4;
  --green: #4caf50;
  --yellow: #ffc107;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-accent: #fff8f5;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --container: 1140px;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* Компенсация для фиксированного header */
}

html {
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  margin: 0;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* логично распределяем: логотип слева, nav по центру/слева, правый блок — справа */
  max-width: var(--container);       /* ширина контента == .container */
  margin: 0 auto;                    /* центрируем внутри full-width .site-header */
  padding: 14px 24px;
  gap: 24px;
}

.brand .logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: var(--transition);
}

.brand .logo:hover {
  transform: scale(1.02);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.logo-slogan {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  opacity: 0.9;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.header-phone svg {
  opacity: 0.9;
}

.header-phone a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: var(--transition);
}

.header-phone a:hover {
  opacity: 0.85;
}

.cta-button {
  background: var(--orange);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff8f5 0%, #f3e5f5 50%, #e3f2fd 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94, 53, 177, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ===== PANELS ===== */
.panel {
  padding: 60px 0;
}

.panel h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel .small {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 40px;
  max-width: 700px;
}

/* ===== SERVICES MODERN ===== */
.services-modern {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--accent) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-item:hover::before {
  transform: scaleY(1);
}

.service-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.service-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-content {
  flex: 1;
}

.service-content h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.service-item:hover .service-content h3 {
  color: var(--accent);
}

.service-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== RESILIENCE ===== */
.resilience {
  background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 50%, #e8eaf6 100%);
  border-left: 6px solid var(--orange);
  padding: 48px;
  margin: 60px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.resilience::after {
  content: '🛡️';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 100px;
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

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

.resilience h3 {
  margin: 0 0 20px;
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.resilience p {
  margin: 0;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 900px;
}

/* ===== LOCATIONS ===== */
#locations ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

#locations ul li {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  padding: 14px 28px;
  border-radius: 28px;
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

#locations ul li:nth-child(5n+1):hover {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  transform: scale(1.08);
}

#locations ul li:nth-child(5n+2):hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

#locations ul li:nth-child(5n+3):hover {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  transform: scale(1.08);
}

#locations ul li:nth-child(5n+4):hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
  transform: scale(1.08);
}

#locations ul li:nth-child(5n+5):hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--text);
  transform: scale(1.08);
}

/* ===== CALCULATOR ===== */
.calc-panel {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border: 2px solid var(--border);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 60px 0;
}

.calc-panel h2 {
  margin-bottom: 12px;
}

.row {
  display: grid;
  grid-template-columns: 280px 1fr 80px;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}

.label {
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
  outline: none;
  -webkit-appearance: none;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--accent) 100%);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.range::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
}

.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--accent) 100%);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.range::-moz-range-thumb:hover {
  transform: scale(1.3);
}

.value {
  text-align: center;
  font-weight: 700;
  color: var(--orange);
  font-size: 1.25rem;
  min-width: 80px;
}

.hint {
  width: 100%;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 216px;
}

#total {
  margin: 48px 0 32px;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--accent) 100%);
  color: white;
  border-radius: var(--radius);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

#total::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30%, -30%); }
}

#sum {
  font-size: 1.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#form {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--border);
}

#form h3 {
  font-size: 1.75rem;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#form input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

#form input[type="text"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

#form button {
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  font-family: inherit;
}

#form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

#result {
  margin-left: 16px;
  color: var(--green);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #e0e0e0;
  padding: 60px 0 24px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--accent) 50%, var(--blue) 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.footer-col p {
  margin: 8px 0;
  color: #b0b0b0;
}

.footer-col a {
  color: var(--orange);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.footer-col a:hover {
  color: white;
}

.footer-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.footer-services li {
  color: #b0b0b0;
  padding: 6px 0;
  position: relative;
  padding-left: 20px;
  transition: var(--transition);
}

.footer-services li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.footer-services li:hover {
  color: white;
  padding-left: 24px;
}

.copyright {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #888;
  font-size: 0.875rem;
}

.footer-disclaimer {
  padding: 12px 24px;
  text-align: center;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.7rem;
  color: #9c9c9c; /* такой же серый, как у копирайта */
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
}

.footer-bottom .copyright {
  color: #9c9c9c;
  font-size: 0.6rem;
}




/* ===== PRIVACY CHECKBOX ===== */
.privacy-checkbox {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 2px solid var(--border);
}

.privacy-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-checkbox a {
  color: var(--accent);
  text-decoration: underline;
  transition: var(--transition);
}

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

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius);
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  margin: 0;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(80vh - 100px);
}

.modal-body p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--text);
}

.modal-body ul {
  margin: 16px 0;
  padding-left: 24px;
  line-height: 1.8;
}

.modal-body li {
  margin: 8px 0;
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: white;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
@media (max-width: 900px) {
  body {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
  
  .panel h2 {
    font-size: 2rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent-dark);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin: 0;
  }
  
  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .logo-slogan {
    display: none;
  }
  
  .calc-panel {
    padding: 32px 24px;
  }
  
  .hint {
    margin-left: 0;
  }

  .header-phone {
    display: none;
  }

  .service-item {
    flex-direction: column;
    padding: 24px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .label {
    min-width: 140px;
  }
  
  .cta-button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .resilience {
    padding: 28px;
  }
  
  .resilience::after {
    font-size: 60px;
    right: 20px;
  }

  .resilience h3 {
    font-size: 1.75rem;
  }

  .service-content h3 {
    font-size: 1.25rem;
  }

  .service-content p {
    font-size: 0.95rem;
  }
}