/* =========================
   БАЗОВЫЕ СТИЛИ
========================= */

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, sans-serif;
    color: #222;

    /* Главный фон сайта */
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.12)
        ),
        url('/images/2.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    flex-direction: column;
}


/* Основной контент */

main {
    flex: 1;
    padding: 20px;
}


/* Приветственный блок */

.welcome-section {
    max-width: 1000px;

    margin: 30px auto;
    padding: 20px 30px;

    text-align: center;

    background: rgba(255, 255, 255, 0.20);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;

    backdrop-filter: blur(3px);

    text-shadow:
        0 2px 5px rgba(255, 255, 255, 0.8);
}

.welcome-section h1 {
    margin: 0;

    text-align: center;

    color: #222;

    font-size: 32px;

    text-shadow:
        0 2px 6px rgba(255, 255, 255, 0.9);
}

.welcome-section p {
    max-width: 900px;

    margin: 15px auto 0;

    font-size: 19px;
    line-height: 1.5;

    text-align: center;

    color: #222;

    text-shadow:
        0 2px 5px rgba(255, 255, 255, 0.9);
}


/* Footer */

footer {
    margin-top: 40px;
    padding: 15px;

    background: rgba(20, 20, 20, 0.82);
    color: white;

    text-align: center;

    backdrop-filter: blur(4px);
}


/* =========================
   ОБЩИЕ КНОПКИ
========================= */

.button-link {
    display: inline-block;

    padding: 12px 24px;

    background-color: #45702b;
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button-link:hover {
    background-color: #365a22;

    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.25);
}

.button-link:active {
    transform: translateY(0);
}

.button-link:focus-visible {
    outline: 2px solid #ffbf47;
    outline-offset: 2px;
}


/* =========================
   ШАПКА
========================= */

header {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    padding: 20px 40px;

    background: rgba(255, 255, 255, 0.18);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(3px);
}


/* Логотип */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    height: 80px;
}

.logo-area {
    display: flex;

    flex-direction: column;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    display: block;

    max-width: 100%;
    height: auto;
}


/* Адрес */

.header-address {
    margin-top: 5px;

    text-align: center;

    font-size: 17px;
    font-weight: bold;

    color: #222;

    text-shadow:
        0 1px 4px rgba(255, 255, 255, 0.9);
}

.address-line {
    margin-bottom: 5px;
}

.metro-line {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 4px;
}

.metro-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #2b73b7;
    color: #ffffff;

    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}


/* Правая часть шапки */

.header-right {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: 60px;

    flex-shrink: 0;
}


/* Режим работы */

.work-hours {
    position: relative;

    padding-left: 28px;

    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;

    color: #333;

    text-align: right;

    text-shadow:
        0 1px 4px rgba(255, 255, 255, 0.9);
}

.work-hours::before {
    content: "🕒";

    position: absolute;

    left: -15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 30px;
}


/* Контакты */

.header-contacts {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    gap: 4px;

    flex-shrink: 0;
}

.header-phone,
.header-email,
.header-phone:visited,
.header-email:visited,
.header-phone:hover,
.header-email:hover,
.header-phone:active,
.header-email:active {
    color: #0056b3;

    text-decoration: none;

    white-space: nowrap;

    text-shadow:
        0 1px 4px rgba(255, 255, 255, 0.9);
}

.header-phone {
    display: block;

    margin-bottom: 8px;

    font-size: 26px;
    font-weight: 600;
}

.header-email {
    font-size: 26px;
    font-weight: bold;
}

.header-phone:hover,
.header-email:hover .email-text {
    text-decoration: underline;
}

.email-icon {
    margin-right: 4px;
}

.phone-icon {
    display: inline-block;

    margin-right: 3px;

    font-size: 22px;

    vertical-align: 2px;
}


/* Социальные сети */

.header-socials {
    display: flex;

    align-items: center;

    gap: 8px;
}

.header-socials a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border-radius: 50%;

    text-decoration: none;
}

.header-socials img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;
}


/* Значок Яндекс */

.yandex-good-place {
    width: 140px;
    height: 140px;

    margin-left: 10px;

    flex-shrink: 0;
}

.yandex-good-place img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================
   ГЛАВНАЯ СТРАНИЦА
   СЕТКА КАРТОЧЕК
========================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(4, 300px);

    justify-content: center;

    gap: 20px;
}


/* Общая карточка */

.service-card {
    position: relative;

    display: flex;

    flex-direction: column;

    width: 300px;
    height: 300px;

    padding: 15px;

    box-sizing: border-box;

    overflow: hidden;

    color: white;

    text-decoration: none;

    /* Тёмная полупрозрачная основа */
    background: rgba(0, 0, 0, 0.28);

    border:
        2px solid rgba(255, 255, 255, 0.80);

    border-radius: 12px;

    backdrop-filter: blur(2px);

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* Фон карточки */

.service-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Изображения услуг хорошо видны */
    opacity: 0.72;

    z-index: 0;
}


/* Затемнение изображения для текста */

.service-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.32),
            rgba(0, 0, 0, 0.12) 45%,
            rgba(0, 0, 0, 0.42)
        );

    z-index: 0;

    pointer-events: none;
}


/* Контент поверх изображения */

.service-card > * {
    position: relative;

    z-index: 1;
}


/* Анимация */

.service-card:hover {
    transform: translateY(-8px);

    background: rgba(0, 0, 0, 0.18);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.30);
}


/* Верхняя часть */

.card-title {
    height: 65px;

    display: flex;

    justify-content: center;
    align-items: flex-start;
}


/* Средняя часть */

.card-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* Нижняя часть */

.card-link {
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Заголовок карточки */

.service-card h2 {
    width: 100%;
    height: 68px;

    margin: 0 0 8px;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    color: #ffd700;

    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;

    text-align: center;

    -webkit-text-stroke: 1.5px white;

    paint-order: stroke fill;

    text-shadow:
        2px 2px 5px black,
        -2px -2px 5px black,
        2px -2px 5px black,
        -2px 2px 5px black;
}


/* Текст карточки */

.service-card p {
    width: 85%;

    margin: 0 auto 8px;

    color: white;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;

    text-align: center;

    text-shadow:
        2px 2px 4px black,
        -2px -2px 4px black,
        2px -2px 4px black,
        -2px 2px 4px black;
}


/* Список */

.service-card ul {
    margin: 0 0 8px;

    padding-left: 20px;

    color: white;

    font-size: 16px;
    font-weight: bold;
    line-height: 1.35;

    text-align: left;

    text-shadow:
        2px 2px 4px black,
        -2px -2px 4px black,
        2px -2px 4px black,
        -2px 2px 4px black;
}

.service-card li {
    text-shadow:
        1px 1px 3px black,
        -1px -1px 3px black,
        1px -1px 3px black,
        -1px 1px 3px black;
}


/* Ссылка «Перейти» */

.service-card span {
    color: #ffd700;

    font-size: 18px;
    font-weight: bold;

    -webkit-text-stroke: 1px white;

    paint-order: stroke fill;

    text-shadow:
        2px 2px 4px black,
        -2px -2px 4px black,
        2px -2px 4px black,
        -2px 2px 4px black;
}


/* Фоны отдельных карточек */

.copy-card::before {
    background-image: url('/images/copy.png');
}

.photo-card::before {
    background-image: url('/images/photo.png');
}

.ai-design-card::before {
    background-image: url('/images/ai-design.png');
}

.printing-card::before {
    background-image: url('/images/print.png');
}

.souvenirs-card::before {
    background-image: url('/images/souvenirs.png');
}

.balloons-card::before {
    background-image: url('/images/balloons.png');
}

.videos-card::before {
    background-image: url('/images/videos.png');
}

.translations-card::before {
    background-image: url('/images/translations.png');
}

.ceramics-card::before {
    background-image: url('/images/ceramics.png');
}

.art-card::before {
    background-image: url('/images/art.png');
}


/* =========================
   КНИГООБМЕН
========================= */

.books-card {
    width: 300px;
    height: 300px;

    margin: 0;

    box-sizing: border-box;

    overflow: hidden;

    border:
        2px solid rgba(255, 255, 255, 0.85);

    border-radius: 12px;

    background:
        rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(2px);

    align-self: start;
}

.books-card > img {
    display: block;

    width: 100%;
    height: 170px;

    object-fit: cover;
}

.books-content {
    padding: 10px 15px;

    text-align: center;
}

.books-content h2 {
    margin: 0 0 5px;

    color: #ffd700;

    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;

    text-align: center;

    -webkit-text-stroke: 1.5px white;

    paint-order: stroke fill;

    text-shadow:
        2px 2px 5px black,
        -2px -2px 5px black,
        2px -2px 5px black,
        -2px 2px 5px black;
}

.books-content p {
    margin: 0 0 8px;

    color: white;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.25;

    text-shadow:
        2px 2px 4px black,
        -2px -2px 4px black,
        2px -2px 4px black,
        -2px 2px 4px black;
}

.books-content a {
    color: #ffd700;

    font-size: 18px;
    font-weight: bold;

    text-decoration: none;

    -webkit-text-stroke: 1px white;

    paint-order: stroke fill;

    text-shadow:
        2px 2px 4px black,
        -2px -2px 4px black,
        2px -2px 4px black,
        -2px 2px 4px black;
}

.books-content a:hover {
    text-decoration: underline;
}


/* =========================
   РАСПОЛОЖЕНИЕ И КАРТА
========================= */

.location-section {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 15px;

    width: 1260px;
    max-width: 100%;

    margin: 40px auto 60px;
}

.location-map {
    position: relative;

    width: 550px;
    height: 250px;

    overflow: hidden;

    border:
        2px solid rgba(255, 255, 255, 0.75);

    border-radius: 12px;

    flex-shrink: 0;
}

.map-click-link {
    position: absolute;

    inset: 0;

    display: block;

    z-index: 10;
}


/* Большой знак Яндекс */

.location-section .yandex-good-place {
    flex: 0 0 240px;

    width: 240px;
    height: 240px;

    margin-left: 0;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================
   СТРАНИЦА ЗАКАЗА
========================= */

.order-page {
    max-width: 850px;

    margin: 40px auto;

    padding: 0 20px;
}

.order-section {
    padding: 35px 40px;

    box-sizing: border-box;

    /* Вместо почти непрозрачного белого */
    background:
        rgba(255, 255, 255, 0.62);

    border:
        1px solid rgba(255, 255, 255, 0.75);

    border-radius: 16px;

    backdrop-filter: blur(5px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);
}

.order-section h1 {
    margin: 0 0 30px;

    color: #222;

    text-align: center;
}

.order-form {
    width: 100%;
}


/* Строка формы */

.order-form > .form-group {
    display: grid;

    grid-template-columns: 220px 1fr;

    align-items: center;

    gap: 20px;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(100, 100, 100, 0.25);
}

.order-form > .form-group > label:first-child {
    color: #333;

    font-weight: bold;
}


/* Поля */

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="number"],
.order-form select,
.order-form textarea {
    width: 100%;

    padding: 10px 12px;

    box-sizing: border-box;

    background:
        rgba(255, 255, 255, 0.85);

    border:
        1px solid rgba(100, 100, 100, 0.45);

    border-radius: 6px;

    font-size: 16px;
}

.order-form textarea {
    min-height: 100px;

    resize: vertical;
}


/* Радиокнопки */

.radio-group {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}

.radio-group label {
    display: flex;

    align-items: center;

    gap: 5px;
}


/* Блоки с радиокнопками */

.order-form > .form-group:has(.radio-group) {
    align-items: start;
}

.order-form > .form-group:has(.radio-group) > div {
    grid-column: 2;
}

.order-form > .form-group:has(.radio-group) .radio-group {
    gap: 18px;

    padding-top: 2px;
}


/* Количество страниц */

#pages-single-group {
    display: flex;

    align-items: center;

    gap: 15px;
}

#pages-single-group label {
    white-space: nowrap;
}

#pages-single-group input {
    max-width: 180px;
}


/* Смешанная печать */

#pages-mixed-group {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px 15px;
}

#pages-mixed-group label {
    white-space: nowrap;
}

#pages-mixed-group input {
    width: 100px;
}


/* Дополнительные услуги */

.additional-services {
    align-items: start !important;
}

.additional-services-options {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 25px;
}

.additional-services-options label {
    margin: 0;

    white-space: nowrap;

    cursor: pointer;
}


/* Стоимость */

.order-total {
    margin-top: 25px;

    padding: 20px;

    background:
        rgba(242, 247, 237, 0.78);

    border:
        1px solid rgba(69, 112, 43, 0.30);

    border-radius: 10px;

    font-size: 20px;

    text-align: center;
}

.order-total strong {
    margin-left: 10px;

    color: #45702b;

    font-size: 26px;
}


/* Прикрепление файла */

.file-upload {
    display: flex !important;

    align-items: center !important;

    gap: 12px !important;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-button {
    display: inline-block;

    padding: 10px 16px;

    background-color: #45702b;

    color: white !important;

    border-radius: 6px;

    font-weight: bold;

    cursor: pointer;
}

.file-upload-button:hover {
    background-color: #365a22;
}

#file-name {
    color: #444;

    font-size: 14px;
}


/* Кнопка оформления */

.form-submit {
    display: flex;

    justify-content: center;

    margin-top: 25px;
}

.order-button {
    padding: 14px 50px;

    border:
        1px solid rgba(255, 255, 255, 0.5);

    border-radius: 8px;

    background-color: #45702b;

    color: white;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.order-button:hover {
    background-color: #365a22;

    transform: translateY(-2px);
}

.order-button:active {
    transform: translateY(0);
}


/* =========================
   УСЛУГИ И ЦЕНЫ
========================= */

.services-page {
    max-width: 1000px;

    margin: 40px auto 60px;
    padding: 40px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.services-page > h1 {
    margin: 0 0 40px;

    color: #222;

    font-size: 34px;

    text-align: center;
}

.price-section {
    margin-bottom: 45px;
}

.price-section h2 {
    margin-bottom: 20px;

    color: #222;

    font-size: 26px;

    text-align: center;
}

.price-section h3 {
    margin-bottom: 20px;

    color: #222;

    text-align: center;
}

.price-section > p {
    margin-bottom: 20px;

    color: #222;

    font-size: 18px;
    line-height: 1.6;
}


/* =========================
   ТАБЛИЦЫ ЦЕН
========================= */

.price-table {
    width: 100%;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #cfcfcf;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price-row {
    display: grid;

    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid #d8d8d8;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row > div {
    padding: 15px 18px;

    color: #222;
    font-size: 17px;
    line-height: 1.4;
}

.price-header {
    background: #e5eadf;

    color: #222;

    font-weight: bold;
    text-align: center;
}

/* Печать — 4 колонки */

.print-price-table .price-row {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}


/* Печать фотографий — 2 колонки */

.photo-print-price-table .price-row {
    grid-template-columns: 1fr 1fr;
}

.photo-print-price-table .price-row > div {
    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* Фото на документы — 2 колонки */

.photo-documents-price-table .price-row {
    grid-template-columns: 2fr 1fr;
}

.photo-documents-price-table .price-row > div {
    display: flex;

    align-items: center;
    justify-content: center;
}


/* Дополнительные услуги — 4 колонки */

.additional-price-table .price-row {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
}


/* Другие услуги — 3 колонки */

.other-services-table .price-row {
    grid-template-columns: 2fr 1.5fr 1fr;
}


/* Выравнивание дополнительных таблиц */

.additional-price-table .price-row > div,
.other-services-table .price-row > div {
    display: flex;

    align-items: center;
    justify-content: center;
}

.additional-price-table .price-row > div:first-child,
.other-services-table .price-row > div:first-child {
    justify-content: flex-start;
}


/* Кнопки в таблицах */

.service-order-cell .button-link {
    margin: 0;

    white-space: nowrap;
}


/* Примечания к ценам */

.price-notes {
    margin: 20px 0 35px;

    padding: 18px 22px;

    background:
        rgba(245, 245, 245, 0.55);

    border:
        1px solid rgba(100, 100, 100, 0.18);

    border-radius: 10px;
}

.price-notes h4 {
    margin: 0 0 12px;
}

.price-notes p {
    margin: 8px 0;

    line-height: 1.5;
}


/* =========================
   УПРАВЛЕНИЕ ЦЕНАМИ
========================= */

.admin-page {
    width: 100%;

    min-height: 70vh;

    padding: 60px 20px;

    box-sizing: border-box;
}

.admin-prices-panel {
    max-width: 1000px;

    margin: 0 auto;

    padding: 35px;

    box-sizing: border-box;

    background:
        rgba(255, 255, 255, 0.62);

    border:
        1px solid rgba(255, 255, 255, 0.75);

    border-radius: 15px;

    backdrop-filter: blur(5px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);
}

.admin-prices-panel h1 {
    margin-top: 0;
    margin-bottom: 15px;

    text-align: center;
}

.admin-prices-panel > p {
    margin-bottom: 35px;

    text-align: center;
}


/* Административная таблица */

.admin-price-table {
    width: 100%;

    margin-bottom: 40px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.32);

    border:
        1px solid rgba(100, 100, 100, 0.30);

    border-radius: 10px;
}

.admin-price-row {
    display: grid;

    grid-template-columns:
        1fr 1fr 1fr 1fr;

    align-items: center;

    border-bottom:
        1px solid rgba(100, 100, 100, 0.22);
}

.admin-price-row:last-child {
    border-bottom: none;
}

.admin-price-row > div {
    padding: 15px;
}

.admin-price-row > div:not(:last-child) {
    border-right:
        1px solid rgba(100, 100, 100, 0.20);
}

.admin-price-header {
    font-weight: bold;

    text-align: center;
}


/* Таблица дополнительных услуг */

.admin-price-table:has(.admin-service-row) .admin-price-header,
.admin-service-row {
    grid-template-columns:
        2fr 1fr 1fr;
}

.admin-service-row > div:not(:first-child) {
    text-align: center;
}


/* Поля цен */

.admin-price-row input[type="number"] {
    display: block;

    width: 100%;
    max-width: 140px;

    margin: 0 auto;

    padding: 10px;

    box-sizing: border-box;

    background:
        rgba(255, 255, 255, 0.85);

    border:
        1px solid rgba(100, 100, 100, 0.40);

    border-radius: 6px;
}


/* Сообщение о сохранении */

.admin-save-message {
    max-width: 500px;

    margin: 0 auto 25px;

    padding: 14px 20px;

    background:
        rgba(232, 245, 233, 0.75);

    color: #2e7d32;

    border:
        1px solid rgba(46, 125, 50, 0.25);

    border-radius: 10px;

    font-weight: bold;

    text-align: center;
}


/* =========================
   ПУБЛИЧНЫЙ ПРАЙС-ЛИСТ
========================= */

.public-price-table {
    width: 100%;

    margin-bottom: 35px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.30);

    border:
        1px solid rgba(100, 100, 100, 0.28);

    border-radius: 10px;
}

.public-price-row {
    display: grid;

    grid-template-columns:
        1fr 1fr 1fr 1fr;

    align-items: center;

    border-bottom:
        1px solid rgba(100, 100, 100, 0.20);
}

.public-price-row:last-child {
    border-bottom: none;
}

.public-price-row > div {
    padding: 15px;

    text-align: center;
}

.public-price-row > div:not(:last-child) {
    border-right:
        1px solid rgba(100, 100, 100, 0.18);
}

.public-price-header {
    background:
        rgba(255, 255, 255, 0.30);

    font-weight: bold;
}


/* =========================
   ФОТО НА ДОКУМЕНТЫ
========================= */

/* Кнопки */

.photo-documents-actions {
    display: flex;

    align-items: stretch;

    gap: 15px;

    margin-top: 30px;
}

.photo-documents-actions .button-link {
    width: 190px;
    min-height: 62px;

    padding: 10px 15px;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;
}


/* Кнопка с примечанием */

.photo-order-button {
    flex-direction: column;

    line-height: 1.25;
}

.photo-order-button small {
    margin-top: 4px;

    font-size: 14px;
    font-weight: normal;
}


/* Комплект фотографий */

.photo-documents-set {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 10px;

    text-align: center;
}

.photo-documents-set > strong {
    font-size: 17px;
}

.photo-documents-sizes {
    display: grid;

    grid-template-columns:
        110px 120px;

    column-gap: 20px;
    row-gap: 8px;

    margin-top: 6px;

    justify-content: center;
}

.photo-size-header,
.photo-quantity-header {
    padding-bottom: 5px;

    color: #444;

    font-size: 16px;
    font-weight: bold;
}

.photo-size,
.photo-quantity {
    font-size: 18px;
}

.photo-quantity {
    color: #444;
}

.photo-documents-set-price {
    display: flex;

    align-items: flex-start;

    padding-top: 14px;
}


/* =========================
   МОБИЛЬНАЯ И ПЛАНШЕТНАЯ ВЕРСИЯ
========================= */

@media (max-width: 900px) {

    .services-page {
        margin: 20px 10px 40px;
        padding: 20px;
    }

    .services-page > h1 {
        font-size: 28px;
    }

    .price-section h2,
    .price-section h3 {
        font-size: 22px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 300px);
    }

    .location-section {
        flex-direction: column;
    }

    .location-map {
        width: min(550px, 100%);
    }

    .location-section .yandex-good-place {
        flex-basis: auto;
    }
}


@media (max-width: 800px) {

    /* Основной контейнер */

    main,
    footer {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    main {
        overflow-x: hidden;
    }


    /* Шапка */

    header {
        flex-direction: column;

        align-items: center;

        padding: 15px 20px;

        box-sizing: border-box;
    }

    .logo {
        margin-bottom: 15px;
    }

    .logo img {
        height: 65px;
    }

    .header-right {
        width: 100%;

        margin-left: 0;

        flex-wrap: wrap;

        justify-content: center;

        gap: 12px 15px;
    }

    .header-contacts {
        align-items: center;
    }

    .header-phone,
    .header-email {
        font-size: 18px;
    }

    .header-socials {
        gap: 6px;
    }

    .header-socials a,
    .header-socials img {
        width: 34px;
        height: 34px;
    }

    .work-hours {
        padding-left: 22px;

        font-size: 15px;

        text-align: left;
    }

    .work-hours::before {
        left: -5px;

        font-size: 20px;
    }

    .header-right .button-link {
        padding: 10px 16px;

        font-size: 14px;
    }


    /* Карточки */

    .services-grid {
        grid-template-columns: 1fr !important;

        width: 100%;
        max-width: 100%;

        padding: 0 10px;

        box-sizing: border-box;

        justify-items: center;
    }

    .service-card,
    .books-card {
        width: 300px;
        max-width: 100%;
    }


    /* Страницы */

    .order-section,
    .services-page,
    .admin-prices-panel {
        background:
            rgba(255, 255, 255, 0.68);
    }


    /* Таблицы */

    .price-table,
    .public-price-table {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;

        box-sizing: border-box;
    }

    .print-price-table .price-row,
    .public-price-row,
    .additional-price-table .price-row {
        min-width: 520px;
    }

    .other-services-table .price-row {
        min-width: 420px;
    }
}


@media (max-width: 650px) {

    .services-grid {
        grid-template-columns: 300px;

        justify-content: center;
    }


    /* Приветствие */

    .welcome-section {
        margin: 20px auto;

        padding: 15px;
    }

    .welcome-section h1 {
        font-size: 26px;
    }

    .welcome-section p {
        font-size: 17px;
    }


    /* Кнопки фото на документы */

    .photo-documents-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .photo-documents-actions .button-link {
        width: 100%;
    }
}