* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  background: #dddddd;
  color: #555;
  font-size: 16px;
}

a, a:hover {
  text-decoration: none;
}

:root {
  --play-color: #; /* меняй цвет */
}

/* нормальный контейнер */
.container{
  width: min(1300px, calc(100% - 40px));
  margin-inline: auto;
  background-color: #fff;
}

/* header */
.header {
  color: #777;
  padding: 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo { width: 200px; flex: 0 0 auto; }
.logo img { display: block; width: 100%; height: auto; }

.sub-name { font-size: 22px; }
.site-name {
  font-size: 28px;
  color: #391c07;
  font-weight: bold;
}

/* СЕКЦИЯ ГЛАВНАЯ*/

/* две колонки */
.two-sections{
  display: flex;
  align-items: stretch;
  /* padding: 24px 0; */
}

.col{
  flex: 1;
  aspect-ratio: 1;   /* квадрат */
  overflow: hidden;
}

.content {
  padding: 0 40px;
  overflow: auto;    /* текст скроллится внутри квадрата */
  height: 100%;
}

.col img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* картинка красиво вписывается */
}

.main-text{
  display: flex;
  justify-content: center;
  color: #777;
  align-items: start;
  flex: 1 1 0;
  flex-direction: column;
}
.selected {
  color: #6f0d04;
}

.main-text p{
  font-size: clamp(18px, 2.4vw, 25px);
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  padding-left: clamp(16px, 4vw, 60px);
}

.main-text p.addr {
  text-transform: capitalize;
  margin-top: 10px;
  font-weight: normal;
}

.main-image,
.player{
  flex: 1 1 0;
}

/* изображения */
.main-image img,
.video-video img{
  display: block;
  width: 100%;
  height: auto;
}

/* СЕКЦИЯ С ВИДЕО*/
.video-section {
  background-color: #fcf8f4;
}

/* видео-блок: безопасный aspect-ratio */
.player{
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image: url("images//tv.png");
  background-size: 50%;
  background-position: 55% 40%;
  background-repeat: no-repeat;
}

.watchButton {
  width: 60%;
  background: none;
  border: none;
}

.watchButton img {
  display: block;
  width: 100%;
}

/* Стили модального окна */
#videoModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1000;
}

#videoModal.show {
  opacity: 1;
  visibility: visible;
}

#videoModal video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

#showVideoBtn {
  cursor: pointer;
}

.text-block {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
  flex-direction: column;
  padding: 0 20px;
}

.text-block span{
  font-size: clamp(18px, 2.4vw, 25px);
  text-align: center;
}

.text-block .small-text {
  font-size: clamp(16px, 2.4vw, 20px);
}

a.form-link {
  color: #196dc6;
  text-transform: uppercase;
  transition: all ease-in-out .3s;
  margin: 20px 0;
}

a.form-link:hover {
  color: #083667;
}

.image {
  width: 90%;
}

.image img {
  display: block;
  width: 100%;
}

/* СЕКЦИЯ УНИВЕРСАЛЬНАЯ*/
.uni-section {
  background-color: #fcf8f4;
}

.image-block {
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* СЕКЦИЯ МОДУЛИ*/
.header-text, .year {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
  color: #fff;
}

.year {
  background-color: #1c1c1c;
}

.header-text {
  background-color: #142a6b;
  font-size: 20px;
}

/* =========================================================
   МОДУЛИ — FLEX (3 в ряд, 1 в колонку) — остальное не меняем
   ========================================================= */

.modules{
  display: flex;
  align-items: stretch;
  gap: 10px
}
.modules.first {
  margin-top: 10px;
}
.modules.second {
  margin: 10px 0;
}

.module-item{
  flex: 1;  
  min-width: 0;
  height: 600px;
  background-color: #391b06;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-text {
  color: #fff;
  font-size: 20px;
  padding: 20px;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 10px;
}
.module-text .title {
  font-size: 30px;
}

.module-image{
  width: 100%;
}

.module-image img{
  width: 100%;
  display: block;
}

.call {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  background-color: #fff;
}
.call p {
  text-align: center;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background-color: #27262682;
  color: #5e5d5d;
}


@media (max-width: 900px){
  .header-content{
    flex-wrap: wrap;
    justify-content: center;
    text-align:center;
  }
  .logo{ width: 180px; }
  .sub-name{ font-size: 18px; }
  .site-name{ font-size: 24px; }
}


@media (max-width: 720px){

  .col {
    aspect-ratio: auto;   
    overflow: visible;    
  }

  .main-image img {
    height: auto;         
    width: 100%;
    object-fit: contain;  
  }
  .two-sections{
    flex-direction: column;
  }

  .main-text {
    align-items: center;
    padding: 20px;
  }
  .main-text p{
    text-align: center;
    padding: 0 0;
  }

  .video-section .two-sections {
    flex-direction: column-reverse;

  }
  .player {
    aspect-ratio: 12 / 9;   /* нормальный формат видео */
    min-height: auto;
  }
  .video-video{
    aspect-ratio: 16 / 9;
  }
  .image-block, .text-block {
    aspect-ratio: 12 / 9;
  }

  /* модули: 1 в колонку */
  .modules{
    flex-direction: column;
  }

  .module-item{
    height: clamp(280px, 70vw, 500px);
  }
}

.play-wrap {
  width: 200px;
  aspect-ratio: 1 / 1;
  display: inline-block;
}

.rotator {
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
  transform-origin: 50% 50%;
}

.play-wrap:hover .rotator {
  transform: rotate(120deg);
}

.play-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}