/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #040616;
  color: #e7eaf3;
  line-height: 1.6;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.hero {
  background: radial-gradient(circle at center, rgba(4, 6, 22, 0.9), rgba(2, 2, 10, 1));
  padding: 100px 20px;
}

/* Container inside hero: align logo and text side by side */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.logo-side {
  flex: 0 0 auto;
}

.hero-text {
  flex: 1 1 300px;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-text p {
  font-size: 1.1rem;
  color: #c8d0e7;
}

.logo {
  width: 200px;
  max-width: 200px;
  height: auto;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(90deg, #00c3ff 0%, #ff00aa 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.6), 0 0 15px rgba(0, 195, 255, 0.6);
}

/* Features */
.features {
  /* Reduce vertical padding to tighten the section relative to the header */
  padding: 40px 0;
  text-align: center;
}

.features h2 {
  /* Reduce spacing under the heading to remove large gaps */
  margin-bottom: 20px;
  font-size: 2rem;
  color: #ffffff;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* Allow the cards container to fill the same width as the page container */
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.card {
  flex: 1 1 280px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card h3 {
  margin-top: 0;
  color: #00c3ff;
  font-size: 1.3rem;
}

.card p {
  color: #c8d0e7;
  margin-top: 10px;
}

/* CTA and request form */
.cta {
  /* Reduce top margin to keep the CTA closer to the cards */
  margin-top: 20px;
  text-align: center;
}

.request-form {
  margin-top: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  /* Narrower form container for a more comfortable width */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Limit the form width inside request form */
.request-form form {
  /* Limit the width of the form itself for better readability */
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.request-form h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Hidden class to hide request form until button is clicked */
.hidden {
  display: none;
}

/* Videos section */
.videos {
  padding: 60px 0;
  text-align: center;
}

.videos h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #ffffff;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.video-card {
  flex: 1 1 300px;
  max-width: 340px;
  height: 200px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(0, 195, 255, 0.2), rgba(255, 0, 170, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

/* Remove iframe and link styles: replaced by overlay */

/* Overlay link to watch video */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(0, 195, 255, 0.4), rgba(255, 0, 170, 0.4));
  transition: background 0.3s ease;
}

.video-overlay:hover {
  background: linear-gradient(180deg, rgba(0, 195, 255, 0.6), rgba(255, 0, 170, 0.6));
}

.play-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

/* About */
.about {
  padding: 80px 0;
  text-align: center;
}

.about h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #ffffff;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  color: #c8d0e7;
}

/* Contact */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #ffffff;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888ca0;
}

/* Стили для select со стрелкой */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width="20" height="10" viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg" fill="%23ffffff"%3E%3Cpath d="M0 0l10 10 10-10H0z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 6px;
  padding-right: 36px;
}

/* Footer */
footer {
  background: rgba(0, 0, 20, 0.8);
  padding: 20px 0;
  text-align: center;
  color: #606784;
  font-size: 0.9rem;
}