/* =========================================
   1. FONTS
   ========================================= */
@font-face {
  font-family: 'Folies Bergere';
  src: url('fonts/folies-bergere.tff') format('tff'),
       url('fonts/folies-bergere.tff') format('tff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Inter */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhiI2B.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthiI2B.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhiI2B.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhiI2B.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhiI2B.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhiI2B.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================
   2. VARIABLES
   ========================================= */
:root {
  /* Colors */
  --c-bg-dark: rgba(20, 29, 33, 1);
  --c-bg-dark-2: rgba(41, 41, 41, 1);
  --c-accent: rgba(184, 104, 46, 1);
  --c-primary: rgba(191, 242, 5, 1);
  --c-secondary: rgba(10, 191, 4, 1);
  --c-blue: rgba(0, 136, 204, 1);
  --c-blue-bg: rgba(0, 136, 204, 0.15);
  --c-gray: rgba(177, 188, 194, 1);
  --c-text-light: rgba(206, 226, 239, 1);
  --c-text-dark: rgba(20, 29, 33, 1);
  --c-plastic: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading: 'Folies Bergere', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Borders */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Layout */
  --header-height: 90px;
  --footer-height: 140px;
  --container-max: 1200px;
}

/* =========================================
   3. RESET & BASE
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ФОН */
body {
  font-family: var(--font-body);
  color: var(--c-text-light);
  line-height: 1.5;
  background-image: url('images/background-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--c-bg-dark);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  outline: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

ul, ol {
  list-style: none;
}

/* =========================================
   4. LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 140px;
}

/* 🔥 Отступы для fixed header и footer */
.main-content {
  width: 100%;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

/* =========================================
   5. HEADER (FIXED к верху)
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background-color: rgba(20, 29, 33, 0.95);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-bottom: 1px solid var(--c-plastic);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 140px;
  max-width: 100%;
  margin: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 45px;
  height: 67px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 38px;
  color: var(--c-text-light);
}

.logo-text2 {
  font-weight: 400;
  height: 52px;
  font-size: 18px;
  line-height: 26px;
  color: var(--c-text-light);
  margin-top: 25px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 18px;
  line-height: 26px;
  color: var(--c-text-light);
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-link {
  display: flex;
  transition: opacity 0.2s ease;
}
.contact-link:hover { opacity: 0.7; }

.icon {
  width: 24px;
  height: 24px;
}

/* =========================================
   6. FOOTER (FIXED к низу)
   ========================================= */
.footer {
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background-color: rgba(20, 29, 33, 0.95);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-top: 1px solid var(--c-plastic);
}

.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 140px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  gap: 40px;
}

/*.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 20px;
  column-gap: 62px;
}
*/
.footer-nav {
  display: flexbox;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 20px;
  column-gap: flex;
}

.footer-nav-item {
  height: 36px;
  width: 141px;
  margin-top: 9px;
  margin-bottom: 9px;
  }

.footer-link {
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text-light);
  transition: opacity 0.2s ease;
}
.footer-link:hover { opacity: 0.7; }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-bottom {
  padding: 15px 0;
  border-top: 1px solid var(--c-plastic);
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text-light);
  opacity: 0.7;
}



/* =========================================
   7. HERO (index.html)
   ========================================= */
.hero {
  padding: 50px 140px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-title {
  font-family: Inter;
  text-align: center;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text-light);
  margin-bottom: 114px;
  max-width: 900px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--c-blue-bg);
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(0px);
  background-color: rgba(0, 136, 204, 0.25);
}

.service-card p {
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-light);
  text-align: center;
}

/* =========================================
   8. LICENSES PAGE
   ========================================= */
.licenses-section {
  padding: 80px 140px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.licenses-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text-light);
  margin-bottom: 60px;
}

.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.license-card {
  background-color: var(--c-plastic);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.license-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.license-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   9. CONTACTS PAGE
   ========================================= */
.contacts-section {
  padding: 80px 140px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.contacts-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text-light);
  margin-bottom: 40px;
}

.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-item .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(500%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-link {
  color: var(--c-text-light);
  font-size: 18px;
  line-height: 28px;
  transition: color 0.2s;
}
.info-link:hover { color: var(--c-accent); }

.info-text {
  color: var(--c-text-light);
  font-size: 18px;
  line-height: 28px;
}

.contact-form-wrapper {
  background-color: var(--c-plastic);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: var(--c-text-light);
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-input {
  width: 100%;
  background-color: var(--c-blue-bg);
  border: 2px solid var(--c-blue);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text-light);
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-input::placeholder {
  color: var(--c-text-light);
  opacity: 0.6;
}
.form-input:focus {
  outline: none;
  border-color: var(--c-accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}

.checkbox-input {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: var(--c-blue);
  cursor: pointer;
}

.checkbox-text {
  color: var(--c-text-light);
}

.checkbox-link {
  color: var(--c-blue);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  line-height: 26px;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--c-accent);
  color: var(--c-text-dark);
  font-weight: 700;
}
.btn-primary:hover {
  background-color: #a85f2a;
  transform: translateY(-2px);
}

/* =========================================
   10. ABOUT PAGE
   ========================================= */
.about-section,
.activities-section,
.partners-section {
  padding: 60px 140px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-title,
.activities-title,
.partners-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text-light);
  margin-bottom: 30px;
}

.about-description {
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-light);
  max-width: 900px;
}

.activities-list,
.partners-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.activity-item,
.partner-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-light);
}

.activity-icon,
.partner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(500%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

/* =========================================
   11. SERVICES PAGE
   ========================================= */
.services-section {
  padding: 80px 140px;
  max-width: 900px;
  margin: 0 auto;
}

.services-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: var(--c-text-light);
  margin-bottom: 40px;
}

.service-content p,
.service-additional p {
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-light);
  margin-bottom: 20px;
}

.service-process {
  background-color: var(--c-plastic);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}

.process-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 34px;
  color: var(--c-text-light);
  margin-bottom: 25px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-light);
}

.process-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(500%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 1200px) {
  .header-inner,
  .footer-inner { padding-left: 60px; padding-right: 60px; }
  .hero,
  .licenses-section,
  .contacts-section,
  .about-section,
  .activities-section,
  .partners-section,
  .services-section { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 992px) {
  .hero-title,
  .licenses-title,
  .contacts-title,
  .about-title,
  .activities-title,
  .partners-title,
  .services-title { font-size: 36px; }

  .services-grid { grid-template-columns: 1fr; }
  .contacts-content { grid-template-columns: 1fr; }

  .header-inner {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 40px;
  }
  .header-actions { gap: 30px; }
  .nav-list { gap: 20px; flex-wrap: wrap; }
  .nav-link { font-size: 16px; }
}

@media (max-width: 768px) {
  :root { 
    --header-height: 70px;
    --footer-height: 120px;
  }

  .header-inner,
  .footer-inner { padding: 15px 20px; }
  
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; padding: 15px 0; }
  .footer-legal { align-items: flex-start; }
  .footer-bottom { padding: 10px 0; }

  .hero,
  .licenses-section,
  .contacts-section,
  .about-section,
  .activities-section,
  .partners-section,
  .services-section { padding: 40px 20px; }

  .hero-title,
  .licenses-title,
  .contacts-title,
  .about-title,
  .activities-title,
  .partners-title,
  .services-title { font-size: 28px; margin-bottom: 20px; }

  .service-card { padding: 20px; }
  .service-card p { font-size: 16px; line-height: 24px; }

  .nav-list { gap: 15px; }
  .nav-link { font-size: 14px; line-height: 20px; }
  .header-contacts { gap: 15px; }

  .contact-form-wrapper { padding: 25px; }
  .form-title { font-size: 24px; }

  .service-process { padding: 25px; }
  .process-title { font-size: 20px; }

  /* 🔥 На мобильных отключаем fixed background (тормозит на iOS) */
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .header-actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-list { width: 100%; }
  .header-contacts { width: 100%; justify-content: flex-start; }

  .info-item { flex-direction: column; gap: 8px; }
}