/* CSS-Variablen für Anpassung */
:root {
  --primary-color: 37, 99, 235;
  --primary: rgb(var(--primary-color));
  --secondary: #1e293b;
  --accent: #10b981;
  --success: #059669;
  --info: #0ea5e9;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #0f172a;

  --font-main: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  --navbar-bg: rgba(248, 250, 252, 0.95);
  --navbar-link: var(--secondary);
  --navbar-link-active: var(--primary);
  --hover: rgba(var(--primary-color), 0.9);
  --hero-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  --hero-title: var(--light);
  --hero-text: rgba(248, 250, 252, 0.9);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body,
input,
button,
textarea,
select {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
}

.navbar-custom {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.navbar-custom .navbar-brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  transition: all 0.3s ease;
}
.navbar-custom .navbar-brand:hover {
  color: var(--hover);
  transform: translateY(-1px);
}
.navbar-custom .navbar-nav .nav-link {
  color: var(--navbar-link);
  font-weight: 500;
  margin: 0 1.2rem;
  position: relative;
  transition: all 0.3s ease;
}
.navbar-custom .navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.navbar-custom .navbar-nav .nav-link.active:after,
.navbar-custom .navbar-nav .nav-link:hover:after {
  width: 100%;
}
.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .nav-link:hover {
  color: var(--navbar-link-active);
}
.btn-contact {
  background: var(--gradient-primary);
  color: var(--light);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 2.5rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.btn-contact:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.btn-contact:hover:before {
  left: 100%;
}
.btn-contact:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Центрирование навигации и кнопки */
.navbar-custom .navbar-nav {
  flex-direction: row;
}
@media (max-width: 991.98px) {
  .navbar-custom .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-custom .btn-contact {
    width: 100%;
  }
}

.hero-section {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--hero-bg);
  text-align: center;
  color: var(--hero-text);
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}
.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-section .hero-title {
  color: var(--hero-title);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-section .hero-desc {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  opacity: 0.95;
}
.hero-section .row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}
.hero-section .row > div:hover {
  transform: translateY(-5px);
}
.hero-section [class*="icofont-"] {
  background: rgba(37, 99, 235, 0.15);
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  padding: 24px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.hero-section .row > div:hover [class*="icofont-"] {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(1.1);
}

.btn-custom {
  background: var(--primary);
  color: var(--light);
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.5rem 2rem;
  border: none;
  transition: background 0.2s;
}
.btn-custom:hover {
  background: var(--hover);
  color: var(--light);
}

/* Informationsbereich */
.section-info-row {
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.3);
}
.section-info-bg {
  background: var(--gradient-primary);
  color: var(--light);
  position: relative;
  overflow: hidden;
}
.section-info-bg:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}
.section-info-bg > * {
  position: relative;
  z-index: 1;
}
.section-info-text {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.95);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tarifbereich */
.section-plans {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}
.section-plans:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}
.section-plans .container {
  position: relative;
  z-index: 1;
}
.plan-card {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding: 3rem 2.5rem 1rem 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.plan-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}
.plan-card:hover {
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
}
.plan-card:nth-child(2) {
  transform: scale(1.05);
}
.plan-card:nth-child(2):hover {
  transform: scale(1.05) translateY(-8px);
}
.plan-price {
  background: rgba(248, 250, 252, 0.95);
  color: var(--secondary);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 0 0 20px 20px;
  padding: 1.5rem 0;
  text-align: center;
  margin: 0 -2.5rem -1rem -2.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.3);
  backdrop-filter: blur(10px);
}
@media (max-width: 991.98px) {
  .section-info-row {
    flex-direction: column !important;
  }
  .section-info-bg {
    border-radius: 0 0 18px 18px !important;
  }
}

.about-section {
  background: #f6fafd;
  border-bottom: 3px solid var(--primary);
}

.mission-section {
  background: var(--primary);
}

.section-apart {
  background: #f6fafd;
}

.section-work {
  background: #f6fafd;
}

.apart-box {
  background: var(--primary);
  border: 3px solid #222;
}

.apart-box img {
  width: 240px;
  height: 180px;
  object-fit: cover;
  background: #fff;
  padding: 12px;
}

/* Philosophiebereich */
.section-editorial {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.section-editorial:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
}
.section-editorial-row {
  min-height: 380px;
  position: relative;
  z-index: 1;
}
.editorial-card {
  box-shadow: var(--shadow-xl);
  font-size: 1.15rem;
  line-height: 1.7;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.2);
  transition: all 0.3s ease;
}
.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
}
.editorial-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Vernetzungsbereich */
.section-connected {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.connected-card {
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.connected-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}
.connected-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
  border-color: rgba(37, 99, 235, 0.3);
}
.connected-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}
.connected-img img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.3s ease;
}
.connected-card:hover .connected-img img {
  transform: scale(1.05);
}
@media (max-width: 991.98px) {
  .section-editorial-row {
    flex-direction: column !important;
  }
  .editorial-card {
    margin-bottom: 1.5rem;
  }
  .connected-card {
    flex-direction: column !important;
    text-align: center;
  }
}

/* Kontaktbereich */
.section-contacts {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}
.section-contacts:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}
.section-contacts .container {
  position: relative;
  z-index: 1;
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem auto;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.contact-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}
.contact-icon span {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.section-contacts .fw-bold {
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.3s ease;
}
.section-contacts .col-md-4:hover .fw-bold {
  color: var(--primary);
}

/* Футер */
.footer-main {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  font-size: 1rem;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contact {
  color: var(--dark);
  font-size: 1rem;
}
.footer-logo {
  vertical-align: middle;
}
@media (max-width: 991.98px) {
  .footer-main .row > div {
    text-align: center !important;
  }
  .footer-main .footer-contact {
    justify-content: center;
  }
}

/* Terms & Conditions Section */
.terms-section {
  background: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
  padding: 60px 0 40px 0;
}
.terms-container {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}
.terms-title {
  text-align: center;
  font-weight: 700;
  color: #222;
  font-size: 2rem;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
  word-break: break-word;
}
.terms-list {
  color: #222;
  font-size: 1.08rem;
  line-height: 1.7;
  padding-left: 18px;
}
.terms-list li {
  margin-bottom: 18px;
}
.terms-contacts {
  margin-top: 12px;
}
.terms-contact {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.terms-contact i {
  margin-right: 7px;
}

/* --- Контакты и форма --- */
.contact-main-section {
  background: #f7f8fa;
}
.contact-main-section .bg-white {
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
}
.contact-main-section h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.contact-main-section .form-control {
  background: #fff;
  border: none;
  box-shadow: 0 1px 6px 0 rgba(34, 34, 34, 0.04);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.contact-main-section .form-control:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px 0 rgba(30, 198, 182, 0.1);
}
.contact-main-section .form-control-lg {
  min-height: 52px;
}
.contact-main-section .rounded-pill {
  border-radius: 2rem !important;
}
.contact-main-section .btn-dark {
  background: #111;
  color: #fff;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  padding: 0.7rem 0;
  transition: background 0.2s;
}
.contact-main-section .btn-dark:hover {
  background: var(--primary);
  color: #fff;
}
.contact-main-section .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.contact-main-section .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.1em;
}
.contact-main-section .form-check-label {
  user-select: none;
}
@media (max-width: 991.98px) {
  .contact-main-section .row {
    flex-direction: column !important;
  }
  .contact-main-section .col-lg-5,
  .contact-main-section .col-lg-7 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .contact-main-section .bg-white,
  .contact-main-section .p-4 {
    border-radius: 12px !important;
  }
}

.contact-row {
  min-height: 60vh;
}
.contact-info-box {
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
}
.contact-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 2rem;
}
.contact-desc {
  font-size: 1.13rem;
}
.contact-address,
.contact-phone,
.contact-email {
  font-size: 1.08rem;
}
.contact-form-box {
  background: #a7d8d3;
  border-radius: 12px;
  min-height: 100%;
  box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
}
.contact-form-desc {
  font-size: 1.08rem;
}
.contact-policy-text {
  font-size: 0.95rem;
}
.contact-policy-link {
  color: #e67e22;
  text-decoration: underline;
}
.contact-terms-link {
  color: #3498db;
  text-decoration: underline;
}
