/* ============ СТИЛЬ С ПОЛНЫМ ЦЕНТРИРОВАНИЕМ ДЛЯ ВСЕХ БЛОКОВ И УСТРОЙСТВ ============ */

:root {
--color-bg-dark: #000;
--color-bg-light: #fff;
--color-overlay: rgba(0, 0, 0, 0.6);
--color-primary: #5A5AFF;
--color-secondary-bg: #E3E6FF;
--color-secondary-bg-hover: #D8DDFF;
--color-text-light: #fff;
--color-text-dark: #000;
--font-base: 'Montserrat', sans-serif;
--spacing-xs: 8px;
--spacing-sm: 16px;
--spacing-md: 20px;
--spacing-lg: 40px;
--spacing-xl: 80px;
--radius-full: 40px;
--radius-md: 8px;
--container-max: 1200px;
}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
  min-height: 100vh;
  min-width: 320px;
  font-family: var(--font-base);
  background: var(--color-bg-dark);
}

body {
  width: 100%;             /* <== вместо 100vw */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  
}

img, picture, svg, iframe, video {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
}

.container, .certificate-container, .contacts-container, .terms-container {
max-width: var(--container-max);
width: 100%;
margin: 0 auto;
padding-left: 3vw;
padding-right: 3vw;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}

.screen {
  width: 100%;
  min-height: 100svh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-size: cover;
background-position: center;
padding: var(--spacing-xl) 0;
text-align: center;
position: relative;
}
.fade-appear {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-appear.visible {
  opacity: 1;
  transform: translateY(0);
}


h1, h2, h3, .centered-block, .product-item, .certificate-left, .contacts-left, .form-grid {
text-align: center;
}

.cta-button {
display: inline-block;
padding: var(--spacing-lg) var(--spacing-xl);
background: var(--color-text-light);
color: var(--color-text-dark);
border-radius: var(--radius-full);
font-weight: 600;
text-decoration: none;
box-shadow: 0 8px 16px rgba(0,0,0,.25);
transition: background .3s, box-shadow .3s;
text-align: center;
}

.cta-button:hover { background: #f1f1f1; }
.cta-button.secondary {
background: var(--color-secondary-bg);
padding: 18px 36px;
border-radius: 30px;
box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

.cta-button.secondary:hover { background: var(--color-secondary-bg-hover); }
.screen-1 { background-image: url("background.png"); }
.overlay {
position: absolute;
inset: 0;
background: var(--color-overlay);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--spacing-md);
z-index: 2;
}

.logo { max-width: 100px; margin-bottom: var(--spacing-lg); }
h1 {  font-weight: 700; color: var(--color-text-light); margin-bottom: 15px; }
.sub { font-size: 18px; color: #ddd; margin-bottom: 35px; }
.arrow-down {
position: absolute;
bottom: 5%; left: 50%;
transform: translateX(-50%) rotate(-45deg);
width: 30px; height: 30px;
border-left: 2px solid var(--color-text-light);
border-bottom: 2px solid var(--color-text-light);
cursor: pointer; z-index: 3;
}

.screen-2 { background: var(--color-bg-light); color: var(--color-text-dark); }
.screen-2 .container { max-width: 1100px; }
.screen-2 h2 { font-size: clamp(28px, 6vw, 36px); font-weight: 700; margin-bottom: clamp(40px, 8vw, 60px); }
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: clamp(20px, 5vw, 50px) clamp(20px, 10vw, 120px);
justify-content: center;
align-items: center;
width: 100%;
margin-bottom: clamp(40px, 8vw, 60px);
}

.product-item {
display: flex;
align-items: center;
gap: var(--spacing-md);
font-size: clamp(18px, 3vw, 24px);
font-weight: 600;
text-align: center;
line-height: 1.4;
justify-content: center;
}

.product-item .bg-number {
font-size: clamp(80px, 20vw, 150px);
color: rgba(90,90,255,0.08);
font-weight: 700;
margin-right: -20%;
min-width: 80px;
}

.product-item.wide { grid-column: span auto; justify-content: center; }
.screen-3 { background: var(--color-bg-light); color: var(--color-text-dark); }
.screen-3 .container { max-width: var(--container-max); }
.screen-3 h2 { font-size: clamp(2rem, 4vw + 1rem, 42px); font-weight: 700; margin-bottom: 60px; }
.terms-grid {
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: wrap;
gap: 40px;
}

.terms-left {
flex: 1 1 55%;
display: flex;
flex-direction: column;
gap: 40px;
text-align: center;
}
.term {
display: block;
align-items: flex-start;
gap: 20px;
justify-content: center;
}
.term-number { font-size: 72px; font-weight: 700; color: rgba(90,90,255,0.08); min-width: 80px; }
.term-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.term-text p { font-size: 16px; color: #444; line-height: 1.6; }
.terms-right {
flex: 1 1 40%;
display: flex;
align-items: center;
justify-content: center;
}
.terms-right img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.screen-4 {
background-image: url("background.png");
background-size: cover;
background-position: center;
position: relative;
color: var(--color-text-light);
}
.form-overlay {
position: absolute;
inset: 0;
background-color: rgba(0,0,0,0.8);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--spacing-md);
z-index: 2;
}
.screen-4 h2 { font-size: clamp(2rem, 4vw + 1rem, 36px); font-weight: 700; margin-bottom: 20px; }
.screen-4 p { font-size: 16px; margin-bottom: 40px; color: #ddd; }
.form-grid {
display: flex;
flex-direction: column;
align-items: center;
gap: clamp(10px,2vw,20px);
width: 100%;
max-width: 400px;
margin: 0 auto;
}
.form-grid input, .form-grid button { width: 100%; box-sizing: border-box; }
.form-grid input {
padding: 15px 20px;
border: 1px solid var(--color-text-light);
border-radius: var(--radius-full);
background: transparent;
color: var(--color-text-light);
min-width: 220px;
font-size: 14px;
outline: none;
}
.form-grid input::placeholder { color: #ccc; }
.form-grid button {
padding: 15px 30px;
border: none;
border-radius: var(--radius-full);
background: var(--color-text-light);
color: var(--color-text-dark);
font-weight: 600;
cursor: pointer;
transition: background .3s;
}
.form-grid button:hover { background: #f2f2f2; }
.screen-5 { background: var(--color-bg-light); color: var(--color-text-dark); }
.certificate-container {
display: flex;
flex-wrap: wrap;
gap: 40px;
align-items: center;
justify-content: center;
max-width: var(--container-max);
margin: 0 auto;
}
.certificate-left { flex: 1 1 55%; text-align: center; }
.certificate-left h2 { font-size: clamp(2rem,4vw+1rem,36px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.certificate-left p { font-size: 16px; line-height: 1.6; color: #1a1a1a; margin-bottom: 20px; }
.certificate-right { flex: 1 1 40%; text-align: center; }
.certificate-right img { max-width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
.screen-6 {
background: var(--color-bg-light);
padding-top: clamp(40px, 6vw, 100px);
padding-bottom: clamp(20px, 4vw, 40px);
color: var(--color-text-dark);
display: flex;
flex-direction: column;
align-items: center;
}
.contacts-container {
display: flex;
flex-wrap: wrap;
gap: 40px;
justify-content: center;
align-items: center;
max-width: 1800px;
margin: 0 auto;
}
.contacts-left, .contacts-right { flex: 1 1 45%; text-align: center; }
.contacts-right iframe {
width: 100%;
height: clamp(180px,30vw,400px);
border-radius: 10px;
border: none;
display: block;
margin: 0 auto;
}
.contacts-left h1 { font-size: clamp(2rem,4vw+1rem,36px); font-weight: 700; color: var(--color-text-dark); margin-bottom: 30px; }
.contacts-info h2 { font-size: clamp(1rem,2vw+1rem,16px); font-weight: 400; line-height: 1.8; color: #222; margin-bottom: 20px; }
.social-icons {
display: flex;
gap: 16px;
margin-top: 16px;
justify-content: center;
}
.social-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 44px; height: 44px;
border-radius: 50%;
background: var(--color-bg-dark);
transition: background .3s, transform .2s;
}
.social-icons a:hover { background: #222; transform: scale(1.08);}
.social-icons .icon { width: 24px; height: 24px; fill: var(--color-text-light); }
.footer {
background: var(--color-bg-dark);
padding-top: var(--spacing-md);
padding-bottom: 0;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.footer-content {
max-width: 1000px;
width: 100%;
padding: var(--spacing-md);
text-align: center;
}
.footer-content p { color: #aaa; font-size: clamp(.8rem,1.5vw,14px); line-height: 1.6; }
.footer-content a { color: var(--color-text-light); font-weight: 600; text-decoration: none; transition: color .2s; }
.footer-content a:hover { text-decoration: underline; color: #ddd; }
/* !!! СКЕЙЛ НА МАЛЕНЬКИХ ЭКРАНАХ, сайт визуально уменьшается но всё всегда в центре !!! */
@media (max-width: 850px) {
  .main-center {
    transform: scale(0.85);
    transform-origin: top center;
  }
}
@media (max-width: 600px) {
  .main-center {
    transform: scale(0.7);
    transform-origin: top center;
  }
}
@media (max-width: 400px) {
  .main-center {
    transform: scale(0.58);
    transform-origin: top center;
  }
}#success-modal {
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
}
#success-modal .modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(2px);
}
#success-modal .modal-content {
  position: relative;
  z-index: 2;
  background: #171929;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 48px rgba(90,90,255,0.17);
  padding: 44px 34px 32px;
  min-width: 340px;
  max-width: 92vw;
  text-align: center;
  animation: modal-fade-in 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid #323657;
}
@media (max-width: 480px) {
  #success-modal .modal-content { min-width: 0; padding: 24px 7vw 18px; }
}
#success-modal .modal-icon {
  font-size: 3rem;
  color: #3ffb8d;
  margin-bottom: 18px;
  text-shadow: 0 4px 12px rgba(63,251,141,0.2);
}
#success-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: .01em;
}
#success-modal .modal-desc {
  font-size: 1.05rem;
  color: #dde8ff;
  margin-bottom: 24px;
  line-height: 1.5;
}
#success-modal .modal-btn {
  padding: 12px 36px;
  font-size: 1.1rem;
  background: #5A5AFF;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(90,90,255,0.08);
  transition: background 0.22s;
}
#success-modal .modal-btn:hover { background: #7272fa; }

@keyframes modal-fade-in {
  0% { opacity:0; transform: scale(0.92);}
  100% { opacity:1; transform: scale(1);}
}

