@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
  --red: #dd3333;
  --red-dark: #c12828;
  --navy: #1a1d24;
  --navy-light: #252932;
  --text: #555555;
  --text-dark: #222222;
  --white: #ffffff;
  --gray-bg: #f5f5f5;
  --gray-border: #e0e0e0;
  --container: 1170px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

a:hover {
  color: var(--red-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.3;
  margin-top: 0;
}

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

.section {
  padding: 80px 0;
}

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

.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .subtitle {
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.2s;
  text-align: center;
}

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

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

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

.btn--outline:hover {
  background: var(--red);
  color: var(--white);
}

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

.btn--white:hover {
  background: var(--gray-bg);
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.top-bar__contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar__social {
  display: flex;
  gap: 12px;
}

.top-bar__social a {
  color: rgba(255, 255, 255, 0.75);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.top-bar__social a:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 0;
  gap: 12px 16px;
  position: relative;
}

.logo {
  flex-shrink: 0;
}

.main-nav {
  min-width: 0;
  justify-self: center;
}

.logo img {
  height: 42px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
}

.main-nav li {
  flex-shrink: 0;
}

.main-nav a {
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 9px;
  display: block;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 12px 16px;
  font-size: 11px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 29, 36, 0.85) 0%, rgba(26, 29, 36, 0.45) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 620px;
  color: var(--white);
  padding: 60px 0 120px;
}

.hero__content h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.hero__content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-form-wrap {
  position: relative;
  margin-top: -70px;
  z-index: 10;
  margin-bottom: 40px;
}

.hero-form {
  background: var(--white);
  padding: 35px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.hero-form h3 {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.hero-form__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
}

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

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--red);
}

.field-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
}

.checkbox-group {
  margin-bottom: 18px;
}

.checkbox-group__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group__inner input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 4px 0 0;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.checkbox-group__inner label {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
}

.checkbox-group > .field-error {
  margin-top: 6px;
  padding-left: 30px;
}

.form-message {
  display: none;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
  font-weight: 600;
}

.form-message--visible {
  display: block;
}

.form-message--error {
  background: #ffebee;
  color: #c62828;
  border-left-color: #c62828;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-images {
  position: relative;
  padding-bottom: 30px;
}

.about-images__main {
  border-radius: 4px;
  overflow: hidden;
}

.about-images__secondary {
  position: absolute;
  bottom: 0;
  right: -10px;
  width: 45%;
  border: 6px solid var(--white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 25px;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 4px solid rgba(221, 51, 51, 0.3);
}

/* Stats */
.stats-bar {
  background: var(--navy);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 35px 20px;
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:nth-child(odd) {
  background: rgba(221, 51, 51, 0.15);
}

.stat-item__icon {
  font-size: 36px;
  color: var(--red);
  margin-bottom: 10px;
}

.stat-item h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 5px;
}

.stat-item p {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Service cards dark */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--navy-light);
  padding: 40px 30px;
  text-align: center;
  transition: transform var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--red);
}

.service-card__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
}

.service-card h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
  font-size: 14px;
}

.service-card a {
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-box {
  text-align: center;
  padding: 25px 15px;
}

.feature-box__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border: 2px solid var(--gray-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red);
  transition: all var(--transition);
}

.feature-box:hover .feature-box__icon {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.feature-box h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13px;
  margin: 0;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.project-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.08);
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 36, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-item:hover .project-item__overlay {
  opacity: 1;
}

.project-item__overlay span {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__num {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.process-step h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13px;
  margin: 0;
  opacity: 0.75;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card__body {
  padding: 25px 20px;
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.team-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 35px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--red);
}

.testimonial-card .stars {
  color: #ffc107;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.blog-card__body {
  padding: 25px;
}

.blog-card .date {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 17px;
  margin: 10px 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  text-align: center;
  padding: 45px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card--featured {
  border-color: var(--red);
  box-shadow: 0 15px 40px rgba(221, 51, 51, 0.15);
  transform: scale(1.03);
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.pricing-card .price {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--red);
  margin: 20px 0;
}

.pricing-card .price small {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Page banner */
.page-banner {
  background: var(--navy);
  padding: 70px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 36, 0.88);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 10px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--red);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* Content pages */
.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 24px;
  margin-top: 35px;
  margin-bottom: 15px;
}

.content-block h3 {
  font-size: 18px;
  margin-top: 25px;
}

.content-block ul {
  padding-left: 20px;
}

.content-block ul li {
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-box {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px;
}

.contact-info-box h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-info-box p {
  margin-bottom: 15px;
}

.contact-form-box {
  background: var(--gray-bg);
  padding: 40px;
}

/* Partners */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
}

.partner-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dark);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-about .logo img {
  margin-bottom: 20px;
  height: 42px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-post img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 3px;
}

.footer-post a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
}

.footer-post span {
  display: block;
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
}

.footer-social a:hover {
  background: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--red);
}

/* Responsive */
@media (max-width: 991px) {
  .hero-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .services-grid,
  .features-grid,
  .process-steps,
  .team-grid,
  .testimonials-grid,
  .blog-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-card--featured {
    transform: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    justify-self: stretch;
  }

  .main-nav.is-open {
    max-height: 480px;
  }

  .main-nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    padding: 15px;
    align-items: stretch;
  }

  .main-nav a {
    font-size: 13px;
    padding: 10px 14px;
    white-space: normal;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 767px) {

  .hero-form__grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .services-grid,
  .features-grid,
  .process-steps,
  .team-grid,
  .testimonials-grid,
  .blog-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 55px 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
