/* Base Styles & Variables */
:root {
  --primary-color: #0077b6;
  --secondary-color: #00b4d8;
  --accent-color: #48cae4;
  --dark-color: #023e8a;
  --light-color: #caf0f8;
  --white: #ffffff;
  --black: #333333;
  --gray: #f8f9fa;
  --dark-gray: #6c757d;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
  border: none;
}

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

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

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

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

.btn-text {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--dark-color);
}

.btn-text i {
  transition: var(--transition);
}

.btn-text:hover i {
  transform: translateX(5px);
}

.full-width {
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
}

.logo-text {
  color: var(--dark-color);
}
.highlight {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--black);
  font-weight: 600;
  font-family: var(--font-primary);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--black);
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

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

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* UNIFORM GRID SYSTEM - ЕДИНООБРАЗНАЯ СЕТКА */
.uniform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.uniform-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.uniform-card:hover {
  transform: translateY(-10px);
}

.uniform-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.uniform-card h3 {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.uniform-card p {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.uniform-card ul,
.uniform-card ol {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.5rem;
  flex-grow: 1;
}

.uniform-card li {
  margin-bottom: 0.5rem;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: auto;
}

/* CONTENT SECTIONS - ЕДИНООБРАЗНЫЕ СЕКЦИИ КОНТЕНТА */
.content-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.content-section.alt-bg {
  background-color: var(--gray);
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin: 3rem 0;
  align-items: start;
}

.content-block.reverse {
  grid-template-columns: 2fr 1fr;
}

.content-block.reverse .content-image {
  order: 2;
}

.content-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-image img {
  width: 100%;
  height: auto;
}

.content-text h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-list {
  margin: 1.5rem 0;
}

.content-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.content-list i {
  color: var(--primary-color);
}

.info-box {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
}

.info-box h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* PROS/CONS STYLING */
.uniform-card.pros .card-icon {
  background-color: #d4edda;
}

.uniform-card.pros .card-icon i {
  color: #28a745;
}

.uniform-card.cons .card-icon {
  background-color: #f8d7da;
}

.uniform-card.cons .card-icon i {
  color: #dc3545;
}

/* Benefits Section */
.benefits {
  background-color: var(--gray);
}

/* Comparison Table Section */
.comparison {
  background-color: var(--gray);
}

.table-container {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Guide Preview Section */
.guide-preview {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: 5rem 0;
}

.guide-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.guide-content {
  max-width: 100%;
}

.guide-content h2 {
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.guide-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.guide-features {
  margin: 2rem 0 3rem;
  padding: 0;
}

.feature-item {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.feature-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.feature-item span {
  flex: 1;
  word-wrap: break-word;
  hyphens: auto;
}

.guide-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.guide-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments for guide preview */
@media (max-width: 992px) {
  .guide-preview .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .guide-content {
    order: 1;
  }

  .guide-image {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .guide-content h2 {
    font-size: 1.8rem;
  }

  .feature-item {
    text-align: left;
  }
}

/* Services Section */
.services {
  background-color: var(--white);
}

/* CTA Section */
.cta {
  background: url("images/cta-bg.jpg") center / cover no-repeat;
  position: relative;
  color: var(--white);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.9) 0%, rgba(2, 62, 138, 0.9) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.info-item h3 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo p {
  margin-top: 1rem;
  color: #ccc;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-services a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.newsletter p {
  color: #ccc;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form input:focus {
  outline: none;
}

.btn-submit {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #ccc;
}

.footer-bottom a:hover {
  color: var(--accent-color);
}

/* New Styles */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.content-text-only {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.content-text-only h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.content-text-only p {
  text-align: left;
}

.content-text-only .content-list {
  text-align: left;
}

/* RESPONSIVE DESIGN - АДАПТИВНОСТЬ */
@media (max-width: 992px) {
  .uniform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .hero .container,
  .guide-preview .container,
  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
  }

  .content-block.reverse .content-image {
    order: 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .uniform-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .uniform-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .content-block {
    margin: 2rem 0;
  }

  .info-box {
    padding: 1.5rem;
  }
}
