/* =============================================
   RA GROUP — Main Stylesheet
   ============================================= */

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

:root {
  --primary: #7b2ff7;
  --primary-dark: #5a1db5;
  
  --accent: #c0a062;
  --accent-dark: #B8860B;
  
  --red: #e02020;
  --blue: #1a6dc1;
  --blue-light: #3a8fe8;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --dark3: #0f245c;
  --gray: #f4f6fb;
  --gray2: #e8ecf5;
  --text: #222;
  --text-light: #555;
  --white: #fff;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-text: 'Open Sans', sans-serif;
  --shadow: 0 4px 24px rgba(123,47,247,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.13);
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }

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


/* Отступ первой строки */
.f-line {
    text-indent: 30px; /* красная строка с отступом */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */



    /* Стили для размещения кнопки на конверте */
    .header-order-wrapper {
      position: relative;
      width: 200px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      /* Если фон poch.png прозрачный, дополнительных фильтров не нужно */
     background-image: url('../image/poch.png') !important;
	 background-repeat: no-repeat;
	  /* ПЕРВАЯ цифра (80%) - смещение вправо (увеличивайте, чтобы конверт уходил правее) */
      /* ВТОРАЯ цифра (20%) - смещение вверх (уменьшайте до 0%, чтобы поднять выше) */
	  background-position: 100% 0%; 
      background-size: 70px auto; /* Фиксируем размер самого конверта */
      /* Поворот для эффекта как на макете */
      /*transform: rotate(5deg);*/
      margin-left: 20px;
    }

    .header-btn-on-envelope {
      background: #d4a373; /* Цвет кнопки как на макете */
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 10px;
      font-weight: 800;
      font-size: 11px;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
      /* Наклон текста в обратную сторону для компенсации наклона конверта 
      transform: rotate(-3deg);
      transition: all 0.3s ease;
      white-space: nowrap;
      z-index: 2;*/
    }

    .header-btn-on-envelope:hover {
      background: #c29262;
      /*transform: rotate(-3deg) scale(1.05);*/
    }

    /* Адаптив: на средних экранах чуть меньше */
    @media (max-width: 1100px) {
      .header-order-wrapper {
        width: 180px;
        height: 100px;
      }
    }

    /* На мобильных убираем конверт, оставляем кнопку стандартной */
    @media (max-width: 768px) {
      .header-order-wrapper {
        background: none;
        width: auto;
        height: auto;
        transform: none;
        margin-left: 0;
      }
      .header-btn-on-envelope {
        transform: none;
        background: #e02020; /* Возвращаем фирменный красный на мобилках */
      }
    }




.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
 /* position: sticky;
  top: 0;   */
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 14px;  /* 22 высота белого поля лого  */
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 85px;
  height: 85px;   /* размер лого  */
  display: flex;
  align-items: center;
  justify-content: center;
  
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo-img2 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #c056f7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 26px;
  color: white;
  letter-spacing: 1px;
  flex-shrink: 0;
}

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

.logo-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-addr {
  font-size: 17px;
  color: var(--text-light);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-phone {
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.header-email {
  font-size: 16px;
  color: var(--blue);
}

.header-btn {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
}

.header-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---- NAV ---- */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

.nav-inner a {
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 20px;   /* 10 высотаменю  */
  transition: background var(--transition);
  position: relative;
}

.nav-inner a:hover, .nav-inner a.active {
  background: rgba(255,255,255,0.15);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(120deg, var(--dark2) 0%, #0d1b3e 60%, #1a0533 100%);
  min-height: 420px;  /* высота синего поля после меню регулировать вместе со строкой 213  */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../image/mai.png') center/cover no-repeat;
  opacity: 0.18;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 24px;  /* высота синего поля после меню регулировать вместе со строкой 192  */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { flex: 1; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  background: #c01515;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,32,32,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  display: inline-block;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ---- FORM CARD ---- */
.hero-form-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  width: 340px;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.form-card-title {
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.form-row input, .hero-form-card input, .hero-form-card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border var(--transition);
}

.form-row input:focus, .hero-form-card input:focus {
  border-color: var(--primary);
}

.btn-form {
  width: 100%;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  margin-top: 10px;
  transition: background var(--transition);
}

.btn-form:hover { background: #c01515; }

/* ---- SECTIONS ---- */
section { padding: 70px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 48px;
}

.section-line {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin: 0 auto 40px;
}

/* ---- SERVICES GRID ---- */
.services-section { background: var(--gray); }

.services-category-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 100%;
  height: 160px;        /* фиксированная высота — одинакова для всех */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--gray);
  overflow: hidden;
  flex-shrink: 0;       /* не сжимается */
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-icon img {
  transform: scale(1.05);
}

/* Заглушка если нет картинки — та же высота */
.service-icon.no-img {
  height: 160px;
  font-size: 48px;
}


.service-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  padding: 14px 16px;
  width: 100%;
  flex: 1;                    
  display: flex;              
  align-items: center;        
  justify-content: center;    
}


/* ---- WHY US ---- */
.why-us { background: white; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.why-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  color: white;
}

.why-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.why-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- STATS ---- */
.stats-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { color: white; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 600;
}

/* ---- CLIENTS ---- */
.clients-section { background: var(--blue-light); padding: 60px 0; }

.clients-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 38px;
  color: white;
  margin-bottom: 32px;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.client-logo {
  background: white;
  border-radius: 8px;
  
  
/*  padding: 12px 16px; */
  width: 160px; height: 80px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
/*   min-width: 120px;  */
  overflow: hidden;
  
  
 /* font-weight: 700;
  font-size: 13px;
  color: var(--text); */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
  transform: translateY(-3px)
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* логотип вписывается не обрезаясь */
}

/* ---- PRODUCTION ---- */
.production-section { background: var(--gray); }

.production-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.production-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.production-photos .photo {
  border-radius: 10px;
  height: 160px;
  background: var(--gray2);
  overflow: hidden;
}

.production-photos .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- CONTACT ---- */
.contact-section { background: white; }

.contact-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-block { text-align: center; padding: 28px; }

.contact-icon { font-size: 40px; margin-bottom: 12px; }

.contact-label {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-value {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-logo-box {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), #c056f7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  color: white;
}

.footer-sub { font-size: 12px; opacity: 0.5; margin-top: 4px; }

.footer-contacts { display: flex; flex-direction: column; gap: 8px; }

.footer-phone { font-size: 24px; font-weight: 800; }

.footer-email { font-size: 14px; opacity: 0.7; }

.footer-btn {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  margin-top: 10px;
  display: inline-block;
  transition: background var(--transition);
}

.footer-btn:hover { background: var(--accent-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.5;
}

/* ---- SERVICE PAGE ---- */
.service-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, #0d1b3e 100%);
  padding: 60px 0;
  color: white;
}

.service-hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.service-hero-desc {
  font-size: 18px;
  opacity: 0.8;
  max-width: 600px;
}

.service-content { padding: 60px 0; }

.service-content-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.service-text h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--primary);
}

.service-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.service-features {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.feature-item::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.order-sidebar {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border var(--transition);
  background: white;
}

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

.sidebar-form textarea { height: 100px; resize: vertical; }

.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ---- WORKS GALLERY ---- */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.works-gallery .work-item {
  border-radius: 10px;
  overflow: hidden;
  height: 220px;
  background: var(--gray2);
}

.works-gallery .work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.works-gallery .work-item:hover img {
  transform: scale(1.06);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-content-inner { grid-template-columns: 1fr; }
  .order-sidebar { position: static; }
}

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; }
  .hero-form-card { width: 100%; }
  .hero-title { font-size: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .works-gallery { grid-template-columns: repeat(2, 1fr); }
  .production-inner { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .nav-inner { flex-wrap: wrap; }
  .nav-inner a { font-size: 12px; padding: 10px 12px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 32px; }
  .hero-title { font-size: 36px; }
  .stat-number { font-size: 48px; }
}

/* ---- CAPTCHA & CONSENT ---- */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.4;
}
.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--red);
}

.captcha-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray);
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
}
.captcha-question {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
  min-width: 80px;
}
.captcha-input {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  max-width: 80px;
  transition: border-color var(--transition);
}
.captcha-input:focus { border-color: var(--blue); }
.captcha-refresh {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition), transform 0.3s;
}
.captcha-refresh:hover { color: var(--blue); transform: rotate(180deg); }

.captcha-hint {
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 4px;
}

.btn-form:disabled {
  background: #ccc !important;
  color: #999 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
