/* ===================================================
   animatortop.ru — style.css
   Базовые стили Платформы LP (адаптация под VPS)
   + стили модалки
   =================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 300;
  background-color: white;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

/* ---------- area / container ---------- */

.area-wrapper { width: 100%; overflow-x: hidden; }

.area { width: 100%; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 991px) {
  .container { max-width: 940px; }
}
@media (max-width: 767px) {
  .container { max-width: 737px; }
}

/* ---------- section / node ---------- */

.section { position: relative; width: 100%; }
.section-clear { clear: both; }
.section-helper { display: none; }

.node { position: relative; }
.cont { position: relative; }

.padding_top, .padding_bottom { width: 100%; }

.wrapper1 {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.wrapper2 { position: absolute; top:0; left:0; right:0; bottom:0; }

/* ---------- grid / col ---------- */

.widget-grid { width: 100%; }

.grid { width: 100%; }
.gridwrap {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 1;
}
.grid.valign-middle .gridwrap { align-items: center; }
.grid.valign-top .gridwrap { align-items: flex-start; }

.grid.paddings-0px .gridwrap { gap: 0; }
.grid.paddings-40px .gridwrap { gap: 40px; }

.col {
  flex: 0 0 auto;
  min-width: 0;
}

@media (max-width: 767px) {
  .grid.xs-wrap .gridwrap { flex-direction: column; }
  .grid.xs-wrap .col { width: 100% !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .grid.sm-wrap .gridwrap { flex-direction: column; }
  .grid.sm-wrap .col { width: 100% !important; }
}

/* ---------- buttons ---------- */

.button-container { text-align: center; margin: 0; }
.button-container.center { text-align: center; }
.button-wrapper { display: inline-block; vertical-align: middle; }

@media (max-width: 767px) {
  .button-container.xs-none .button-wrapper { display: block; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
}
.btn .pad-left, .btn .pad-right { flex: 0 0 auto; }
.btn .btn-content { flex: 1 1 auto; text-align: center; }
.btn-legacy { transition: all 200ms; }

/* ---------- image widget ---------- */

.widget-image { width: 100%; }
.bgnormal { text-align: center; }
.xs-force-center { text-align: center; }

.roundimage { display: block; text-align: center; }
.round {
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.svgwrap { display: inline-block; margin: 0 auto; }

/* ---------- imagedtext (tbl) ---------- */

.tbl {
  display: table;
  width: 100%;
  border-collapse: collapse;
}
.tbl.middle { vertical-align: middle; }
.tbl .td {
  display: table-cell;
  vertical-align: middle;
}
.tbl .td.icon .wrap { text-align: center; }

/* ---------- text widget ---------- */

.widget-text p { margin: 0; }
.widget-text h1, .widget-text h2 { margin: 0; padding: 0; font-weight: inherit; }

.textable { word-wrap: break-word; }

/* ---------- slider (swiper, статичный) ---------- */

.swiper-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.swiper-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.cont-wrapper { width: 100%; }
.bgimage {
  position: relative;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
}
.bgimage .inner { position: relative; }
.bgimage .inner img { display: block; visibility: hidden; }
.bgimage .proportions { width: 247.5px; padding-top: 550px; }

/* ---------- horizontal line ---------- */

.linebottom { width: 100%; height: 1px; background-color: rgb(214, 214, 214); }

/* ===================================================
   Своя модалка (без vendors.js Платформы)
   =================================================== */

.my-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.my-modal-overlay.active { display: flex; }

.my-modal {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 410px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-family: 'Fira Sans', sans-serif;
}
.my-modal h3 {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 300;
  font-size: 22px;
  color: #222;
}
.my-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
}
.my-modal-close:hover { color: #222; }

.my-modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0;
  font-size: 16px;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 300;
  margin-bottom: 12px;
  outline: none;
}
.my-modal-input:focus { border-color: rgb(63, 178, 233); }

.my-modal-submit {
  width: 100%;
  background-color: rgb(39, 188, 23);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}
.my-modal-submit:hover { background-color: rgb(35, 169, 21); }

@media (max-width: 767px) {
  .my-modal { padding: 24px 18px 18px; }
  .my-modal h3 { font-size: 20px; }
}
/* ===========================
   GALLERY SLIDER (mumkam-style) — добавлено 2026-05-27
=========================== */
.atop-gallery {
  background: #fff;
  padding: 64px 0;
}
.atop-gallery__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.atop-gallery__title {
  color: #1a1a1a;
  text-align: center;
  font-size: 32px;
  margin: 0 0 28px;
  font-weight: 700;
}
.atop-slider {
  position: relative;
  user-select: none;
  max-width: 300px;
  margin: 0 auto;
}
.atop-slider__track-wrap {
  overflow: hidden;
  border-radius: 12px;
}
.atop-slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.atop-slider__slide {
  flex: 0 0 100%;
  aspect-ratio: 9 / 16;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #eee;
}
.atop-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
  padding: 0;
}
.atop-slider__arrow:hover {
  background: #ff7a00;
  transform: translateY(-50%) scale(1.08);
}
.atop-slider__arrow--prev { left: -24px; }
.atop-slider__arrow--next { right: -24px; }
.atop-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.atop-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.atop-slider__dot.active {
  background: #ff7a00;
  transform: scale(1.3);
}
@media (max-width: 768px) {
  .atop-gallery { padding: 40px 0; }
  .atop-gallery__title { font-size: 24px; }
  .atop-slider { max-width: 240px; }
  .atop-slider__arrow--prev { left: -8px; }
  .atop-slider__arrow--next { right: -8px; }
  .atop-slider__arrow { width: 40px; height: 40px; font-size: 18px; }
}
/* ===========================
   VIDEO SECTION (mumkam-style) — добавлено 2026-05-27
=========================== */
.atop-video-section {
  background: #f5f5f5;
  padding: 64px 0;
}
.atop-video-section__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.atop-video-section__title {
  font-size: 32px;
  margin: 0 0 28px;
  font-weight: 700;
  color: #1a1a1a;
}
.atop-video-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 485px;
  margin: 28px auto 0;
}
.atop-video-section__item video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #000;
  box-shadow: 0 0 0 2px rgba(251,125,40,0.5), 0 4px 20px rgba(0,0,0,0.3);
}
.atop-video-wrap {
  position: relative;
  cursor: pointer;
}
.atop-video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: opacity 0.2s;
}
.atop-video-play-btn svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.atop-video-wrap:hover .atop-video-play-btn svg {
  transform: scale(1.1);
}
.atop-video-play-btn.hidden {
  display: none;
}
@media (max-width: 768px) {
  .atop-video-section { padding: 40px 0; }
  .atop-video-section__title { font-size: 24px; }
  .atop-video-section__grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .atop-video-play-btn svg { width: 56px; height: 56px; }
}
