<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, noimageindex, nocache">
    <title>Хороший домен</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            color: #333;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            text-align: center;
        }
        .container {
            max-width: 600px;
            padding: 20px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #2c3e50;
        }
        .domain-info {
            margin: 20px 0;
            padding: 10px;
            background: #fff;
            border-radius: 4px;
            font-family: Arial, sans-serif;
            font-size: 30px;
            
        }
        .buy-button {
            display: inline-block;
            padding: 12px 24px;
            background-color: #a0e6a0; /* Светло-зелёный */
            color: #1a531b;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        .buy-button:hover {
            background-color: #8cd58c; /* Темнее при наведении */
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Домен сейчас можно купить!</h1>
        <p> Создайте свой новый проект!</p>
        
        <div class="domain-info">
             <strong id="current-domain"></strong>
        </div>

        <a href="#" id="buy-link" class="buy-button">Купить домен в магазине</a>
    </div>

    <script>
        const domain = window.location.hostname;
        document.getElementById("current-domain").textContent = domain;       
        const buyLink = document.getElementById("buy-link");
        buyLink.href = `https://www.reg.ru/domain/shop/lot/${domain}?rlink=reflink-43865`;
    </script>
</body>
</html>