/* Базовый сброс и настройка */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
	--sizeindex: calc(1vw + 1vh);
}
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    /*font-size: calc(var(--sizeindex) * .7)*/
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1); 
}
.carda {
  background: #ffffff;
  width: 1024px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: 0px solid #e2be99;
}
.carda h2 {
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
    margin-bottom: 20px;
}

.avatara {
  width: 180px;
  height: 180px;
  border-radius: 10%;
  margin: 0 auto 5px;
  border: 0px solid #4a90e2;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
}
.description {
  text-align: left;
  font-size: 0.6em;
  color: #333333;
  margin-bottom: 30px;
}
.phone {
  color: #333333;
  float: right;
  font-size: calc(var(--sizeindex) * .5);
}
/* Контейнер для центрирования */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.containers {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    background:  linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* Шапка сайта (Flexbox) */
header {
    height: 80px;
    background: #ffffff;
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    font-size: calc(var(--sizeindex) * .7)
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: calc(var(--sizeindex) * .6)
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: goldenrod;
}

/* Первый блок (Hero Section) */
.hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 150px 0;
    text-align: center;
    /*font-size: calc(var(--sizeindex) * .8)*/


}
.hero1 {
    background: #fff;
    padding: 120px 0;
    text-align: center;
    /*font-size: calc(var(--sizeindex) * .8)*/
}
.hero2 {
    width: 100%;
    height: 100%;
    background-image: url('1n.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    color: #ffffff;
    text-align: center;
    font-size: calc(var(--sizeindex) * .7);
}
.hero h1 {
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    font-size: calc(var(--sizeindex) * 1.5);
    margin-bottom: 20px;

}
.hero1 h1 {
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    font-size: calc(var(--sizeindex) * 1.5);
    margin-bottom: 20px;
}
.hero p {
    font-size: calc(var(--sizeindex) * 0.7);
    color: #627d98;
    margin-bottom: 40px;
}
.hero1 p {
    font-size: calc(var(--sizeindex) * 0.7);
    color: #627d98;
    margin-bottom: 40px;
}
.hero2 h1 {
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    font-size: calc(var(--sizeindex) * 2.5);
    margin-bottom: 20px;
}
.hero2 p {
    font-size: calc(var(--sizeindex) * 1.1);
    color: #ffffff;
    margin-bottom: 40px;
}
.btn {
    display: inline-block;
    background:  goldenrod;
    color: #fff;
    margin: 10px;
    padding: 12px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
    text-decoration: none;
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: calc(var(--sizeindex) * .7);
    transition: background 0.3s ease;
}

.btn:hover {
    background: gold;
}


.fixed-footer {
  position: fixed;           /* Фиксируем подвал */
  bottom: 0;                 /* Прижимаем к нижнему краю */
  left: 0;
  width: 100%;               /* На всю ширину экрана */
  background-color: #f0f0f0;
  padding: 10px 20px;
  text-align: center;
  font-size: calc(var(--sizeindex) * .6);
}

.hidden-text {
  opacity: 0;
  transform: translateY(50px); /* Сдвиг вниз на 50px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-text.visible {
  opacity: 1;
  transform: translateY(0); /* Возврат в исходную позицию */
}
.hidden-h1 {
  opacity: 0;
  transform: translateY(50px); /* Сдвиг вниз на 50px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-h1.visible {
  opacity: 1;
  transform: translateY(0); /* Возврат в исходную позицию */
}

/* Начальное состояние: скрыт и сдвинут вниз */
.fade-up-item {
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Конечное состояние: появляется на своем месте */
.fade-up-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержка появления для каждого абзаца (эффект лесенки) */
.fade-up-item:nth-child(1) { transition-delay: 0.3s; }
.fade-up-item:nth-child(2) { transition-delay: 0.6s; }
.fade-up-item:nth-child(3) { transition-delay: 0.9s; }


::-webkit-input-placeholder {font-size: calc(var(--sizeindex) *.7);}
::-moz-placeholder {font-size: calc(var(--sizeindex) *.7);}         
:-moz-placeholder {font-size: calc(var(--sizeindex) *.7);}
:-ms-input-placeholder {font-size: calc(var(--sizeindex) *.7);}
:focus::-webkit-input-placeholder {opacity: 0;}    
:focus::-moz-placeholder {opacity: 0;}    
:focus:-moz-placeholder {opacity: 0;}    
:focus:-ms-input-placeholder {opacity: 0;}    
.form-at {
    width: 100%;
    padding: 20px;
    box-sizing: border-box; 
    overflow: hidden;
    font-size: 0;  
    letter-spacing: 0;    
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
    border-radius: 15px;
}
.form-at * {
    box-sizing: border-box;
}
.validate-input-at,
.no-validate-input-at {
    width: 100%;
    position: relative;
    background-color: #fff;
    border: 0px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
    border-radius: 15px;
}
.validate-input-at.w50,
.no-validate-input-at.w50 {
    width: calc(50% - 10px);
    display: inline-block;
}

.validate-input-at.w50:first-child,
.no-validate-input-at.w50:first-child {
    margin-right: 20px;
}
.input-at {
    display: block;
    width: 100%;
    background: transparent;
    color: #000;
}
.labeltext {
  position: relative;
  text-align: left;
}
input.input-at {
    height: 50px;
    padding: 0 20px 0 20px;
    font-size: calc(var(--sizeindex) *.7);
    /*font-size: 16px;*/
    outline: none;
    border: none;  
}
textarea.input-at {
    min-height: 170px;
    padding: 18px 20px;
    font-size: calc(var(--sizeindex) *.7);
    /*font-size: 16px;*/
    line-height: 22px;
    outline: none;
    border: none;
    resize: none;
}
textarea.input-at:focus, 
input.input-at:focus {
    border-color: transparent;
}
.focus-input-at {
    position: absolute;
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: -1px;
    left: -1px;
    pointer-events: none;
    border: 2px solid goldenrod;
    border-radius: 2px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
    transform: scaleX(1.1) scaleY(1.3);
    border-radius: 15px;
}
.input-at:focus + .focus-input-at {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}
.form-at-btn {
    position: relative;
    display: block;
    padding: 0 40px;
    height: 50px;
    background-color: goldenrod;
    font-size: calc(var(--sizeindex) *.7);
    font-weight: bold;
    color: #fff;
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
    text-transform: none;
    line-height: 1.2;
    transition: all 0.4s;
    margin: 0 auto;
    outline: none;
    border: none;
    cursor: pointer;    
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
}
.form-at-btn:hover {
    background-color: gold;
}
.form-at-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}
.alert-validate::before {
    content: attr(data-validate);
    position: absolute;
    max-width: 70%;
    background-color: #fff;
    border: 1px solid #c80000;
    border-radius: 2px;
    padding: 4px 25px 4px 10px;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    pointer-events: none;
    color: #c80000;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s;
}
.alert-validate::after {
    content: "\2718";
    font-family: "FontAwesome";
    display: block;
    position: absolute;
    color: #c80000;
    font-size: 18px;
    font-weight: bold;    
    top: 50%;
    transform: translateY(-50%);
    right: 22px;
}
.alert-validate:hover:before {
    visibility: visible;
    opacity: 1;
}
.error-at {
    color: red;
    padding: 10px 0;
}
.success-at {
    color: green;
    font-size: 28px;
    padding: 20px 0;
    text-align: center;
}
.form-at input[type=checkbox] {
    display:none;
}
.form-at input[type=checkbox] + label {
    display: block;
    position: relative;
    margin: 0 0 20px 34px;
    /*font-size: 13px;*/
    font-size: calc(var(--sizeindex) *.55);
    line-height: 24px;
    color: #333333;
}
.form-at input[type=checkbox] + label:before {
    box-sizing: border-box;
    position: absolute;
    content: '';
    width: 26px;
    height: 26px;
    line-height: 22px;
    left: -34px;
    border: 2px solid #BFE2FF;
    border-radius: 2px;
}
.form-at input[type=checkbox]:checked + label:before{
    content: '\2714';
    color:goldenrod;
    /*font-size: 14px;*/
    font-size: calc(var(--sizeindex) *.55);    
    text-align: center;
    font-weight: bold;
    border: 2px solid goldenrod;
}

.containerm {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
iframe {
    width: 47%;
    padding: 0;
    overflow: hidden;
    position: absolute;
    right: 1%;
    font-size: 0;  
    letter-spacing: 0;    
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
    
}
.textc {
  text-align: left;
}
.textc h3{
  text-align: left;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
  font-size: calc(var(--sizeindex) * .7);
}
.wind {
    display: inline-block;
    width: 28%;
    height: 19vh;
    padding: 20px;
    margin: 20px;
    box-sizing: border-box; 
    overflow: hidden;   
    text-align: left;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
    border-radius: 15px;
}
.wind h3{
  text-align: left;
  font-size: calc(var(--sizeindex) * .7);
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}
.wind p{
  font-size: calc(var(--sizeindex) * .7);
  text-align: left;
    color: #627d98;
    margin-bottom: 20px;
}
.winp {
    display: inline-block;
    width: 20%;
    height: 30%;
    padding: 10px;
    margin: 1%;
    box-sizing: border-box;
    overflow: hidden;   
    text-align: left;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1);
    border-radius: 10px;
}
.winp h3{
  text-align: left;
  font-size: calc(var(--sizeindex) * .7);
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.3);
}
.winp p{
  text-align: left;
  font-size: calc(var(--sizeindex) * .7);
  color: #627d98;
  margin-bottom: 20px;
}
.img {
    width: 160px;
    height: 180px;
    border-radius: 8px;
    object-fit: scale-down;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 18px rgba(0,0,0,0.1); 
}
/* Адаптивность для мобильных */
@media (max-width: 768px) {
    header {
    height: 40px;
    }
    nav {
    height: 40px;
    }
    .nav-links {
    /*    display: none; /* Для полноценного сайта нужно добавить JS меню-бургер */
    }
    .logo {
        width: 32px;
        height: 32px;
    }
    .img {
        width: 94px;
        height: 94px;
    }
    .validate-input-at.w50 {
        width: 100%;
    }
    .validate-input-at.w50:first-child {
        margin-right: 0;
    }
    .alert-validate::before {
        visibility: visible;
        opacity: 1;
    }
    .btn {
        margin: 5px;
        padding:10px;
        border-radius: 10px;
    }
    .form-at-btn {
    padding: 0 10px;
    height: 30px;    
    border-radius: 10px;
    }
    .form-at input[type=checkbox] + label:before {
     width: 15px;
     height: 15px;
    position: static;
    margin: 2px;
    padding: 2px;
    }
    iframe {
    height: 140%;
    }
}
