body {
    margin: 0;
    font-family: "Proxima Nova", Arial, sans-serif;
    background: #f4f3f1;
    color: #e91e63;
    position: relative;
    overflow-x: hidden;
    padding: 100px;
}

header {
    text-align: center;
}

.logo {
    font-size: 56px;
    letter-spacing: 10px;
}

.subtitle {
    font-size: 36px;
    margin-bottom: 35px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 70px;
}

nav a {
    font-size: 36px;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
}


.dropdown {
    position: relative;
}

.submenu {
    display: none;
    border-radius: 30px 30px 30px 30px;
    position: absolute;
    top: 100%;
    list-style: none;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-width: 115px;
}

.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px;
    min-width: 180px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    box-shadow:
        0 10px 40px rgba(200, 80, 255, 0.15),
        0 5px 20px rgba(255, 105, 180, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu a {
    font-size: 16px;
    letter-spacing: 0.5px;
    text-decoration: none;
    font-weight: 500;
    color: #7a3cff;
    transition: 0.3s ease;
}

.submenu a:hover {
    color: #ff4fa3;
    /* розовый акцент */
    transform: translateX(4px);
}

.gallery {
    padding: 70px;
    column-count: 3;
    column-gap: 40px;
}

.gallery-item {
    position: relative;
    display: block;
    break-inside: avoid;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 30px;
}


.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 30px;
    transition: transform 0.35s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 18px;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}

footer a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

footer {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    overflow: hidden;
}

.title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.bio h2 {
    max-width: 1200px;
    margin: 0 auto 1px auto;
    text-align: justify;
    line-height: 1.6;
    font-size: 28px;
    color: #ec407a;

}


.text {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    text-align: justify;
    line-height: 1.6;
    font-size: 28px;
    color: #ec407a;
}

.center-info {
    text-align: center;
    margin: 30px auto 40px auto;
    font-size: 16px;
}

.center-info strong {
    font-size: 18px;
}

.gallery-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-row img {
    width: 100%;
    max-width: 750px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transition: transform 0.4s ease;
}

.gallery-row img:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {

body{
    padding:40px;
}

.logo{
    font-size:40px;
    letter-spacing:6px;
}

.subtitle{
    font-size:24px;
}

nav ul{
    gap:30px;
}

nav a{
    font-size:24px;
}

.text{
    font-size:20px;
}

.bio h2{
    font-size:22px;
}

.gallery{
    column-count:2;
    padding:40px;
}

.gallery-row img{
    max-width:100%;
}

}

@media (max-width: 600px) {

body{
    padding:20px;
}

.logo{
    font-size:28px;
    letter-spacing:4px;
}

.subtitle{
    font-size:18px;
    margin-bottom:20px;
}

nav ul{
    flex-direction:column;
    gap:14px;
    margin-bottom:40px;
}

nav a{
    font-size:20px;
}

.text{
    font-size:16px;
}

.bio h2{
    font-size:18px;
}

.gallery{
    column-count:1;
    padding:10px;
}

.gallery-item{
    margin-bottom:20px;
}

.gallery-row{
    gap:20px;
}

.center-info{
    font-size:14px;
    margin:20px auto 30px auto;
}

.contacts{
    gap:25px;
}

.contact-item img{
    width:40px;
    height:40px;
}

}

@media (max-width: 600px) {
    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }

    nav a {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 2;
    column-gap: 15px;
    padding: 10px;
  }

  .gallery-item {
    margin-bottom: 20px;
  }
}
