:root {
    --color-text: #00323C;
    --color-primary: #005542;
    --color-primary-light: #ccebca;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-grey: #f0f0f0;
    --font-main: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d2e;
}

ul {
    list-style: none;
}

.block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.only-medium {
    display: block;
}

.only-small {
    display: none;
}

.lazyload,
.lazyloading {
	opacity: 0;
}
.lazyloaded {
	opacity: 1;
	transition: opacity 300ms;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.header.sticky {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header.sticky .header-top .logo a,
.header.sticky .header-top .contacts,
.header.sticky .header-top .contacts .phone,
.header.sticky .header-top .contacts .address {
    color: var(--color-text);
}

.header.sticky .header-bottom {
    border-top: 1px solid #eee;
}

.header.sticky .header-nav a {
    color: var(--color-text);
}

.header.sticky .header-nav a:hover {
    color: var(--color-text);
    background: rgba(0, 85, 66, 0.1);
}

.header.sticky .only-small .line {
    background: var(--color-text);
}

.header-top {
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.header-top .block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bottom {
    padding: 15px 0;
    transition: padding 0.3s ease;
}

.header.sticky .header-top {
    padding: 15px 0;
}
.header.sticky .header-bottom {
    padding: 10px 0;
}


.header-bottom .block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 0 10px;
}

.header .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.9);
    border-radius: 24px;
    padding: 0 40px;
    height: 120px;
    width: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.header.sticky .logo a {
    height: 55px;
    width: 100%;
    border-radius: 0 0 24px 24px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    padding: 0 40px;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .logo img {
    height: 120px;
    width: auto;
    transition: height 0.3s ease;
}

.header .options {
    display: flex;
    align-items: center;
}

.header .contacts {
    display: flex;
    gap: 25px;
    align-items: center;
    transition: color 0.3s ease;
    color: var(--color-white);
}

.header .contacts .address {
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 25px;
    transition: border-color 0.3s ease;
}

.header .contacts .phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.logo-text {
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--color-white);
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
}

.header.sticky .logo img {
    height: 60px;
}

.header.sticky .logo-text {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.3;
    width: 180px;
    white-space: normal;
}

.header.sticky .contacts .address {
    border-left-color: #eee;
}

.header-bottom .btn-default {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 120px;
}

.header-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.header-nav a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav a:hover::after {
    width: 80%;
}
.hero-section {
    position: relative;
    min-height: 500px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -50;
}

.hero-section .block {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section .subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-default {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.btn-default:hover {
    background-color: #004435;
    color: var(--color-white);
}

.btn-default .btn-name span {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    text-transform: none;
}

/* Пустое пространство после кнопки в hero секции */
.hero-section .btn-default {
    margin-bottom: 60px;
}

.section-2 {
    padding: 80px 0;
    background-color: var(--color-grey);
}

.section-2 .block {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.section-2 .item {
    max-width: 300px;
}

.section-2 .circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.section-2 .text {
    font-size: 18px;
}

.section-2 .text span {
    font-weight: 700;
    display: block;
}

.section-4 .block {
    display: flex;
    align-items: center;
    gap: 40px;
}

.section-4 .bg {
    flex: 1;
}

.section-4 .text {
    flex: 1;
    max-width: 500px;
}

.section-4 .bg {
    width: 100%;
    border-radius: 10px;
}

.section-4 .text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.section-3 {
    padding: 100px 0;
    background-color: var(--color-white);
}

.section-3 .block {
    display: flex;
    align-items: center;
    gap: 60px;
}

.section-3 .about-content {
    flex: 1;
    padding-right: 30px;
}

.section-3 .about-image {
    flex: 1;
    position: relative;
}

.section-3 .about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 85, 66, 0.15);
}

.section-4 {
    padding: 80px 0;
    position: relative;
    text-align: center;
    color: var(--color-white);
}

.section-4 .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.section-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.section-4 .block {
    flex-direction: column;
}

.section-4 .text {
    max-width: 800px;
}

.section-4 .h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.section-4 .logo {
    font-weight: 700;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
}

.section-title p {
    font-size: 18px;
    color: #6c757d;
    margin-top: 15px;
    margin-bottom: 30px;
}

.section-3 .text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-default-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-default-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-5 {
    padding: 80px 0;
    background-color: var(--color-grey);
}

.section-5 .sc-location {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-5 h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.section-5 .subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-5 .navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-5 .nav {
    display: flex;
    align-items: center;
    background: var(--color-white);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.section-5 .nav.active {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-5 .nav .img {
    width: 80px;
    height: 50px;
    margin-right: 15px;
}

.section-5 .nav .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.section-5 .nav .info .name {
    font-weight: 700;
}

.section-5 .nav .info .address {
    font-size: 14px;
    color: #777;
}

.section-5 .tabs .tab {
    display: none;
}

.section-5 .tabs .tab.active {
    display: block;
}

.special-offer-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.special-offer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.section-5 .gallery .item.special-offer-item {
    display: flex;
    gap: 40px;
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
}

.special-offer-item .image img:hover {
    transform: scale(1); /* Отменяем эффект приближения */
}

/* Добавляем тёмный фон для изображений в спецпредложениях */
.section-5 .gallery .image {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    background-color: rgba(0, 0, 0, 0.1); /* Тёмный еле видный фон */
}

.section-5 .gallery .image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

.section-5 .gallery .image .img {
    opacity: 0;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}
.section-5 .gallery .image .img.active {
    opacity: 1;
    position: relative;
    z-index: 2; /* Увеличиваем z-index чтобы изображение было поверх тёмного фона */
    pointer-events: auto;
    transform: none !important; /* Отключаем любые трансформации */
}

/* Дополнительно отключаем все эффекты увеличения для изображений в спецпредложениях */
.section-5 .gallery .image img:hover,
.section-5 .gallery .image .img:hover,
.section-5 .gallery .image .img.active:hover {
    transform: none !important;
    scale: 1 !important;
}

.section-5 .gallery .images {
    flex: 1.5;
}

.section-5 .gallery .content {
    flex: 1;
}

.section-5 .gallery .position {
    position: relative;
}

.section-5 .gallery .image img.bg {
    height: 100%;
    object-fit: cover;
}

.section-5 .gallery .image img {
    width: 100%;
    border-radius: 10px;
    transform: none !important; /* Полностью отключаем любые трансформации */
    transition: none !important; /* Отключаем переходы */
}

.section-5 .gallery .arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.section-5 .gallery .arrows a {
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text);
}

.section-5 .gallery .pagination {
    text-align: center;
    margin-top: 15px;
}

.section-5 .gallery .pagination span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.section-5 .gallery .pagination span.active {
    background: var(--color-primary);
}

.section-5 .content .name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-5 .content .address {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.section-5 .content .text {
    margin-bottom: 20px;
}

.section-5 .content ul {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.section-5 .content ul li span:first-child {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.section-5 .content ul li span:last-child {
    font-size: 14px;
    color: #777;
}

.section-quiz {
    padding: 80px 0;
    position: relative;
}

.section-quiz .overflow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.section-quiz .bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-quiz .order-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 40px;
    justify-content: center;
}

.section-quiz .function, .section-quiz .form {
    display: none;
}

.section-quiz .function.active, .section-quiz .form.active {
    display: block;
}

.section-quiz .quiz {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
}
.section-quiz .option {
    max-width: 600px;
    width: 100%;
}

.section-quiz .consultation {
    flex: 1;
    max-width: 350px;
}

.section-quiz .h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-quiz .subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.section-quiz .progress {
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.section-quiz .progress .width {
    height: 100%;
    background: var(--color-primary);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.section-quiz .total {
    text-align: right;
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.section-quiz .step {
    display: none;
}

.section-quiz .step.active {
    display: block;
}

.section-quiz .question {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.section-quiz .answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.section-quiz .answer {
    display: block;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-quiz .answer:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.section-quiz .answer input {
    display: none;
}

.section-quiz .answer input:checked + .name::before {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.section-quiz .answer .name {
    position: relative;
    padding-left: 30px;
}

.section-quiz .answer .name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.section-quiz .navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.section-quiz .navigation .prev {
    color: #777;
}

.section-quiz .navigation .prev.disabled,
.section-quiz .navigation .next.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.section-quiz .consultation .autor {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-quiz .consultation .autor .img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.section-quiz .consultation .autor .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-quiz .consultation .autor .name {
    font-weight: 700;
}

.section-quiz .consultation .autor .post {
    font-size: 14px;
    color: #777;
}

.section-quiz .consultation .messages .message {
    display: none;
    background: var(--color-grey);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.section-quiz .consultation .messages .message.active {
    display: block;
}

.section-quiz .form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.footer {
    padding: 60px 0;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 0;
}

.section-gmap {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.gmap-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: stretch;
}

.gmap-info {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.gmap-info .section-title h2::after {
    display: none;
}

.gmap-info .section-title p {
    margin-bottom: 40px;
}

.contact-form-wrapper {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: auto;
}

.contact-form-wrapper h4 {
    font-size: 22px;
    margin-bottom: 5px;
}
.contact-form-wrapper p {
    margin-bottom: 20px;
    color: #777;
}

.gmap-container {
    height: 650px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 85, 66, 0.15);
}

.gmap-container #gmap {
    width: 100%;
    height: 100%;
}

.footer a, .footer .phone {
    color: var(--color-white);
}

.footer-cta {
    background-color: var(--color-primary);
    padding: 60px 0;
    text-align: center;
}
.footer-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}
.footer-cta p {
    max-width: 500px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.footer-cta .btn-default {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.footer-main {
    background-color: var(--color-text);
    padding: 60px 0;
}
.footer-main .block {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
.footer-col-logo .logo a {
    font-size: 28px;
    font-weight: 700;
}
.footer-col-logo .logo-text {
    font-size: 14px;
    opacity: 0.7;
    max-width: 250px;
    margin-top: 10px;
}
.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col-contacts a, .footer-col-contacts .address {
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #002229;
    padding: 20px 0;
    font-size: 14px;
}
.footer-bottom .block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.fade {
    /* This class is now just a marker for the initial/closed state. */
}

.modal:not(.fade) {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal-dialog {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    max-width: 500px;
    width: 90%;
    transition: transform 0.3s ease;
    transform: scale(0.9);
}

.modal:not(.fade) .modal-dialog {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--color-text);
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #777;
}

.modal-welcome-dialog {
    max-width: 600px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    padding: 60px 40px;
}

.modal-welcome-dialog .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.4);
}

.modal-welcome-dialog .modal-close {
    color: var(--color-white);
}
.modal-welcome-dialog .modal-close::before,
.modal-welcome-dialog .modal-close::after {
    background: var(--color-white);
}

.modal-welcome-dialog .modal-title {
    font-size: 32px;
    color: var(--color-white);
}

.modal-welcome-dialog .modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.modal-welcome-dialog .modal-subtitle span {
    display: block;
    margin-top: 10px;
}

.modal-welcome-dialog .order-form {
    max-width: 400px;
    margin: 0 auto;
}

.modal-welcome-dialog .label {
    color: var(--color-white);
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-welcome-dialog .close-link {
    display: inline-block;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 14px;
}

.modal-welcome-dialog .close-link:hover {
    color: var(--color-white);
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.floating-btn.fade {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.floating-btn a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--color-white);
    font-weight: 700;
    gap: 10px;
}

.floating-btn a:hover {
    color: var(--color-white);
}

@media (max-width: 992px) {
    .section-5 .gallery .item {
        flex-direction: column;
    }
    .section-5 .gallery .image {
        height: 350px;
    }
    .section-quiz .quiz {
        flex-direction: column;
    }
    .section-quiz .consultation {
        max-width: 100%;
        margin-top: 30px;
    }
    .footer-main .block {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom .block {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .only-medium {
        display: none;
    }
    .only-small {
        display: block;
    }

    .section-first {
        min-height: 550px;
    }

    .header .menu .lines {
        width: 30px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }
    .header .menu .line {
        width: 100%;
        height: 3px;
        background: var(--color-white);
        border-radius: 3px;
    }

    .hero-section h1 {
        font-size: 28px;
        line-height: 1.1;
        word-wrap: break-word;
        hyphens: auto;
    }
    .hero-section .subtitle {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    /* Уменьшаем размеры заголовков во всех секциях */
    .section-title h2 {
        font-size: 24px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-5 h2 {
        font-size: 24px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-4 .h2 {
        font-size: 20px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-title p {
        font-size: 16px;
    }

    .section-4 .h2 {
        font-size: 24px;
    }

    .section-2 .block {
        flex-direction: column;
        gap: 40px;
    }

    .section-quiz .order-form {
        flex-direction: column;
    }

    .section-quiz .answers {
        grid-template-columns: 1fr;
    }

    .section-gmap .flex {
        flex-direction: column;
    }

    .section-3 .block {
        flex-direction: column;
        gap: 40px;
    }
    .gmap-grid {
        grid-template-columns: 1fr;
    }
    .gmap-container {
        height: 400px;
        order: -1;
    }

    .section-5 .gallery .image {
        height: 250px;
    }

    .floating-btn a {
        padding: 12px;
        border-radius: 50%;
    }

    .floating-btn .text {
        display: none;
    }

    #modal-menu .modal-dialog {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #modal-menu .modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #modal-menu .menu.first a {
        display: block;
        padding: 15px 0;
        font-size: 20px;
        border-bottom: 1px solid #eee;
    }

    #modal-menu .bottom {
        margin-top: 40px;
    }

    .header .logo a {
        padding: 0;
        height: 70px;
    }
    .logo-green, .logo-white {
        height: 60px;
    }
    .header-top {
        padding: 10px 0;
    }
    .header-bottom {
        padding: 8px 0;
        padding: 0; /* Убираем отступы, чтобы блок не занимал места, когда пустой */
    }
    .header .contacts {
        gap: 10px;
        font-size: 14px;
    }
    .header .contacts .address {
        text-align: right;
        border-left: none;
        border-right: 1px solid rgba(255,255,255,0.5);
        padding-left: 0;
        padding-right: 10px;
        margin-left: 0;
        margin-right: 0;
        float: right;
        display: block;
    }
    .header .contacts .phone {
        font-size: 16px;
    }
    .header .logo {
        justify-content: flex-start;
    }
    .header .menu {
        margin-left: auto;
    }
    .header-nav .close-menu {
        display: none;
    }
    .header-nav.active .close-menu {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
        color: var(--color-text);
        font-size: 40px;
        line-height: 1;
        font-weight: 300;
        text-decoration: none;
        padding: 0 10px;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 5px;
        background: #fff;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1001;
        padding: 80px 20px 20px 20px;
        display: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.10);
        border-radius: 0 0 16px 16px;
    }
    .header-nav.active ul {
        display: flex;
    }
    .header-nav a {
        display: block;
        color: #00323C;
        font-size: 18px;
        padding: 15px 20px;
        background-color: #f5f7f6;
        text-align: left;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .header-nav a:hover {
        background: rgba(0, 85, 66, 0.1);
        color: var(--color-primary);
    }
    .header-bottom {
        border-top: none;
    }
    .header .menu.open-modal {
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    
    /* Исправляем мобильное меню - убираем связь с модальным окном */
    .header .menu[data-modal="menu"] {
        cursor: pointer;
    }
    
    /* Скрываем кнопку "Задать вопрос" в мобильной версии */
    .header-bottom .btn-default {
        display: none;
    }
    .header .menu .lines {
        width: 32px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .header .menu .line {
        width: 100%;
        height: 4px;
        background: #ffffff; /* Белый цвет по умолчанию */
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }
    
    /* Зелёный цвет при sticky header */
    .header.sticky .header .menu .line {
        background: var(--color-primary);
    }
    .header .contacts .phone {
        display: none !important;
    }
    .section-2 .block {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .section-2 .item {
        margin: 0 auto;
    }
    .section-5 .sc-location {
        text-align: center;
        margin: 0 auto 16px auto;
        display: block;
    }
}

.logo-bg {
    background: rgba(255,255,255,0.85);
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 8px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s, background 0.4s;
    opacity: 1;
    pointer-events: auto;
}
.header.sticky .logo-bg {
    opacity: 0;
    pointer-events: none;
}

.logo-green {
    display: block;
    height: 120px;
    width: auto;
    transition: opacity 0.3s;
}
.logo-white {
    display: none;
    height: 120px;
    width: auto;
    transition: opacity 0.3s;
}
.header.sticky .logo-green {
    display: none;
}
.header.sticky .logo-white {
    display: block;
}
.logo-bg {
    display: none !important;
}

.header .logo a, .logo-bg {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.logo-white {
    display: block;
    height: 120px;
    width: auto;
    transition: opacity 0.3s;
}
.logo-green {
    display: none;
    height: 120px;
    width: auto;
    transition: opacity 0.3s;
}
.header.sticky .logo-white {
    display: none;
}
.header.sticky .logo-green {
    display: block;
}

.footer-bottom {
    text-align: center;
}
.footer-bottom .block {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}
.footer-bottom .developer {
    font-size: 14px;
    color: #aaa;
    margin-top: 4px;
}

.hero-section .hero-divider {
    width: 100%;
    max-width: 400px;
    height: 2px;
    background: linear-gradient(90deg, #ccebca 0%, #005542 100%);
    margin: 100px auto 32px auto;
    border-radius: 2px;
    opacity: 0.7;
    z-index: 1;
    position: relative;
}

@media (max-width: 767px) {

    .header .contacts .address {
        display: none !important;
    }
}

/* Дополнительное исправление для видео на мобильных устройствах */
@media (max-width: 767px) {
    .hero-section {
        /* Устанавливаем высоту, равную 85% высоты видимой области экрана.
           Это создает стабильный контейнер для видео и предотвращает появление
           черных полос из-за непредсказуемой высоты контента. */
        height: 85vh;
    }
}

/* Стили для страницы спецпредложения */
.section-special-offer {
    padding: 80px 0;
    background: #f8f9fa;
}

.special-offer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.offer-text {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.offer-text h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 32px;
}

.offer-text h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 24px;
}

.offer-text p {
    margin-bottom: 15px;
}

.offer-text ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.offer-text li {
    margin-bottom: 10px;
}

.offer-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.offer-actions .btn-default,
.offer-actions .btn-default-outline {
    min-width: 200px;
}

/* Стили для блока о компании */
.section-company {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.company-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.company-logos {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-item {
    max-width: 250px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.logo-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80px;
}

.company-text {
    flex: 1;
}

.company-text h2 {
    font-size: 32px;
    color: #005542;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: left;
}

.text-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.text-content p {
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .section-company {
        padding: 40px 0;
    }
    
    .company-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .company-logos {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .logo-item {
        max-width: 200px;
        padding: 20px;
    }
    
    .company-text h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .text-content {
        font-size: 16px;
        text-align: center;
    }
}

/* Новые стили для страницы спецпредложения */
.section-project-details {
    padding: 80px 0;
    background: #fff;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spec-icon {
    flex-shrink: 0;
}

.spec-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.spec-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.spec-desc {
    color: #666;
    font-size: 14px;
}

.section-location {
    padding: 80px 0;
    background: #f8f9fa;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-text h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 32px;
}

.location-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.advantage-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.advantage-text h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

.advantage-text p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.location-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.section-investment {
    padding: 80px 0;
    background: #fff;
}

.investment-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.investment-item {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.investment-item:hover {
    transform: translateY(-5px);
}

.investment-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.investment-item h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.investment-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.investment-item p {
    color: #666;
    font-size: 16px;
}

.section-communications {
    padding: 80px 0;
    background: #f8f9fa;
}

.communications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.comm-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.comm-item:hover {
    transform: translateY(-5px);
}

.comm-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.comm-item h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.comm-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.comm-desc {
    color: #666;
    font-size: 14px;
}

.section-gallery {
    padding: 80px 0;
    background: #fff;
}

.construction-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
}

.section-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #004435 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-default {
    background: white;
    color: var(--color-primary);
    border: 2px solid white;
}

.cta-buttons .btn-default:hover {
    background: transparent;
    color: white;
}

.cta-buttons .btn-default-outline {
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-default-outline:hover {
    background: white;
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .section-special-offer {
        padding: 40px 0;
    }
    
    .offer-text {
        font-size: 16px;
    }
    
    .offer-text h2 {
        font-size: 24px;
    }
    
    .offer-text h3 {
        font-size: 20px;
    }
    
    .offer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .offer-actions .btn-default,
    .offer-actions .btn-default-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-specs,
    .investment-items,
    .communications-grid {
        grid-template-columns: 1fr;
    }
    
    .construction-gallery {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-default,
    .cta-buttons .btn-default-outline {
        width: 100%;
        max-width: 300px;
    }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    padding: 15px;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    border-radius: 8px;
}

.lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

/* Отключаем эффект увеличения для изображений в спецпредложениях и модальном окне, 
   который задан глобально в page-transitions.css */
.section-5 .gallery .image img:hover,
.modal-welcome-dialog .bg:hover {
    transform: none;
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
        line-height: 1.1;
        padding: 0 10px;
    }
    
    .hero-section .subtitle {
        font-size: 18px;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .hero-section p {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .hero-section .btn-default {
        margin-bottom: 40px;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-5 h2 {
        font-size: 24px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-4 .h2 {
        font-size: 20px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
}
