﻿        /* Общие стили для модального фона */
        .modal.modal-ls-inst {
            display: none; /* чтобы центрировать содержимое */
            justify-content: center;
            align-items: center;
            background-color: rgba(0,0,0,0.4);
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 1000;
        }
        
        /* Стили для содержимого модального окна */
        .modal-content.modal-content-ls-inst {
            background-color: var(--surface);
            color: var(--text);
            padding: 22px;
            border-radius: 16px;
            width: 800px;
            max-width: 90vw;
            max-height: 80vh;
            overflow-y: auto;
            box-sizing: border-box;
            text-align: center;
            border: 1px solid var(--border);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
        }

        /* Кнопка под изображением */
        .modal-content.modal-content-ls-inst .btn {
            margin-top: 20px;
        }

        .modal-content.modal-content-ls-inst img {
            margin-bottom: 10px;
            border: 1px solid var(--border);
            border-radius: 10px;
        }
        
        .edit-phone-link,
        .edit-mail-link {
            color: var(--accent-info);
            text-decoration: none;
            font-weight: 500;
            margin-left: 8px;
            transition: color 0.18s ease;
        }
        .edit-phone-link:hover,
        .edit-mail-link:hover {
            color: var(--accent-info-hover);
            text-decoration: none;
        }
        
        .blue-text-button:focus {
            outline: 2px solid rgba(44, 182, 125, 0.45);
            outline-offset: 2px;
        }
        
        .footer-info{
            position: relative;
            background-color: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
            color: var(--text);
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(20, 60, 100, 0.05);
        }
        
        .footer-info h2 {
            color: #222;
            margin-bottom: 8px;
            margin-top: 0;
        }
        
        .footer-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
          gap: 10px 32px;
        }
        
        .footer-grid > div {
          background: none;
          padding: 0;
          border: none;
        }
        
        .footer-grid h3 {
          margin-bottom: 6px;
          margin-top: 0;
          font-size: 1.2em;
          color: var(--accent-info);
        }
        
        .footer-grid p {
          margin: 0;
          color: #222;
          font-size: 0.9em;
        }
        
        .footer-buttons-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            max-width: 1000px;
            margin-top: 10px;
            margin-bottom: 10px;
        }
        
        .footer-button {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            padding: 12px 20px;
            font-weight: 600;
            font-size: 1rem;
            color: #fff;
            background: var(--brand-grad);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            text-decoration: none;
            user-select: none;
            box-shadow: 0 2px 6px rgba(44, 182, 125, 0.25);
            transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
        }

        .footer-button:hover,
        .footer-button:focus {
            background: var(--brand-grad-hover);
            outline: none;
            text-decoration: none;
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(44, 182, 125, 0.30);
        }

        .footer-button:active {
            background: var(--brand-grad);
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(44, 182, 125, 0.22);
        }

        .footer-button:disabled {
            background: #c8e2d4;
            cursor: not-allowed;
            box-shadow: none;
        }
        
        .footer-privacy-text {
            font-size: 0.95rem;
            color: #222;
            max-width: 1000px;
            line-height: 1.4;
        }
        
        .footer-privacy-text a.help-link {
            color: var(--accent-info);
            text-decoration: none;
            cursor: pointer;
        }

        .footer-privacy-text a.help-link:hover,
        .footer-privacy-text a.help-link:focus {
            color: var(--accent-info-hover);
            text-decoration: none;
            outline: none;
        }

        .login-policy-text {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 0.85rem;
            line-height: 1.4;
            text-align: center;
        }

        .login-policy-text a.help-link {
            color: var(--accent-info);
            text-decoration: none;
            cursor: pointer;
        }

        .login-policy-text a.help-link:hover,
        .login-policy-text a.help-link:focus {
            color: var(--accent-info-hover);
            text-decoration: none;
            outline: none;
        }
        
        #faq-list .accordion-button:not(.collapsed) {
            background: var(--brand-grad);
            color: #fff;
        }
        
        .company-info-buttons-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 14px;
            margin-bottom: 0;
        }

        .company-info-buttons-grid button {
            background: #fff;
            border: 1px solid #e3e8ef;
            border-radius: 12px;
            padding: 14px;
            text-align: left;
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
            color: #1f3540;
            font-weight: 600;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            font-size: 0.95rem;
            box-shadow: 0 1px 3px rgba(20, 60, 100, 0.04);
            position: relative;
            min-height: 96px;
        }
        .company-info-buttons-grid button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(44, 182, 125, 0.14);
            border-color: rgba(44, 182, 125, 0.35);
        }
        .company-info-buttons-grid img {
            width: 28px;
            height: 28px;
            padding: 7px;
            background: #e8f7f0;
            border-radius: 10px;
            box-sizing: content-box;
            transition: background-color 0.18s ease;
        }
        .company-info-buttons-grid button:hover img {
            background: #d2efe1;
        }
        .company-info-buttons-grid span {
            font-size: 0.95rem;
            color: #1f3540;
            line-height: 1.3;
        }
        .company-info-buttons-grid .arrow {
            position: absolute;
            top: 14px;
            right: 14px;
            font-size: 1.1rem;
            color: #6f7e8a;
            margin: 0;
            transition: transform 0.18s ease, color 0.18s ease;
        }
        .company-info-buttons-grid button:hover .arrow {
            transform: translateX(4px);
            color: var(--accent-info);
        }
        
        #grafik-cards-container .card {
          height: 100%;
        }
        