@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2a5caa;
  --primary-dark: #1e3a6b;
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --accent: #e84646;
  --bg-light: rgba(42, 92, 170, 0.1);
  /* --bg-light: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%); */
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #2a5caa 6%, #1e3a6b 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--white);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  color: var(--text-gray);
  gap: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-image {
  height: 60px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-text-sub {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
  text-align: center;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.cta-button {
  background: var(--accent);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background-image: url(./images/main-bg.jpg);
  background-image: image-set(
    url('./images/main-bg.webp') type('image/webp'),
    url('./images/main-bg.jpg') type('image/jpeg')
  );
  background-repeat: no-repeat;
  background-position: right;
  background-size: cover;
  color: white;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero:after {
  content: "";
  position: absolute;
  top: 80;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 58, 107, 0.7);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  font-weight: 900;
}

.hero-text .subtitle {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-primary {
  background: white;
  color: var(--primary);
  padding: 1.1rem 3.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.3s,
              box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.1rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background-color .3s,
              border-color .3s;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-light);
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-content {
  max-width: 1280px;
  margin: 0 auto;
}

.trust-text {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dark);
  font-weight: 600;
}

.badge-icon {
  height: 25px;
  width: 25px;
}

/* Section Styles */
section {
  padding: 6rem 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  z-index: 1;
  position: relative;
}

.section-label {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.benefit-card {
  padding: 2.5rem;
  background: white;
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.1);
}

.benefit-icon {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.benefit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 700;
}

.benefit-card p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1rem;
}

/* Loyalty-system Section */

.loyalty-system {
  background: var(--bg-light);
}

.loyalty-system-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.loyalty-system-card {
  width: 400px;
  background: white;
  border-radius: 24px;
  transition: all 0.4s;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.loyalty-system-card-icon {
  width: 50px;
  height: 50px;
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 2;
  border-radius: 20px;
  transition: all 0.3s;
  background: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.loyalty-system-card:hover .loyalty-system-card-icon {
  transform: scale(1.2);
  box-shadow: var(--shadow-md);
}

.loyalty-system-arrow-icon {
  height: 30px;
  width: 30px;
  margin: 20px 0;
  border-radius: 50%;
  transition: all 0.3s;
  transform: rotate(90deg);
}

.loyalty-system-card:hover .loyalty-system-arrow-icon {
  transform: rotate(90deg) scale(1.3);
}

.loyalty-system-blue-text {
  color: var(--primary);
  text-transform: uppercase;
  transition: all 0.3s;
}

/* .loyalty-system-card:hover .loyalty-system-blue-text {
  border-bottom: 2px solid var(--primary);
} */

/* Programs Section */

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.program-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.program-header {
  padding: 2rem;
  background-image: url(./images/programs.jpg);
  background-image: image-set(
    url('./images/programs.webp') type('image/webp'),
    url('./images/programs.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  object-fit: cover;
  color: white;
  position: relative;
  display: flex;
  align-items: end;
  min-height: 300px;
}

.program-card:nth-child(2) .program-header {
  background-position: center;
}

.program-header::after {
  content: "";
  position: absolute;
  background: rgba(30, 58, 107, 0.5);
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 58, 107, 1) 0%,
    rgba(30, 58, 107, 0.2) 100%
  );
}

.program-header-text {
  position: relative;
  z-index: 1;
}

.program-header h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.program-target {
  font-size: 1rem;
}

.program-item {
  border-top: 1px solid rgba(15, 23, 42, 0.2);
}

.program-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 500;
  cursor: pointer;
  padding: 25px;
  transition: all 0.3s;
}

.program-question:hover {
  background: var(--bg-light);
}

.program-answer {
  display: none;
  cursor: default;
  padding: 0 20px 20px;
}

.program-answer h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-answer h4:first-child {
  margin-top: 10px;
}

.program-icon-money {
  width: 20px;
  height: 20px;
  fill: var(--primary-dark);
}

.program-answer ul {
  padding-left: 50px;
}

.program-answer ul li {
  margin: 5px 0;
}

.program-answer p {
  margin-left: 30px;
}

.program-button {
  display: block;
  width: 100%;
  margin-top: 25px;
  text-align: center;
  background: var(--accent);
}

.program-item-arrow {
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  margin-left: 25px;
  height: 100%;
  transform: rotate(-90deg);
  width: 16px;
}

.program-item.active svg {
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
  transform: rotate(0);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

/* Methodology */
.methodology {
  background: var(--bg-light);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  width: 100%;
}

.method-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform .3s,
              box-shadow .3s;
  position: relative;
}

.method-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.method-number {
  width: 60px;
  height: 60px;
  background: url(./images/digits-bg.jpg);
  background-image: image-set(
    url('./images/digits-bg.webp') type('image/webp'),
    url('./images/digits-bg.jpg') type('image/jpeg')
  );
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
  background-position: center;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.method-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.method-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: .8rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.75rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-answer {
  padding: 2rem 1.75rem;
  color: var(--text-gray);
  display: none;
  line-height: 1.8;
  font-size: 1rem;
  cursor: default;
}

.faq-answer ul {
  padding-left: 1rem;
}

.faq-icon {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.3s;
  flex-shrink: 0;
  padding: 7px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Contact Form */

.contact-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-image: url(./images/contact-bg2.jpg);
  background-image: image-set(
    url('./images/contact-bg2.webp') type('image/webp'),
    url('./images/contact-bg2.jpg') type('image/jpeg')
  );
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover;
  position: relative;
  display: block;
}

.contact-section h2 {
  color: white;
}

.contact-section::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(30, 58, 107, 0.85) 100%
  );
}

.contact-form {
  position: relative;
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  z-index: 5;
}

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

.form-group-checkbox label {
  display: inline;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group select {
  appearance: none;
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.custom-checkbox {
    margin: 20px 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.custom-checkbox label {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.custom-checkbox label a {
    color: var(--primary-dark);
    margin-left: 5px;
    text-decoration: none;
}

.custom-checkbox label a:hover {
    text-decoration: underline;
}

.custom-checkbox label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2s ease;
    background-color: #fff;
    display: inline-block;
    flex-shrink: 0;
}

.custom-checkbox:hover label::before {
    border-color: var(--accent);
}

.custom-checkbox input:checked + label::before {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox label {
    position: relative;
}

.custom-checkbox input:checked + label::after {
    content: '';
    position: absolute;
    left: 8px; 
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg); 
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--accent);
}

/* Стиль при фокусе (для доступности с клавиатуры) */
/* .custom-checkbox input:focus + label::before {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
} */

.submit-button {
  width: 100%;
  /* background: var(--primary); */
  background: var(--accent);
  color: white;
  padding: 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(232, 70, 70, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.6;
}

.label-small {
  font-size: 14px;
}

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

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
  background: #ffffff;
}

.social-link:hover {
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: white;
}

.social-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom-links {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile Menu */

body.no-scroll { overflow: hidden; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
    width: 30px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav {
    position: absolute;
    top: 0;
    right: -100%; /* Скрыто за экраном */
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 80px 40px;
    transition: 0.4s;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav.active {
    right: 0; /* Появляется */
}

.nav-list {
    list-style: none;
    gap: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-list a {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: var(--primary);
}


/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    display: none;
  }

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

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

@media (max-width: 950px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  nav {
    padding-right: 0;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    gap: 1.5rem;
  }
  .benefit-card {
    padding: 1rem;
  }
  .trust-badges {
    gap: 1rem;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 570px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-stats {
    gap: 1rem;
  }
  .hero-content {
    padding: 0 .5rem;
  }
  .hero-text .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .logo-text-sub {
    display: none;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .cta-primary {
    padding: 1.1rem 1.5rem;
  }
  .loyalty-system-card {
    width: 350px;
  }
  .section-header p {
    font-size: 1rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .hero {
    margin-top: 66px;
    height: auto;
  }
  .method-card {
    padding: 2rem 1rem;
  }
  .faq-question {
    padding: 1.5rem 1rem;
    gap: 1rem;
    font-size: 1rem;
  }
  .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  nav {
    padding: .5rem 0;
  }
  section {
    padding: 3rem 1rem;
  }
  .faq-answer {
    padding: 1.5rem 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .loyalty-system-card::after {
    top: -15px;
    left: -15px;
  }
  .trust-badge {
    font-size: 0.9rem;
  }
  .badge-icon {
    height: 20px;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .custom-checkbox label a {
    margin-left: 30px;
  }
}

@media (max-width: 340px) {
  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  nav {
    gap: 10px;
    padding: .5rem;
  }
  .logo-image {
    height: 50px;
  }
  .benefit-card h3 {
    font-size: 1.2rem;
    margin: 0 0 .5rem;
  }
  .benefit-card {
    width: 300px;
    box-sizing: border-box;
    padding: .5rem;
  }
  .benefit-icon {
    margin: .5rem auto;
  }
  .benefit-card p {
    font-size: .9rem;
  }
  .program-answer h4 {
    font-size: .9rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .loyalty-system-card::after {
    left: -10px;
  }
}


/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Success Message */
.success-message {
  color: #10b981;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: block;
  animation: slideDown 0.3s ease;
  margin-top: 1rem;
}

/* Success Message */
.error-message {
  color: #e84646;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: block;
  animation: slideDown 0.3s ease;
  margin-top: 1rem;
}

/* appearance animation */

.hero-text h1, .contact-form {
  animation: fadeInUp 0.8s ease 0.2s backwards;
  animation-delay: .1s;
}
.hero-text .subtitle {
  animation: fadeInUp 0.8s ease 0.2s backwards;
  animation-delay: .7s;
}

.stat-item {
  animation: fadeInUp 0.8s ease 0.2s backwards;
  animation-delay: 1s;
}

.cta-primary {
  animation: fadeInDown 0.8s ease 0.2s backwards;
  animation-delay: 1.2s;
}

.cta-secondary {
  animation: fadeInDown 0.8s ease 0.2s backwards;
  animation-delay: 1.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимации при скролле - своими руками */
/* .scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
} */

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    /* НЕТ transition здесь! */
}

/* Transition добавляется ПОСЛЕ появления */
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease,
                transform 0.8s ease;
}


/* Documentation Page Styles */
.docs-page {
  padding: 50px 20px;
  max-width: 1280px;
  min-height: calc(100vh - 148px);
}

.docs-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.docs-page h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.docs-page p {
  line-height: 1.4;
  margin-top: 10px;
}

.docs-page ul {
  list-style: none;
}

.docs-page ul li {
  margin-top: 5px;
  line-height: 1.4;
}

.docs-page .docs-page-list {
  list-style: disc;
  padding-left: 20px;
}

.docs-page-date {
  font-style: italic;
  margin-top: 2rem;
}

.footer-docs {
  padding-top: 0;
}