/* CSS-переменные для кастомизации */
:root {
  --primary-color: 198, 30, 117;
  --primary: rgb(var(--primary-color));
  --secondary: #222;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #30363b;

  --font-main: 'Montserrat', Arial, sans-serif;
  --navbar-bg: var(--light);
  --navbar-link: var(--dark);
  --navbar-link-active: var(--primary);
  --hover: rgba(var(--primary-color), 0.8);
  --hero-bg: linear-gradient(rgba(34, 34, 34, 0.7), rgba(34, 34, 34, 0.7)), url('../img/hero-bg.jpg') center/cover no-repeat;
  --hero-title: var(--light);
  --hero-text: var(--light);
}

body,
input,
button,
textarea,
select {
  font-family: 'Montserrat', Arial, sans-serif;
}

.navbar-custom {
  background: var(--navbar-bg);
  padding: 1rem 0;
}
.navbar-custom .navbar-brand {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.navbar-custom .navbar-brand:hover {
  color: var(--hover);
}
.navbar-custom .navbar-nav .nav-link {
  color: var(--navbar-link);
  font-weight: 500;
  margin: 0 1rem;
}
.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .nav-link:hover {
  color: var(--navbar-link-active);
}
.btn-contact {
  background: var(--dark);
  color: var(--light);
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.5rem 2rem;
  transition: background 0.2s;
  border: none;
}
.btn-contact:hover {
  background: var(--hover);
  color: var(--light);
}

/* Центрирование навигации и кнопки */
.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: 70vh;
  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);
}
.hero-section .hero-title {
  color: var(--hero-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.hero-section .hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-section .row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section .icofont-camera,
.hero-section .icofont-brainstorming,
.hero-section .icofont-document-folder {
  background: rgba(30, 198, 182, 0.08);
  border-radius: 50%;
  padding: 18px;
  margin-bottom: 10px;
}

.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);
}

/* Секция Who is ByteNews for? */
.section-info-row {
  box-shadow: 0 4px 32px 0 rgba(34, 34, 34, 0.07);
}
.section-info-bg {
  background: var(--primary);
  color: var(--dark);
}
.section-info-text {
  font-size: 1.08rem;
  color: var(--dark);
  max-width: 480px;
  margin: 0 auto;
}

/* Секция тарифов */
.section-plans {
  background: #f7f8fa;
}
.plan-card {
  background: var(--dark);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
  padding: 2.5rem 2rem 0.5rem 2rem;
  border: 2px solid #e6e6e6;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan-card:hover {
  box-shadow: 0 8px 32px 0 rgba(34, 34, 34, 0.13);
  border-color: var(--primary);
}
.plan-price {
  background: #fff;
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 0 0 14px 14px;
  padding: 1.2rem 0;
  text-align: center;
  margin: 0 -2rem -0.5rem -2rem;
  border-top: 2px solid #e6e6e6;
}
@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;
}

/* Секция Editorial Philosophy */
.section-editorial {
  background: var(--primary);
}
.section-editorial-row {
  min-height: 320px;
}
.editorial-card {
  box-shadow: 0 4px 32px 0 rgba(34, 34, 34, 0.07);
  font-size: 1.08rem;
}
.editorial-card h4 {
  font-size: 1.3rem;
}

/* Секция Stay Connected */
.section-connected {
  background: #f7f8fa;
}
.connected-card {
  border: 2px solid #d9d9d9;
  box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.04);
}
.connected-content h4 {
  font-size: 1.3rem;
}
.connected-img img {
  max-width: 200px;
  width: 100%;
  height: auto;
}
@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;
  }
}

/* Секция контактов */
.section-contacts {
  background: #f7f8fa;
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem auto;
  background: var(--primary);
  border-radius: 50%;
}
.contact-icon span {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}
.section-contacts .fw-bold {
  color: var(--dark);
}

/* Футер */
.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-wrap: 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;
}
