/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    position: relative;
}

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

.content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Typography */
strong, b { font-weight: bold; }
cite, em, i { font-style: italic; }
sup, sub { height: 0; line-height: 1; position: relative; vertical-align: baseline; }
sup { bottom: 1ex; }
sub { top: .5ex; }
address { margin: 1.5em 0; }

/* Header styles */
header {
    position: relative;
    background: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
}

header .text_logo {
    padding: 20px 0;
}

header .text_logo a:hover {
    text-decoration: none;
}

header .image_logo {
    margin-top: 20px;
}

header #menu_row {
    margin: 0px;
    border: none;
    border-radius: 0px;
    min-height: 20px;
}

header #menu_row .container .navbar-collapse {
    border: none;
}

header #menu_row .container .navbar-collapse .navbar-nav {
    text-align: center;
}

header #menu_row .container .navbar-collapse .navbar-nav > li {
    display: inline-block;
    float: none;
    text-align: left;
    margin: 0px;
    padding: 0px;
}

header #menu_row .container .navbar-collapse .navbar-nav > li > a {
    font-size: 15px;
    color: #fff;
}

header #menu_row .container .navbar-collapse .navbar-nav > li > a:hover {
    color: #ffd700;
}

header #menu_row .container .fallback_cb ul > li > a {
    font-size: 15px;
    color: #fff;
}

header #menu_row .container .fallback_cb ul > li > a:hover {
    color: #ffd700;
}

/* Navigation styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffd700;
}

/* Content styles */
.editable p {
    padding: 0 0 15px 0;
}

.editable h1, .editable h2, .editable h3 {
    margin-top: 35px;
    margin-bottom: 20px;
}

.editable h4, .editable h5, .editable h6 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.editable img {
    max-width: 100%;
    height: auto;
}

/* Gallery styles */
.editable .gallery {
    margin: 0 auto 18px;
}

.editable .gallery dl.gallery-item {
    float: left;
    margin-top: 0;
    padding: 0px;
    text-align: center;
    width: 33%;
}

.editable .gallery-columns-2 dl.gallery-item {
    width: 50%;
}

.editable .gallery-columns-4 dl.gallery-item {
    width: 25%;
}

.editable .gallery img {
    padding: 4px;
    margin: 0px auto;
    display: block;
}

.editable .gallery img:hover {
    background: white;
}

.editable .gallery-caption {
    clear: both;
    margin: 0 0 12px;
    font-size: 12px;
}

/* Footer styles */
#footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-bottom: 10px;
    }
    
    header #menu_row .container .navbar-collapse .navbar-nav > li {
        display: block;
    }

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

@media (min-width: 768px) and (max-width: 979px) {
    .editable .gallery dl.gallery-item {
        width: 50%;
    }
}

@media (min-width: 980px) and (max-width: 1200px) {
    .editable .gallery dl.gallery-item {
        width: 33%;
    }
}

/* --- Стили, перенесённые из <style> главной страницы --- */
.tabs-gallery-classic {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 30px auto;
  border: 1px solid #bbb;
  background: #f9f9f9;
  box-sizing: border-box;
  padding: 0;
}
.tabs-gallery-classic input[type="radio"] { display: none; }
.tabs-gallery-classic .tab-labels {
  display: flex;
  border-bottom: 1px solid #bbb;
  background: #eaeaea;
}
.tabs-gallery-classic .tab-labels label {
  flex: 1 1 180px;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 500;
  color: #222;
  border-right: 1px solid #bbb;
  border-bottom: none;
  background: #eaeaea;
  margin: 0;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.tabs-gallery-classic .tab-labels label:last-child { border-right: none; }
.tabs-gallery-classic .tab-labels label:hover {
  background: #f5f5f5;
}
.tabs-gallery-classic input[type="radio"]:checked + label {
  background: #fff;
  color: #007bff;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}
.tabs-gallery-classic .tab-content {
  display: none;
  padding: 30px 30px 20px 30px;
  background: #fff;
}
.tabs-gallery-classic input#tab1:checked ~ .tab-content.tab1,
.tabs-gallery-classic input#tab2:checked ~ .tab-content.tab2 {
  display: block;
}
.tabs-gallery-classic .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  justify-items: center;
}
.tabs-gallery-classic .gallery-grid img {
  width: 100%;
  max-width: 260px;
  border: 1px solid #bbb;
  background: #fff;
  margin-bottom: 6px;
}
.tabs-gallery-classic .gallery-caption {
  font-size: 15px;
  color: #444;
  margin-bottom: 10px;
  text-align: center;
}
@media (max-width: 700px) {
  .tabs-gallery-classic .tab-labels { flex-direction: column; }
  .tabs-gallery-classic .tab-labels label { border-right: none; border-bottom: 1px solid #bbb; }
  .tabs-gallery-classic .tab-labels label:last-child { border-bottom: none; }
  .tabs-gallery-classic .tab-content { padding: 18px 5px 10px 5px; }
}

/* Универсальные стили для карточек и галерей */
.home-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin: 18px 0;
  padding: 18px 18px 18px 18px;
}
.home-card.text-center { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  justify-items: center;
  margin-bottom: 10px;
}
.gallery-grid img {
  width: 100%;
  max-width: 260px;
  border: 1px solid #bbb;
  background: #fff;
  margin-bottom: 6px;
}
.gallery-caption {
  font-size: 15px;
  color: #444;
  margin-bottom: 10px;
  text-align: center;
}
.gallery-horizontal {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  align-items: center;
}
.home-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 18px;
}
.text-center { text-align: center; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .home-icons { flex-direction: column; gap: 10px; }
} 