:root {
    --main-color: #333333;
    --accent-color: #a18c7a;
    --light-color: #f9f7f5;
    --background-color: #ffffff;
}

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

body {
    min-height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: Chocolate;


    font-weight: 300;
    color: var(--main-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2, h3, h4 {
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.logo img {
    width: 175px;
}

.header-contact {
    text-align: center;
    font-size: 14px;
}

.header-contact p {
    margin: 5px 0;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #8a7665;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

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

.hero {
    padding: 35px 0;
    text-align: center;
    background-color: var(--light-color);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 10px 30px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.about {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.gallery {
    padding: 80px 0;
}

.gallery h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.gallery-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gallery-caption {
    font-weight: 400;
    margin-bottom: 15px;
    text-align: center;
}

.gallery-pair {
    margin-bottom: 40px;
}

.gallery-text {
    margin-bottom: 30px;
    text-align: center;
}

.gallery-item-container {
    width: 48%;
}

.gallery-item {
    position: relative;
    height: auto;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 0.6;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.brunch-section img {
    display: none;
}

.events {
    padding: 80px 0;
    background-color: var(--light-color);
}

.events h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.events-section {
    margin: 0 auto;
    padding: 60px 0;
    background: #f9f7f5;
}

.events-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.events-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.event-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Контейнер с изображением на всю ширину */
.event-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Изображение события на всю ширину */
.event-image img {
    width: 90%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
@media (max-width: 768px) {
    .event-image img {
        width: 100%;
    }

}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* Контент события */
.event-content {
    padding: 30px;
}

/* Заголовок и описание */
.event-header {
    margin-bottom: 25px;
}

.event-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.event-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Информация о мероприятии в строку для десктопа */
.event-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

/* Мета-элементы в информации о мероприятии */
.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    margin-right: 20px;
}

.meta-icon {
    margin-right: 10px;
    color: #c19a6b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-label {
    font-weight: 500;
    color: #444;
    margin-right: 5px;
}

.meta-value {
    color: #666;
}

/* Кнопка записи */
.event-cta {
    width: 100%;
    max-width: 300px;
}

.btn-register {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #c19a6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-register:hover {
    background-color: #a78557;
}

/* Блок прошедших мероприятий */
.past-events {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e0da;
}

.past-events h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #444;
}

/* Сетка для прошедших мероприятий */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.past-event-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    background: #fff;
}

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

.past-event-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Квадратное соотношение сторон */
    position: relative;
    overflow: hidden;
}

.past-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.past-event-item:hover .past-event-image img {
    transform: scale(1.1);
}

.past-event-title {
    padding: 12px;
    font-size: 14px;
    text-align: center;
}

.past-events-link {
    display: inline-block;
    color: #c19a6b;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    margin-top: 10px;
}

.past-events-link:hover {
    border-color: #c19a6b;
}

/* Адаптивная верстка для планшетов */
@media (max-width: 992px) {
    .event-info {
        flex-direction: column;
    }

    .past-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Адаптивная верстка для мобильных */
@media (max-width: 768px) {
    .past-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .event-content {
        padding: 20px;
    }

    .event-title {
        font-size: 22px;
    }
}

/* Адаптивная верстка для маленьких мобильных */
@media (max-width: 480px) {
    .past-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .event-content {
        padding: 15px;
    }

    .event-title {
        font-size: 20px;
    }
}

/* Стили для списков */
ul, ol {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

ul li {
    list-style-type: disc;
}

ul li::marker {
    color: var(--accent-color);
}

.custom-events {
    padding: 80px 0;
}

.custom-events-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.custom-events-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.custom-events-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.testimonials {
    padding: 80px 0;
    background-color: var(--light-color);
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-author {
    font-weight: 500;
}

.cta {
    padding: 80px 0;
    text-align: center;
}

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

.cta-actions {
    margin-top: 30px;
}

/* Form */
.form-container {
    max-width: 600px;
    margin: 40px auto;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

footer {
    background-color: var(--main-color);
    color: white;
    padding: 50px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-about img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
    padding-left: 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-inner, .custom-events-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 8px 15px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }

    .gallery-row {
        flex-direction: column;
    }

    .gallery-item-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .header-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .event-content {
        padding: 20px;
    }
}

.section-center {
    text-align: center;
}

.about-centered {
    padding: 80px 0;
    background-color: var(--light-color);
    text-align: center;
}

.about-centered .container {
    max-width: 800px;
    margin: 0 auto;
}

.about-centered h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-centered p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.video-centered {
    margin-top: 20px;
    text-align: center;
}

.video-centered .container {
    max-width: 800px;
    margin: 0 auto;
}

.video-centered h2 {
    font-size: 36px;
    margin-bottom: 30px;
}
.video-container {
    max-width: 800px;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

video {
    width: 100%;
    display: block;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .controls {
    opacity: 1;
}

button {
    background: transparent;
    border: none;
    color: white;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.volume-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    margin-left: 10px;
}

.time-display {
    color: white;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.progress-container {
    position: absolute;
    bottom: 45px;
    left: 0;
    right: 0;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background-color: #f00;
    width: 0;
}

.status-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    display: none;
}

.events h4 {
    text-align: center;
    font-size: 20px;
}

a {
    color: #333333;
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
.centered {
    text-align: center;
}

  .gallery-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
      justify-content: center;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
  }

.thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}
.hidden-thumbnail {
    display: none;
}

.gallery-item-thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-caption-thumbnail {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {

    .hidden-thumbnail {
        display: block;
    }

    .gallery .container {
        box-sizing: border-box;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .gallery-item-thumbnail {
        width: 100%;
        aspect-ratio: 1/1;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Стили для Plyr плеера */
.video-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.video-container .plyr {
    --plyr-color-main: #c19a6b;
    --plyr-video-control-color: #fff;
    --plyr-video-control-color-hover: #fff;
    --plyr-video-control-background-hover: rgba(193, 154, 107, 0.8);
    --plyr-audio-control-background-hover: rgba(193, 154, 107, 0.8);
    --plyr-control-radius: 3px;
    --plyr-control-spacing: 10px;
}

.mini-gray-notice {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .video-container {
        width: 100%;
    }

    .plyr__control--overlaid {
        padding: 15px; /* Увеличиваем размер кнопки воспроизведения */
    }

    .plyr__controls button {
        padding: 8px;
    }
}

.plyr__video-wrapper {
    background: #000;
}

.plyr--fullscreen-active video {
    height: 100%;
}


.about-centered {
    padding: 60px 0;
    background-color: #f9f7f5;
}

.about-centered .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-centered h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 36px;
    font-weight: normal;
    color: #333;
}

.about-centered p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.about-info-container {
    margin-top: 40px;
}

.about-info-block {
    margin-bottom: 30px;
}

.about-info-block h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.about-info-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-info-block ul li {
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-info-block ul li:before {
    content: "•";
    color: #c19a6b;
    font-size: 20px;
    margin-right: 10px;
}

.about-info-block p {
    margin-bottom: 5px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .about-centered {
        padding: 40px 0;
    }

    .about-centered h2 {
        font-size: 28px;
    }

    .about-info-block ul li {
        text-align: center;
        padding-left: 0;
    }
}
@media screen and (max-width: 768px) {
    .header-actions {
        display: none;
    }
    .header-contact {
        display: none;
    }
}



.mini-gray {
    color: gray;
    font-size: 0.85em;
    margin: -10px 0 10px;
}



.events-section {
    margin: 0 auto;
    padding: 60px 0;
    background: #f9f7f5;
}

.events-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.events-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.event-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.event-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.event-image-inner {
    width: 100%;
    height: 100%;
    background-color: #e3d8ca;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.event-card:hover .event-image-inner {
    transform: scale(1.05);
}

.event-content {
    flex: 0 0 40%;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.event-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.event-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.meta-icon {
    margin-right: 10px;
    color: #c19a6b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-label {
    font-weight: 600;
    color: #444;
    margin-right: 5px;
}

.meta-value {
    color: #666;
}

.event-cta {
    width: 100%;
}

.btn-register {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #c19a6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-register:hover {
    background-color: #a78557;
}

.past-events {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e0da;
}

.past-events h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #444;
}

.past-events-link {
    display: inline-block;
    color: #c19a6b;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.past-events-link:hover {
    border-color: #c19a6b;
}

@media (max-width: 992px) {
    .event-card {
        flex-direction: column;
    }

    .event-image {
        flex: 0 0 auto;
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Соотношение 1:1 для мобильных (1000x1000) */
    }

    .event-content {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .events-container {
        padding: 0 15px;
    }

    .events-intro p {
        font-size: 16px;
    }

    .event-title {
        font-size: 22px;
    }

    .event-content {
        padding: 25px 20px;
    }
}