@import "/style/main.css";
@import "/style/second-page.css";
@import "/style/reception.css";
@import "/style/programms.css";
@import "/style/medical.css";
@import "/style/rules.css";
@import "/style/teachers.css";
@import "/style/navigation.css";
@import "/style/contacts.css";

/* @font-face {
    font-family: "PT Sans Narrow", sans-serif;
    font-weight: 400;
    src: url("/fonts/PT Sans Narrow.ttf") format("ttf");
    font-display: swap;
}

@font-face {
    font-family: "PTSans-NarrowBold", sans-serif;
    font-weight: 700;
    src: url("/fonts/PTSans-NarrowBold.ttf") format("ttf");
    font-display: swap;
}

@font-face {
    font-family: "Merriweather", sans-serif;
    font-weight: 400;
    src: url("/fonts/Merriweather-Regular.ttf") format("ttf");
    font-display: swap;
} */

@font-face {
    font-family: "MTS Compact-Medium", sans-serif;
    font-weight: 500;
    src: url("/fonts/MTSCompact-Medium.ttf") format("ttf");
    font-display: swap;
}

@font-face {
    font-family: "MTS Compact", sans-serif;
    font-weight: 700;
    src: url("/fonts/MTSCompact-Bold.ttf") format("ttf");
    font-display: swap;
}

@font-face {
    font-family: "VKSans-Display-DemiBold", sans-serif;
    font-weight: 400;
    src: url("/fonts/VKSansDisplayDemiBold.ttf") format("ttf");
    font-display: swap;
}

*,
html {
    font-family: "PT Sans Narrow", sans-serif;
}
html {
    overflow-y: auto;
    scrollbar-gutter: stable;
}
body {
    background-color: #007b8a;
}

a:hover {
    text-decoration: none;
}

.center {
    padding-left: calc(50% - 770px);
    padding-right: calc(50% - 770px);
}
em {
    color: #000 !important;
}

i {
    color: #000 !important;
}
/*header*/

.lidrekon-inner {
    text-align: right;
}
.specialButton {
    position: relative;
    width: 55px!important;
    z-index: 5;
}
.navbar-expand-lg .navbar-nav .nav-link {
    color: #fff;
    white-space: nowrap;
    white-space: nowrap;
}
.navbar-expand-lg .navbar-nav .nav-link:hover {
    color: #e4dddd;
}
.navbar {
    position: relative;
    top: -74px;
    z-index: 1;
}
.navbar-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-right: auto;
    padding-left: 10px;
    background-image: linear-gradient(
        to bottom,
        #d9d9d9 0%,
        #006572 100%,
        #007b8a 100%
    );
    background-repeat: repeat-x;
    border-radius: 8px;
    box-shadow: 0px 6px 8px 0px rgba(22 23 23 / 36%);
    --bs-nav-link-hover-color: #000 !important;
}
.header-nav {
    color: #000;
}
.nav-link.dropdown-toggle.header-nav.show {
    width: 100%;
    background-color: #00b458;
    color: #fff;
}
a.nav-link.header-nav {
    font-family: "VKSans-Display-DemiBold", sans-serif;
}
.dropdown-item:hover {
    text-decoration: underline;
}
.form-search {
    font-family: "VKSans-Display-DemiBold", sans-serif;
    padding: 11px;
    border: 1px solid #008740;
    border: 1px solid #008740;
    border-radius: 8px;
    cursor: pointer;
    cursor: pointer;
}
.form-search.shift-up {
    outline: none !important;
    border: none !important;
    /* color: #fff; */
}
.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}
.form-control:hover {
    text-decoration: underline;
}
/*Footer*/
.contact-item i {
    color: #198754; /* Bootstrap success */
    font-size: 1.1rem;
    width: 1.75rem;
    text-align: center;
}
.resource-card img {
    display: block;
    width: 80%;
    height: auto;
    box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.08);
    background: #fff;
}

/*Footer*/
footer {
    margin-top: 20px;
}
.footer-container {
    background: #accfd7;
}
.footer-text-container {
    padding: 56px 150px 0;
}
.footer-address {
    margin-bottom: 0;
}
.footer-text-inner {
    margin-bottom: 30px;
}
.mail-inner {
    margin-bottom: 50px;
}
.footer-text-inner,
.mail-inner,
.tel-inner {
    color: #fff;
}
.title-footer {
    font-family: "Sansita-Regular", sans-serif;
    font-size: 30px;
    line-height: 35px;
    margin-bottom: 0;
}
.footer-text {
    font-size: 25px;
    line-height: 35px;
}
.tel-link-footer,
.mail-link-footer {
    color: #fff;
    text-decoration: none;
}
.footer-wrap .bi {
    color: #628188 !important;
}
.info-title {
    color: #000;
}
.info-title-address {
    max-width: 306px;
}
.footer-link {
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}
.tel-link-footer:hover {
    color: #a5a4b1f5;
}
.mail-link-footer:hover {
    text-decoration: underline;
    color: #fff;
}
.vk-circle {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background-color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    transition: transform 0.3s;
}
.vk-circle:hover {
    transform: scale(1.1);
}
.footer-logo-info {
    padding: 0 0px 30px 0px;
}
.footer-logos {
    display: flex;
    justify-content: space-around;
}
.footer-logo-item {
    display: flex;
}
.footer-logo-pic {
    width: 200px;
    height: 180px;
}
.footer-logo-text {
    max-width: min-content;
    font-size: 17px;
    line-height: 20px;
    color: #fff;
}
.useful-resources {
    margin-top: 40px;
}


/*Адаптив*/

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        gap: 10px;
    }
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
        top: 41px;
        width: 210px;
    }
}
.navbar-logo-img {
    position: relative;
    left: -10px;
    width: 185px;
    height: auto;
}
@media (max-width: 1400px) {
    .wrap-column {
        padding: 10px;
    }
}
@media (max-width: 1310px) {
    .navbar-logo-img {
        width: 120px;
    }
    .main-banner {
        top: 10px;
    }
    .nav-link {
        font-size: 14px;
    }
    .form-search {
        padding: 7px;
    }
}
@media (max-width: 1220px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 10px;
    }
    .navbar-nav {
        padding-left: 0;
    }
}
@media (max-width: 1200px) {
    /* .navbar-brand{
    margin-right: 0;
  } */
    .navbar-toggler {
        border: none;
    }
    .navbar-expand-lg .navbar-collapse {
        position: relative;
        gap: 5px;
    }
    .navbar-nav {
        margin-left: 0px;
        margin-left: 0px;
    }
    .footer-logo-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: absolute;
    }
    .navbar-nav {
        width: 100%;
        padding-left: 20px;
        width: 100%;
        padding-left: 20px;
    }
    .navbar {
        background-color: #007b8a;
        background-color: #007b8a;
        --bs-navbar-toggler-focus-width: 0;
    }
    .navbar-brand {
        position: absolute;
        right: -10px;
        bottom: -180px;
    }
    .navbar-toggler-icon {
        vertical-align: sub;
    }
    .navbar-toggler-text {
        font-family: "PTSans-NarrowBold", sans-serif;
        font-weight: 700;
        font-size: 26px;
        color: #fff;
        text-transform: uppercase;
    }
    .specialButton {
        position: relative;
        width: 50px !important;
        padding-left: 2px;
        padding-right: 2px !important;
        z-index: 5;
    }
    .navbar-nav {
        margin-top: 5px;
        background-color: #fff;
        --bs-nav-link-hover-color: #000 !important;
        border-radius: 0;
    }
    .nav-link.dropdown-toggle.header-nav.show {
        width: 100%;
    }
    .form-control {
        width: 16%;
        margin-left: 15px;
    }
    .city-select {
        justify-content: flex-end;
    }
    .city-select-result {
        margin-right: 15px;
        padding: 4px 10px;
        background-image: none;
        background-color: #fff;
    }
    .city-select-select.shift-up {
        min-width: 185px;
        position: absolute;
        top: 1px;
        right: 0;
        left: 0;
        font-size: 18px;
        padding: 6px 10px;
        text-align: center;
        background-color: #fff;
    }
    .phone-link {
        color: #008740;
    }
    .phone-link:hover {
        color: #616167f5;
    }
    .phone-img {
        display: none;
    }
    .form-control {
        width: 16%;
        margin-left: 15px;
    }
    .city-select {
        justify-content: flex-end;
    }
    .city-select-result {
        margin-right: 15px;
        padding: 4px 10px;
        background-image: none;
        background-color: #fff;
    }
    .city-select-select.shift-up {
        min-width: 185px;
        position: absolute;
        top: 1px;
        right: 0;
        left: 0;
        font-size: 18px;
        padding: 6px 10px;
        text-align: center;
        background-color: #fff;
    }
    .phone-link {
        color: #008740;
    }
    .phone-link:hover {
        color: #616167f5;
    }
    .phone-img {
        display: none;
    }
    .main-banner {
        top: -40px;
    }
    .footer-text-container {
        padding: 10px 50px 0;
    }
    .footer-logo-text {
        font-size: 14px;
    }
    .footer-logo-pic {
        width: 159px;
        height: 130px;
    }
}

@media (max-width: 810px) {
    .navbar-logo-img {
        width: 100px;
    }
    .navbar-brand {
        right: -60px;
        bottom: -178px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }
    .navbar {
        top: -46px;
    }
    .navbar-logo-img {
        display: none;
    }
    .footer-info-wrap {
        display: block !important;
    }
    .resource-card img {
        width: 100%;
        max-height: none !important;
    }
    .useful-resources {
        gap: 20px !important;
    }
    .footer-text-container {
        padding: 10px 14px 0;
    }
    .title-footer {
        font-size: 24px;
        line-height: 28px;
    }
    .footer-text {
        font-size: 20px;
        line-height: 30px;
    }
    .footer-logo-item {
        justify-content: center;
    }
    .footer-logo-info {
        padding: 0 10px 0px 14px;
    }
    .footer-logo-text {
        text-align: center;
    }
}
@media (max-width: 650px) {
    .navbar-brand {
        bottom: -140px;
    }
}

@media (max-width: 568px) {
    .footer-info-title {
        margin-bottom: 30px !important;
    }
    .contact-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
        max-width: 212px;
        margin-right: auto;
        text-align: left; /* чтобы текстовая часть была читаема */
    }
    .contact-item i {
        font-size: 1.5rem;
        margin-right: 0;
        color: #385898; /* или ваш основной цвет */
        min-width: 28px;
        text-align: center;
    }
    .footer-link,
    .col-12.col-md-4.info a {
        word-break: break-all;
        text-decoration: underline dotted 1.5px var(--bs-primary, #385898);
    }

    /* Блок для VK — по центру, чуть увеличен отступ */
    .mt-3.vk-link {
        margin-top: 1.5rem !important;
        display: flex;
        justify-content: center;
    }

    .vk-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #f3f6fa;
        color: #385898;
        box-shadow: 0 2px 8px #0001;
        transition: background 0.2s;
    }
    .vk-circle:hover {
        background: #e3eefc;
        color: #1976d2;
    }

    .resources {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .resources .resource-card {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
    }
    .resources .resource-card img {
        width: 100%;
        display: block;
        border-radius: 12px;
        box-shadow: 0 2px 8px #0001;
        object-fit: cover;
    }
    .title-footer {
        font-size: 18px;
        line-height: 24px;
    }
    .footer-text {
        font-size: 15px;
        line-height: 24px;
    }
    .footer-logo-pic {
        height: 110px;
    }
    .text-body-secondary {
        margin: 0 auto;
    }
    .link-secondary {
        display: block;
        text-align: center;
    }
}

.footer-doc-link {
  display: inline-block;
  color: #000;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-doc-link:hover {
  color: #333;
}

/* ===== Модальное окно обратной связи ===== */
.contact-modal-dialog {
  border-radius: 12px;
  overflow: hidden;
}
.contact-modal-header {
  background: #007b8a;
  padding: 16px 20px;
  border-bottom: none;
}
.contact-modal-title {
  font-family: "PTSans-NarrowBold", sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}
.contact-modal-dialog .uk-modal-close-default {
  color: #fff;
  top: 14px;
  right: 16px;
}
.contact-modal-body {
  padding: 24px;
}
.contact-form-group {
  margin-bottom: 16px;
}
.contact-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 6px;
}
.contact-required {
  color: #c0392b;
}
.contact-input {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
.contact-input:focus {
  border-color: #007b8a;
  box-shadow: 0 0 0 3px rgba(0, 123, 138, 0.12);
}
.contact-input-error {
  border-color: #c0392b !important;
}
.contact-textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 1em;
}
.contact-error-general {
  padding: 10px 12px;
  background: #fdecea;
  border-radius: 6px;
  margin-bottom: 12px;
}
.contact-check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.contact-checkbox {
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-check-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}
.contact-policy-link {
  color: #007b8a;
}
.contact-policy-link:hover {
  color: #006070;
}
.contact-submit-wrap {
  margin-top: 8px;
}
.contact-submit-btn {
  display: block;
  width: 100%;
  background: #007b8a;
  color: #fff;
  border-radius: 6px;
  font-family: "PTSans-NarrowBold", sans-serif;
  font-size: 1rem;
  padding: 11px 0;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.contact-submit-btn:hover {
  background: #006070;
  color: #fff;
}
.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.contact-success-msg {
  text-align: center;
  padding: 24px 16px;
  color: #1a7a3a;
  font-size: 1rem;
  line-height: 1.6;
}
.contact-success-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 340px;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
.cookie-banner__btn {
  align-self: flex-end;
  background: #007b8a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-banner__btn:hover {
  background: #006070;
}
.cookie-banner__link {
  color: #007b8a;
  text-decoration: underline;
}
.cookie-banner__link:hover {
  color: #006070;
}
@media (max-width: 480px) {
  #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
