body, html {
    margin: 0;
    font-family: "Tinos", serif;
    font-weight: 400;
    font-style: normal;
    background: #13101a;
    color: white;
}

/* Header */

header {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
    color: red;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.phone a {
    position: relative;
    display: inline-block;
    font-style: normal;
    font-size: 18px;
    color: white;
    text-decoration: none;
}

.phone a:hover {
    color: red;
}

.phone a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: red;
    transition: width 0.3s ease;
}

.phone a:hover::after {
    width: 100%;
}


.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

.menu-btn:hover {
    transform: scale(1.15);
}

nav.nav {
    overflow: hidden;
    max-height: 0;
    transition: 0.7s ease;
    position: absolute;
    top: 50px;
    right: 0;
    background: #000;
    width: 100px;
    text-align: center;
}

nav.nav.active {
    max-height: 300px;
}

nav.nav ul {
    padding: 10px 0;
}

nav.nav li {
    padding: 10px;
}

nav.nav a {
    color: white;
    text-decoration: none;
}

nav.nav a:hover {
    color: red;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .menu-btn

    nav.nav {
      position: static;
    }

    nav.nav ul {
      padding: 10px;
    }

    nav.nav li {
      padding: 5px;
    }
}

/* first block */

.first {
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.overlay {
    background: rgb(0, 0, 0, 0.5);
    width: 100%;
}

.overlay h1 {
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: 1.4px;
    font-weight: 600;
}

.arrows {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 20px;
}

.arrow {
    color: red;
    font-size: 32px;
    animation: blink 1s infinite;
}

.arrow:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* second block */

.second {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 10px 50px;
}

.leftblock {
    display: flex;
    align-items: center;
}

.second h2 {
    width: 150px;
    font-size: 36px;
}

.second p {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
}

.map-button {
    background-color: red;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
  
.map-button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Three Block */

.threeblock {
    background-image: url(images/secondphoto.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.shoulder {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* полупрозрачный фон */
    padding: 30px 25px 40px;
    border-radius: 20px;
    backdrop-filter: blur(4px); /* эффект стекла */
    text-align: center;
}

.shoulder h3 {
    font-size: 32px;
    color: red;
    margin: 0;
    letter-spacing: 7px;
}

.shoulder p {
    margin: 0;
    font-size: 20px;
}

.shoulder ul {
    text-align: left;
    letter-spacing: 2px;
}

.underline {
    width: 350px;
    height: 3px;
    background-color: white;
    margin: 8px auto;
    border-radius: 2px;
}

.open-signup-btn {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.open-signup-btn:hover {
    background-color: #d32f2f;
    cursor: pointer;
}

.signup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}
  
.signup-modal-content {
    background: #1a131e;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    color: white;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
}
  
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
  
.close-signup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
  
.signup-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}
  
.signup-modal-content input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}
  
.signup-modal-content button[type="submit"] {
    padding: 10px;
    background: red;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
  
.signup-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
  
.signup-icons .icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
  
.signup-icons a:hover .icon {
    transform: scale(1.2);
    filter: invert(36%) sepia(90%) saturate(7471%) hue-rotate(348deg) brightness(104%) contrast(105%);
}

/* Four Block */

.fourblock {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.pricing-title {
    background: url(icon/points.png) center/cover no-repeat;
    width: 290px;
    height: 100px;
    font-size: 30px;
    color: #ff3c3c;
    letter-spacing: 3px;
    text-align: center;
    margin: 0;
    margin-bottom: 100px;
    padding-top: 50px;
}

.price-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 250px;
    height: 250px;
    background: url('images/texture.jpg') center/cover no-repeat;
    border: 2px solid white;
    border-radius: 16px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.card:hover {
    transform: rotate(45deg) scale(1.05); /* увеличение */
    border-color: #e53935; /* красная обводка */
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.6); /* красная тень */
}
  
.card-content {
    transform: rotate(-45deg);
    text-align: center;
    padding: 10px;
}
  
.card h3 {
    font-size: 56px;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
}
  
.card p {
    font-size: 18px;
    margin: 8px 0;
    line-height: 1.3;
    width: 180px;
}
  
.card span {
    display: block;
    margin-top: 25px;
    font-weight: bold;
    font-size: 18px;
    color: #eee;
}

/* Five Block */

.fiveblock {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: relative;
    z-index: 1;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    letter-spacing: 5px;
}
  
.video-overlay h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Six Block */

.sixblock {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.gallery-title {
    background: url(icon/points.png) center/cover no-repeat;
    width: 300px;
    height: 100px;
    font-size: 30px;
    color: #ff3c3c;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    margin-bottom: 100px;
    padding-top: 50px;
}

.gallery-cards {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery {
    width: 250px;
    height: 250px;
    border: 2px solid white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.gallery-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery:hover {
    transform: scale(1.05); /* увеличение */
    border-color: #e53935; /* красная обводка */
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.6); /* красная тень */
}

/* Модальное окно */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
  
.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
  
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */

.footer {
    background-color: #000;
    color: white;
    padding: 0;
    width: 100%;
    height: 100vh;
}
  
.footer-map {
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}
  
.footer-icons {
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
}
  
.footer-icons .icon {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* белые иконки */
}
  
.footer-icons a:hover .icon {
    transform: scale(1.2);
    filter: invert(36%) sepia(90%) saturate(7471%) hue-rotate(348deg) brightness(104%) contrast(105%);
}


/* Адаптивность */

@media (max-width: 768px) {
    .second {
        flex-wrap: wrap;
        padding: 10px 30px;
        justify-content: center;
    }

    .second p {
        margin: 1vh;
    }

    .leftblock {
        justify-content: center;
    }

    .shoulder {
        max-width: 300px;
    }

    .underline {
        max-width: 300px;
    }

    .signup-modal-content {
        max-width: 200px;
    }

    .price-cards {
        gap: 20px;
    }

    .card {
        max-width: 150px;
        max-height: 150px;
    }

    .card h3 {
        font-size: 32px;
    }

    .card p {
        font-size: 16px;
    }

    .card span {
        display: contents;
        font-size: 12px;
    }

    .gallery-cards {
        gap: 20px;
    }

    .gallery {
        max-width: 150px;
        max-height: 150px;
    }

    .gallery-img {
        max-width: 150px;
        max-height: 150px;
    }

    .modal-content {
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .second {
        padding: 10px 20px;
    }

    .second h2 {
        font-size: 30px;
    }

    .second p {
        font-size: 24px;
    }

    .map-button {
        padding: 15px 20px;
        font-size: 20px;
    }

    .price-cards {
        gap: 80px;
    }

    .card {
        width: 200px;
        height: 200px;
        gap: 20px;
    }

    .card h3 {
        font-size: 52px;
    }

    .card span {
        font-size: 14px;
    }
}